/* HOME.CSS - Estilos Exclusivos da Home Premium
   Dependência: global.css (para variáveis de cor e container)
   Versão: Final Otimizada (Mobile e Spacing Fix)
*/

/* ==========================================================================
   1. HERO SECTION (Fundo, Animação e Textos)
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #232f3e 0%, #1a2332 100%);
    color: #fff;
    padding-top: 220px; 
    padding-bottom: 0;
    text-align: center;
    overflow: hidden; /* Importante: Evita rolagem indesejada */
    
    /* TÉCNICA BREAKOUT (Full Width) */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Background Animado Otimizado */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><defs><style>.cls-1{fill:none;stroke:rgba(253,185,19,0.1);stroke-width:1.5px;}</style></defs><circle class="cls-1" cx="12" cy="12" r="10"/><circle class="cls-1" cx="12" cy="12" r="4"/><circle fill="rgba(253,185,19,0.3)" cx="12" cy="12" r="1.5"/></svg>');
    background-size: 100px 100px;
    opacity: 0.8;
    background-repeat: repeat;
    animation: background-scroll 30s linear infinite; 
    pointer-events: none;
    z-index: 0;
}

@keyframes background-scroll {
    from { background-position: 0 0; }
    to { background-position: 0 500px; }
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(26,26,26,0.5) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.hero-text-container {
    position: relative;
    z-index: 10;
    padding-top: 20px;
    padding-bottom: 60px;
}

.hero-eyebrow {
    display: block; color: var(--prm-gold); text-transform: uppercase;
    letter-spacing: 3px; font-size: 0.85rem; font-weight: 700; margin-bottom: 15px;
}

.hero-title {
    font-size: 3.5rem; font-weight: 800; margin: 0 0 20px; line-height: 1.1; color: #fff;
}

.hero-subtitle {
    font-size: 1.2rem; color: #e0e0e0; max-width: 700px; margin: 0 auto 40px; line-height: 1.6;
}

.hero-actions { display: flex; gap: 20px; justify-content: center; }

.btn-hero-primary {
    background: var(--prm-gold); color: #000; padding: 15px 35px; border-radius: 50px;
    font-weight: 700; text-decoration: none; transition: all 0.3s;
}
.btn-hero-primary:hover { background: #fff; transform: translateY(-3px); }

.btn-hero-outline {
    border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 15px 35px;
    border-radius: 50px; font-weight: 600; text-decoration: none; transition: all 0.3s;
}
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ==========================================================================
   2. CARROSSEL 3D DE DESTAQUES
   ========================================================================== */

.featured-carousel-wrapper {
    position: relative;
    z-index: 20;
    padding-top: 30px; padding-bottom: 30px;
    overflow: visible;
    
    /* AJUSTE DE ESPAÇAMENTO TOP: -100px */
    margin-top: -100px;
}

.vinis-destaque-carousel-3d .slick-list { overflow: visible !important; padding: 40px 0 !important; }
.vinis-destaque-carousel-3d .slick-track { display: flex !important; align-items: center; }
.vinis-destaque-carousel-3d .slick-slide:focus { outline: none; }

.carousel-slide-3d {
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); transform: scale(0.75);
    opacity: 0.5; position: relative; padding: 0 15px; filter: blur(1px); z-index: 1;
}

.carousel-slide-3d.slick-center {
    transform: scale(1.1); opacity: 1; z-index: 100; filter: blur(0); margin-bottom: 10px;
}

.carousel-slide-3d .vinil-card-3d {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 3px solid transparent;
    transition: all 0.4s ease; max-width: 280px; margin: 0 auto;
}

.carousel-slide-3d.slick-center .vinil-card-3d {
    box-shadow: 0 30px 60px rgba(197, 164, 126, 0.2); border-color: var(--prm-gold);
}

.vinil-capa-container-3d { display: block; position: relative; height: 280px; width: 100%; }
.vinil-capa { width: 100%; height: 100%; object-fit: cover; }

.destaque-badge {
    position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
    background-color: var(--prm-gold); color: #000; padding: 6px 15px;
    border-radius: 20px; font-size: 0.8em; font-weight: 700; display: flex;
    align-items: center; gap: 5px; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.vinil-info-3d { padding: 15px; text-align: center; background: #fff; }
.vinil-titulo-3d { font-size: 1.1em; margin: 0 0 5px; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.vinil-autor-3d { font-size: 0.9em; color: #666; }

.vinis-destaque-carousel-3d .slick-prev, .vinis-destaque-carousel-3d .slick-next {
    width: 50px; height: 50px; background: rgba(255, 255, 255, 0.9); border-radius: 50%;
    z-index: 120; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.vinis-destaque-carousel-3d .slick-prev:hover, .vinis-destaque-carousel-3d .slick-next:hover { background: var(--prm-gold); }
.vinis-destaque-carousel-3d .slick-prev:before, .vinis-destaque-carousel-3d .slick-next:before {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free'; font-weight: 900; color: #111; font-size: 20px;
}
.vinis-destaque-carousel-3d .slick-prev:before { content: '\f053'; }
.vinis-destaque-carousel-3d .slick-next:before { content: '\f054'; }
.vinis-destaque-carousel-3d .slick-prev { left: calc(50% - 400px); }
.vinis-destaque-carousel-3d .slick-next { right: calc(50% - 400px); }

.vinis-destaque-carousel-3d .slick-dots { bottom: -60px; display: flex !important; justify-content: center; gap: 12px; }
.vinis-destaque-carousel-3d .slick-dots li { width: 12px; height: 12px; margin: 0; }
.vinis-destaque-carousel-3d .slick-dots li button {
    width: 12px; height: 12px; padding: 0; border-radius: 50%;
    background: rgba(255,255,255,0.3); border: 2px solid transparent;
}
.vinis-destaque-carousel-3d .slick-dots li button:before { display: none; }
.vinis-destaque-carousel-3d .slick-dots li.slick-active button {
    background: var(--prm-gold); box-shadow: 0 0 10px var(--prm-gold); transform: scale(1.3);
}

/* ==========================================================================
   3. SEÇÕES INTERNAS (Hall da Fama, Curated, Vitrine)
   ========================================================================== */

.section-premium { padding: 80px 0; }
.section-header { margin-bottom: 50px; text-align: center; }
.section-subtitle { display: block; color: var(--prm-gold); text-transform: uppercase; font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; letter-spacing: 1px; }
.section-title { font-size: 2.5rem; color: #111; margin: 0; font-weight: 800; }
.section-desc { color: #666; margin-top: 10px; font-size: 1.1rem; }

/* Grid Hall da Fama */
.collectors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.collector-card {
    background: #fff; border-radius: 16px; padding: 30px 20px; text-align: center; text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s; border: 1px solid #eee;
    display: flex; flex-direction: column; align-items: center;
}
.collector-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.collector-card.rank-1 { border-color: var(--prm-gold); background: linear-gradient(to bottom, #fff, #fffdf5); }
.collector-avatar { position: relative; width: 100px; height: 100px; margin-bottom: 20px; }
.collector-avatar img { border-radius: 50%; width: 100%; height: 100%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.rank-badge {
    position: absolute; bottom: 0; right: 0; background: #111; color: var(--prm-gold);
    width: 30px; height: 30px; line-height: 30px; border-radius: 50%; font-weight: 700; font-size: 0.9rem;
}
.rank-1 .rank-badge { background: var(--prm-gold); color: #000; }
.collector-name { font-size: 1.2rem; color: #333; margin: 0 0 5px; font-weight: 700; }
.collector-stats { display: flex; flex-direction: column; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: #111; line-height: 1; }
.stat-label { font-size: 0.85rem; color: #888; }

/* Seção Curated (Fundo Preto) */
.curated-section {
    background-color: #111; background: linear-gradient(135deg, #1a1a1a 0%, #050505 100%);
    padding: 100px 0;
    
    /* Breakout Desktop */
    width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
}
.curated-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--prm-gold), transparent); opacity: 0.3;
}
.curated-wrapper {
    /* Centraliza conteúdo conforme container global */
    width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; max-width: 1280px;
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center;
}
.curated-info { padding-right: 20px; text-align: left; }
.curated-info .section-title { color: #fff; margin-bottom: 25px; }
.curated-info .section-title::after {
    content: ''; display: block; width: 80px; height: 4px; background: var(--prm-gold); margin-top: 20px; border-radius: 2px;
}
.curated-info p { color: rgba(255,255,255,0.7); font-size: 1.15rem; line-height: 1.6; margin-bottom: 40px; }
.curated-list { display: flex; flex-direction: column; gap: 15px; }
.curated-item {
    display: flex; align-items: center; background-color: rgba(255,255,255,0.03); padding: 15px 20px;
    border-radius: 12px; text-decoration: none; border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s ease;
}
.curated-item:hover { background-color: rgba(255,255,255,0.08); border-color: var(--prm-gold); transform: translateX(10px); }
.curated-img-wrapper { flex-shrink: 0; width: 70px; height: 70px; margin-right: 20px; }
.curated-img-wrapper img { width: 100%; height: 100%; border-radius: 6px; object-fit: cover; }
.curated-details { flex-grow: 1; }
.curated-title { display: block; color: #fff; font-size: 1.1rem; font-weight: 600; margin-bottom: 5px; }
.curated-owner { display: block; color: #888; font-size: 0.9rem; }
.curated-action { color: var(--prm-gold); opacity: 0; transform: translateX(-10px); transition: all 0.3s ease; }
.curated-item:hover .curated-action { opacity: 1; transform: translateX(0); }

/* Seção Vitrine (Fundo Cinza) */
.vitrine-section {
    background: #f9f9f9; padding: 80px 0;
    
    /* Breakout Desktop */
    width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
}
.section-header-flex {
    display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px;
    width: 100%; /* Respeita container pai */
}
.btn-view-all {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; background: #fff; color: #333;
    border: 1px solid #ddd; border-radius: 50px; font-weight: 700; text-decoration: none; transition: all 0.3s;
}
.btn-view-all:hover { border-color: var(--prm-gold); color: var(--prm-gold); transform: translateX(5px); }
.vinis-grid-premium { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px; }
.vinil-card-standard {
    background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s;
}
.vinil-card-standard:hover { transform: translateY(-5px); }
.card-image-link { display: block; position: relative; aspect-ratio: 1/1; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card-image-link:hover .card-img { transform: scale(1.05); }
.card-hover-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s;
}
.card-image-link:hover .card-hover-overlay { opacity: 1; }
.btn-quick-view {
    background: #fff; color: #000; padding: 10px 20px; border-radius: 30px; font-weight: 700; font-size: 0.9rem;
}
.card-content { padding: 20px; }
.card-title { margin: 0 0 5px; font-size: 1rem; line-height: 1.4; }
.card-title a { color: #333; text-decoration: none; }
.card-author { font-size: 0.85rem; color: #888; }

.cta-home-split { padding: 0; background-color: #fff; overflow: hidden; }
.cta-split-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.cta-content-col { flex: 1; max-width: 600px; }
.cta-title { text-align: left; font-size: 2.5rem; margin-bottom: 20px; color: #111; }
.cta-desc { text-align: left; font-size: 1.1rem; color: #666; margin-bottom: 30px; }
.cta-buttons-left { display: flex; justify-content: flex-start; }
.cta-visual-col { flex: 1; display: flex; justify-content: center; align-items: center; }
.vinyl-svg-graphic { width: 100%; max-width: 380px; height: auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15)); }
.spin-animation { animation: spinVinyl 30s linear infinite; }
@keyframes spinVinyl { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }


/* ==========================================================================
   4. CORREÇÃO CRÍTICA PARA MOBILE (Anti-Breakout)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. Desativa a técnica de 100vw que quebra no mobile */
    .hero-section,
    .curated-section,
    .vitrine-section {
        width: auto;
        left: auto;
        right: auto;
        /* Compensa o padding do container mobile */
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        border-radius: 0;
    }

    /* 2. Ajustes de Carrossel */
    .featured-carousel-wrapper {
        margin-top: -50px;
        padding-bottom: 0;
    }
    .vinis-destaque-carousel-3d { margin-bottom: 30px; opacity: 0; transition: opacity 0.5s ease; }
    .vinis-destaque-carousel-3d.slick-initialized { opacity: 1; }
    .vinis-destaque-carousel-3d .slick-list { padding: 20px 0 !important; }
    .vinis-destaque-carousel-3d .slick-slide { padding: 0 !important; height: auto !important; }
    .carousel-slide-3d { transform: scale(0.85); opacity: 0.5; padding: 0 5px; filter: blur(2px) grayscale(60%); }
    .carousel-slide-3d.slick-center { transform: scale(1.05); opacity: 1; z-index: 10; filter: none; }
    .carousel-slide-3d .vinil-card-3d { width: 100%; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
    .carousel-slide-3d .vinil-capa-container-3d { height: auto !important; aspect-ratio: 1/1; }
    .destaque-badge { display: none; }
    .vinis-destaque-carousel-3d .slick-dots { bottom: -40px; }
    .vinis-destaque-carousel-3d .slick-prev, .vinis-destaque-carousel-3d .slick-next { width: 35px; height: 35px; }
    .vinis-destaque-carousel-3d .slick-prev { left: 5px; }
    .vinis-destaque-carousel-3d .slick-next { right: 5px; }

    /* 3. Ajuste Curated */
    .curated-wrapper {
        grid-template-columns: 1fr; text-align: center; gap: 50px;
        width: 100%; padding-left: 20px; padding-right: 20px; box-sizing: border-box;
    }
    .curated-info { text-align: center !important; padding: 0 !important; }
    .curated-info .section-title::after { margin-left: auto; margin-right: auto; }
    .curated-item { text-align: left; }

    /* 4. Ajustes Gerais */
    .hero-title { font-size: 2rem; padding: 0 15px; }
    .hero-subtitle { font-size: 1rem; }
    .hero-section { margin-top: -1px !important; }
    
    .cta-home-split { padding: 60px 0; }
    .cta-split-wrapper { flex-direction: column-reverse; text-align: center; gap: 40px; }
    .cta-content-col .cta-title, .cta-content-col .cta-desc { text-align: center !important; }
    .cta-buttons-left { justify-content: center; }
    .vinyl-svg-graphic { max-width: 280px; }
    
    .section-header-flex { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .btn-view-all { width: auto; border-color: var(--prm-gold); color: var(--prm-gold); }
}

@media (max-width: 576px)  { 
    .container { 
        max-width: 100%; 
        padding-left: 15px; 
        padding-right: 15px; 
        overflow-x: hidden;
    }
    
    /* Ajustes específicos para mobile */
    body {
        padding-top: 80px;
    }
    
    .site-branding h1 {
        font-size: 1.5em !important;
    }
    
    .search-form {
        border-radius: 25px;
    }
    
    .search-field {
        font-size: 0.85em;
        padding: 0 15px;
        height: 40px;
    }
    
    .search-submit {
        padding: 0 15px;
        font-size: 1em;
    }
    
    .header-user-actions a {
        padding: 0 15px;
    }
    
    .minicart-dropdown, .credits-dropdown {
        width: calc(100vw - 30px);
        right: -15px;
    }
}