/* ================================================
   BARRIS DO DOURO - ESTILOS PÁGINA INICIAL
   ================================================ */

/* Google Translate Override */
.skiptranslate { display: none !important; }
body { top: 0 !important; }

/* Reset Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

html, body {
    background: #000;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ================================================
   BACKGROUND VIDEO
   ================================================ */
.bg-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #000;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: blur(5px) brightness(0.4) saturate(1.2);
    opacity: 0;
    transition: opacity 1.5s ease;
}

.bg-video.loaded {
    opacity: 1;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%),
        radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

/* Efeito de Textura Premium */
.bg-texture {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
}

/* Partículas Flutuantes */
.bg-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(143, 99, 63, 0.3);
    border-radius: 50%;
    filter: blur(2px);
    animation: float 15s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* ================================================
   HEADER
   ================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 80%, transparent 100%);
    backdrop-filter: blur(12px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-header {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.9);
    background: #1a1a1a;
    padding: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-header img {
    width: 125%;
    height: 125%;
    object-fit: cover;
    transform: scale(1.05);
}

.brand-header {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
}

.header-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    position: relative;
}

.header-btn-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #8f633f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #000;
}

.header-btn-badge.show {
    display: flex;
}

.header-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.header-btn:active {
    transform: scale(0.95);
}

.header-btn svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

/* ================================================
   MAIN CONTENT
   ================================================ */
.container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 140px 20px 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 40px;
    animation: fadeInDown 0.8s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #000;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 2px;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.15); /* Zoom milimétrico solicitado */
    transition: transform 0.5s ease;
}

.brand-name {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ================================================
   CATEGORY CARDS - DESKTOP
   ================================================ */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.category-card {
    aspect-ratio: 4/5;
    width: 100%;
    height: auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: #000;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    will-change: transform, opacity;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: rgba(143, 99, 63, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Video Container */
.card-videos {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
    pointer-events: none; /* Allow clicks to pass through to card */
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    transform: translateZ(0); /* Aceleração de hardware */
    backface-visibility: hidden;
}

.card-video.active {
    opacity: 1;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.4) 40%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    z-index: 2;
    pointer-events: none; /* Allow clicks to pass through to card */
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.category-card:hover .card-title {
    color: #8f633f;
    transform: scale(1.05);
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================
   SPLASH SCREEN
   ================================================ */
.splash-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.splash-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-logo-container {
    width: 140px;
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.splash-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

.splash-loader {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #8f633f;
    border-left-color: rgba(143, 99, 63, 0.3);
    animation: splashSpin 1.5s linear infinite;
}

.splash-text-container {
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-text {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transform: translateY(100%);
    animation: splashTextRise 1s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
    text-align: center;
}

.loading-bar-container {
    width: 150px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}

.loading-bar-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #8f633f;
    animation: splashProgress 2.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes splashSpin { to { transform: rotate(360deg); } }
@keyframes splashTextRise {
    to { opacity: 1; transform: translateY(0); letter-spacing: 15px; }
}
@keyframes splashProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ================================================
   LANGUAGE SELECTOR
   ================================================ */
.header-separator {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.3);
    margin: 0 10px;
}

.lang-selector {
    position: relative;
}

.current-lang {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all 0.2s ease;
}

.current-lang:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.current-lang .flag-icon {
    font-size: 20px;
    border-radius: 2px;
    width: 26px;
    line-height: 20px;
}

.lang-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 16px;
    width: 240px;
    display: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 1000;
}

.lang-dropdown.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.lang-grid .flag-icon {
    font-size: 24px;
    border-radius: 3px;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 100%;
    aspect-ratio: 4/3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.lang-grid .flag-icon:hover {
    transform: scale(1.2);
    z-index: 10;
}

/* Hide Google Translate Banner */
.goog-te-banner-frame { display: none !important; visibility: hidden !important; }
.skiptranslate { display: none !important; }
iframe.skiptranslate { display: none !important; visibility: hidden !important; }

/* ================================================
   MOBILE RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
    .container {
        padding: 100px 15px 40px;
    }

    .logo-section {
        margin-top: 60px;
        margin-bottom: 40px;
    }

    .logo-circle {
        width: 100px;
        height: 100px;
    }

    .brand-name {
        font-size: 14px;
        letter-spacing: 4px;
    }

    .cards-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0;
        height: auto;
        overflow: visible;
        scroll-snap-type: none;
    }

    .category-card {
        aspect-ratio: 1/1.3;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        border-radius: 18px;
        opacity: 1 !important;
        transform: none !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

    .card-overlay {
        padding: 15px;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    }

    .card-title {
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .brand-header {
        display: none;
    }
}
