/*
Theme Name: Portfólio Jornalista
Author: Mizael
Description: Tema exclusivo e otimizado para o portfólio de jornalismo.
Version: 1.0
*/

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

/* =========================================
   ESTILO DO PORTFÓLIO JORNALISTA
   ========================================= */
.jp-portfolio {
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    padding: 20px;
}
.jp-portfolio * {
    box-sizing: border-box;
}
.jp-portfolio h1, .jp-portfolio h2, .jp-portfolio h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    margin-top: 0;
}
.jp-portfolio h2 {
    font-size: 2rem;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin: 60px 0 30px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.jp-header {
    text-align: center;
    padding: 60px 0;
    border-bottom: 1px solid #eaeaea;
}
.jp-header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    letter-spacing: -1px;
}
.jp-header p {
    font-size: 1.2rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.jp-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}
.jp-skill-tag {
    background-color: #f4f4f4;
    color: #000;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.jp-skill-tag:hover, .jp-skill-tag.active { 
    background-color: #000;
    color: #fff;
}
.jp-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.jp-brand-card {
    border: 1px solid #eaeaea;
    padding: 20px 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    transition: border-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}
.jp-brand-card:hover {
    border-color: #000;
    transform: translateY(-5px);
}
.jp-brand-card img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}
.jp-brand-card:hover img {
    filter: grayscale(0%);
}
.jp-work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.jp-work-item {
    background: #fff;
    display: flex;
    flex-direction: column;
}
.jp-work-item-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 1px solid #eaeaea;
}
.jp-work-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.jp-work-item p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1; 
}
.jp-link {
    display: inline-block;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
    align-self: flex-start;
}
.jp-link:hover {
    color: #666;
    border-color: #666;
}
.jp-embed {
    width: 100%;
    margin-top: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
}
.jp-embed iframe {
    width: 100% !important;
    border: none;
}
.jp-video {
    aspect-ratio: 16 / 9;
}
.jp-video iframe {
    height: 100%;
}
.jp-footer {
    text-align: center;
    margin-top: 80px;
    padding: 60px 0;
    border-top: 1px solid #eaeaea;
}
.jp-btn-cv {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 15px 35px;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}
.jp-btn-cv:hover {
    background-color: #333;
}
.jp-tab-content {
    display: none;
    animation: fadeIn 0.4s;
}
.jp-tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.jp-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.jp-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 40px; 
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 10px;
    width: 100%;
}
.jp-carousel::-webkit-scrollbar {
    display: none;
}
.jp-carousel .jp-work-item {
    flex: 0 0 calc(33.333% - 26.66px); 
    scroll-snap-align: start;
}
.jp-arrow {
    background: #fff;
    border: 1px solid #000;
    color: #000;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.jp-arrow:hover { background: #000; color: #fff; }
.jp-arrow-left { left: -20px; }
.jp-arrow-right { right: -20px; }
@media (max-width: 768px) {
    .jp-carousel .jp-work-item { flex: 0 0 100%; }
    .jp-arrow-left { left: 0; }
    .jp-arrow-right { right: 0; }
}