/*
Theme Name: Showbiz Brasil
Theme URI: https://showbizbrasil.com.br
Author: Showbiz Brasil
Author URI: https://showbizbrasil.com.br
Description: Tema personalizado para o portal Showbiz Brasil - Notícias do mundo do show business
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: showbiz-brasil
*/

/* RESET AGGRESSIVO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Banner Principal */
.hero-banner {
    margin: 5rem auto 1rem auto;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-banner .swiper {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    margin: 0 auto;
}

.swiper-slide {
    position: relative;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.swiper-slide:hover {
    transform: scale(1.02);
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    display: block;
    transition: transform 0.8s ease, opacity 0.3s ease;
}

.swiper-slide:hover .slide-image {
    transform: scale(1.05);
    opacity: 0.5;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    z-index: 2;
    transition: padding 0.3s ease;
}

.slide-category {
    background: rgba(255,255,255,0.9);
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.swiper-slide:hover .slide-category {
    transform: translateY(-5px);
    background: rgba(255,255,255,1);
}

.slide-title {
    font-size: 3.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-family: 'Instrument Serif', serif;
    transition: transform 0.3s ease;
}

.swiper-slide:hover .slide-title {
    transform: translateY(-3px);
}

.slide-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.slide-title a:hover {
    color: #f0f0f0;
}

.slide-excerpt {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.swiper-slide:hover .slide-excerpt {
    transform: translateY(-2px);
}

.slide-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.swiper-slide:hover .slide-meta {
    transform: translateY(-2px);
}

.btn-read {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.btn-read:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-top: -25px;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
}

/* Seções comuns */
.section {
    margin: 2rem 0;
    width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 1rem 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0;
    transition: transform 0.3s ease;
    font-family: 'Instrument Serif', serif;
    text-transform: uppercase;
}

.section-header:hover .section-title {
    transform: translateX(5px);
}

.see-all {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    transform: translateX(0);
}

.see-all:hover {
    color: #1a1a1a;
    transform: translateX(5px);
}

/* Grid de categorias */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.category-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    width: 100%;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.category-header {
    background: #1a1a1a;
    color: white;
    padding: 1.0rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-header {
    background: #2a2a2a;
    padding: 1.2rem 1.0rem;
}

.category-name {
    font-size: 1.0rem;
    font-weight: 700;
    margin: 0;
    transition: transform 0.3s ease;
}

.category-card:hover .category-name {
    transform: translateX(5px);
}

.category-count {
    opacity: 0.8;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-count {
    opacity: 1;
}

.posts-list {
    padding: 1.5rem;
}

.post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f5f5f5;
    width: 100%;
    transition: all 0.3s ease;
}

.post-item:last-child {
    border-bottom: none;
}

.post-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    display: block;
    transition: all 0.3s ease;
}

.post-item:hover .post-image {
    border-radius: 8px;
}

.post-content {
    flex: 1;
    min-width: 0;
}

.post-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: transform 0.3s ease;
}

.post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #666;
}

.post-meta {
    font-size: 0.8rem;
    color: #666;
    transition: opacity 0.3s ease;
}

.post-item:hover .post-meta {
    opacity: 1;
}

/* Seção Personalidades */
.personalidades-section {
    background: #1a1a1a;
    color: white;
    padding: 4rem 0;
    margin: 1rem 0;
    width: 100%;
}

.personalidades-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.personalidades-header {
    text-align: center;
    margin-bottom: 0.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.personalidades-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: -10px;
    font-family: 'Instrument Serif', serif;
    transition: transform 0.3s ease;
}

.personalidades-section:hover .personalidades-title {
    transform: scale(1.02);
}

.personalidades-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 100%;
    margin-bottom: 30px;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.personalidades-section:hover .personalidades-subtitle {
    opacity: 1;
}

.personalidades-slider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.personalidadesSwiper {
    width: 100%;
    height: 100%;
}

.personalidade-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    height: 100%;
    width: 100%;
    transition: all 0.3s ease;
    transform: scale(1);
}

.personalidade-card:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.personalidade-image {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.personalidade-card:hover .personalidade-image {
    transform: scale(1.0);
}

/* Mais Acessados */
.acessados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.acessado-card {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #1a1a1a;
    width: 100%;
    transition: all 0.3s ease;
    transform: translateX(0);
}

.acessado-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-left: 4px solid #666;
}

.acessado-rank {
    font-size: 2rem;
    font-weight: 800;
    color: #e5e5e5;
    min-width: 50px;
    transition: all 0.3s ease;
}

.acessado-card:hover .acessado-rank {
    color: #666;
    transform: scale(1.1);
}

.acessado-content {
    flex: 1;
    min-width: 0;
}

.acessado-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: transform 0.3s ease;
}

.acessado-card:hover .acessado-title {
    transform: translateX(5px);
}

.acessado-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.acessado-title a:hover {
    color: #666;
}

.acessado-meta {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    gap: 1rem;
    transition: opacity 0.3s ease;
}

.acessado-card:hover .acessado-meta {
    opacity: 1;
}

.views-count {
    color: #666;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.acessado-card:hover .views-count {
    transform: scale(1.1);
}

/* Efeitos de entrada suave */
.category-card, .acessado-card, .personalidade-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .category-grid,
    .acessados-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-banner .swiper {
        height: 400px;
    }
    
    .category-card:hover,
    .acessado-card:hover,
    .personalidade-card:hover {
        transform: none;
    }
    
    .post-item:hover {
        transform: none;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        display: none;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-banner .swiper {
        height: 300px;
    }
    
    .slide-content {
        padding: 2rem;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.4rem;
        font-family: 'Instrument Serif', serif;
        text-transform: uppercase;
    }
    
    .personalidades-title {
        font-size: 2rem;
    }
    
    .personalidadesSwiper {
        height: 300px;
    }
    
    .acessado-card {
        flex-direction: column;
        text-align: start;
        gap: 1rem;
    }
    
    .acessado-rank {
        min-width: auto;
        font-size: 1.8rem;
    }
    
    .post-item {
        flex-direction: column;
        text-align: start;
        gap: 0.5rem;
    }
    
    .post-image {
        width: 100%;
        height: 120px;
        margin: 0 auto;
    }
    
    .swiper-slide:hover .slide-image {
        transform: none;
    }
    
    .category-card:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-banner .swiper {
        height: 650px;
    }
    
    .slide-content {
        padding: 1.5rem;
    }
    
    .slide-title {
        font-size: 2.7rem;
    }
    
    .personalidades-title {
        font-size: 2.4rem;
    }
    
    .personalidadesSwiper {
        height: 100%;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: start;
    }
    
    .category-grid,
    .acessados-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}