/* Estilos customizados - Tema Midnight Minimalista */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #050505c0;
    color: #FFFFFF;
    overflow-x: hidden;
}

/* Títulos grandes SEMPRE usam fontes do sistema (LCP crítico) */
h1.text-4xl,
h1.text-5xl,
h1.text-6xl,
h1.text-7xl,
h1.text-8xl {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif !important;
    font-weight: 800 !important;
}

/* Scrollbar customizada premium - Tema Astex */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.4) 0%, rgba(234, 179, 8, 0.2) 100%);
    border-radius: 10px;
    border: 1px solid rgba(234, 179, 8, 0.1);
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.2);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.6) 0%, rgba(234, 179, 8, 0.4) 100%);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.4);
    border-color: rgba(234, 179, 8, 0.3);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.8) 0%, rgba(234, 179, 8, 0.6) 100%);
    box-shadow: 0 0 16px rgba(234, 179, 8, 0.6);
}

/* Scrollbar para elementos específicos */
.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.3) 0%, rgba(234, 179, 8, 0.15) 100%);
    border-radius: 3px;
    border: none;
    box-shadow: 0 0 4px rgba(234, 179, 8, 0.15);
    transition: all 0.3s ease;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.5) 0%, rgba(234, 179, 8, 0.3) 100%);
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.3);
}

/* Firefox scrollbar - Tema Astex */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(234, 179, 8, 0.3) rgba(0, 0, 0, 0.2);
}

.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: rgba(234, 179, 8, 0.3) transparent;
}

/* Transições de página HTMX (Estilo Next.js) */
.htmx-settling main {
    opacity: 0;
}

main {
    transition: opacity 200ms ease-in;
}

/* Efeito de seleção */
::selection {
    background-color: #FFFFFF;
    color: #000000;
}

/* Garantir que o conteúdo apareça sem delays */
main,
section,
div {
    opacity: 1;
    visibility: visible;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

/* Sem animações de carregamento - conteúdo aparece instantaneamente */

/* Efeitos de hover suaves */
a,
button {
    transition: all 0.2s ease;
}

/* Seleção de texto customizada */
::selection {
    background-color: #FFFFFF;
    color: #000000;
}

::-moz-selection {
    background-color: #FFFFFF;
    color: #000000;
}

/* Scroll instantâneo - sem delays */
html {
    scroll-behavior: auto;
}

/* Efeitos de glassmorphism para elementos flutuantes */
.glass {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Gradientes sutis */
.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 0%, #CCCCCC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus states acessíveis */
a:focus,
button:focus {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

/* Responsividade adicional */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    /* Ajustar tamanho dos quadrados do grid no mobile */
    body::before {
        background-size: 40px 40px;
    }
}

@media (max-width: 640px) {

    /* Ajustar padding e espaçamentos em telas muito pequenas */
    body::before {
        background-size: 30px 30px;
    }
}

/* Efeito de brilho sutil em elementos hover */
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}


.site-toast-container {
    position: fixed;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none;
}

.site-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    min-width: 260px;
    max-width: 380px;
    background: linear-gradient(135deg, rgba(13, 13, 18, 0.92) 0%, rgba(7, 7, 10, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.site-toast::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.15), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.site-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.site-toast.hide {
    opacity: 0;
    transform: translateY(8px);
}

.site-toast-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: #000;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

.site-toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-toast-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #facc15;
}

.site-toast-message {
    font-size: 12px;
    color: #e5e7eb;
    line-height: 1.45;
}

.site-toast-message strong {
    color: #fff;
}

@media (max-width: 640px) {
    .site-toast-container {
        left: 12px;
        right: 12px;
        bottom: 16px;
    }

    .site-toast {
        max-width: none;
        width: 100%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.8;
    }

    33% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }

    66% {
        transform: translateY(20px) translateX(-10px);
        opacity: 0.9;
    }
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.6;
        filter: brightness(1);
    }

    50% {
        opacity: 1;
        filter: brightness(1.2);
    }
}

/* Garantir que o conteúdo fique acima do fundo */
main,
section,
nav {
    position: relative;
    z-index: 1;
}

.leaf {
    position: absolute;
    top: -20vh;
    font-size: 2.5rem;
    opacity: 0.85;
    pointer-events: none;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    transform: translateZ(0); /* GPU acceleration */
    backface-visibility: hidden; /* Otimização */
}

/* Desabilitar animações se usuário prefere movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .leaf {
        animation: none !important;
        opacity: 0.3;
    }
}

.leaf-1,
.leaf-5,
.leaf-9,
.leaf-13,
.leaf-17 {
    font-size: 3rem;
    z-index: 6;
    animation-name: fallNear;
}

.leaf-3,
.leaf-7,
.leaf-11,
.leaf-15,
.leaf-19 {
    font-size: 2.5rem;
    z-index: 5;
    animation-name: fallMedium;
}

.leaf-2,
.leaf-4,
.leaf-6,
.leaf-8,
.leaf-10,
.leaf-12,
.leaf-14,
.leaf-16,
.leaf-18,
.leaf-20 {
    font-size: 2rem;
    z-index: 4;
    animation-name: fallFar;
}

/* Folhas de fundo - muito distantes */
.leaf-21,
.leaf-23,
.leaf-25,
.leaf-27,
.leaf-29,
.leaf-31,
.leaf-33,
.leaf-35,
.leaf-37,
.leaf-39 {
    font-size: 1.2rem;
    z-index: 2;
    opacity: 0.4;
    animation-name: fallVeryFar;
}

.leaf-22,
.leaf-24,
.leaf-26,
.leaf-28,
.leaf-30,
.leaf-32,
.leaf-34,
.leaf-36,
.leaf-38,
.leaf-40 {
    font-size: 1rem;
    z-index: 1;
    opacity: 0.3;
    animation-name: fallExtremeFar;
}

.leaf-1 {
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.leaf-2 {
    left: 20%;
    animation-duration: 20s;
    animation-delay: 4s;
}

.leaf-3 {
    left: 30%;
    animation-duration: 19s;
    animation-delay: 2s;
}

.leaf-4 {
    left: 40%;
    animation-duration: 21s;
    animation-delay: 6s;
}

.leaf-5 {
    left: 50%;
    animation-duration: 17s;
    animation-delay: 1s;
}

.leaf-6 {
    left: 60%;
    animation-duration: 20s;
    animation-delay: 5s;
}

.leaf-7 {
    left: 70%;
    animation-duration: 22s;
    animation-delay: 3s;
}

.leaf-8 {
    left: 80%;
    animation-duration: 18s;
    animation-delay: 7s;
}

.leaf-9 {
    left: 90%;
    animation-duration: 19s;
    animation-delay: 2.5s;
}

.leaf-10 {
    left: 15%;
    animation-duration: 21s;
    animation-delay: 8s;
}

.leaf-11 {
    left: 62%;
    animation-duration: 19s;
    animation-delay: 4s;
}

.leaf-12 {
    left: 76%;
    animation-duration: 22s;
    animation-delay: 6s;
}

.leaf-13 {
    left: 30%;
    animation-duration: 18s;
    animation-delay: 3s;
}

.leaf-14 {
    left: 40%;
    animation-duration: 20s;
    animation-delay: 5.5s;
}

.leaf-15 {
    left: 50%;
    animation-duration: 17.5s;
    animation-delay: 1.5s;
}

.leaf-16 {
    left: 60%;
    animation-duration: 23s;
    animation-delay: 7.5s;
}

.leaf-17 {
    left: 70%;
    animation-duration: 19s;
    animation-delay: 2s;
}

.leaf-18 {
    left: 80%;
    animation-duration: 21s;
    animation-delay: 5s;
}

.leaf-19 {
    left: 90%;
    animation-duration: 18.5s;
    animation-delay: 4s;
}

.leaf-20 {
    left: 12%;
    animation-duration: 22s;
    animation-delay: 3.5s;
}

/* Folhas de fundo - posicionamento e timing */
.leaf-21 {
    left: 8%;
    animation-duration: 35s;
    animation-delay: 0s;
}

.leaf-22 {
    left: 18%;
    animation-duration: 38s;
    animation-delay: 2s;
}

.leaf-23 {
    left: 28%;
    animation-duration: 32s;
    animation-delay: 4s;
}

.leaf-24 {
    left: 38%;
    animation-duration: 40s;
    animation-delay: 1s;
}

.leaf-25 {
    left: 48%;
    animation-duration: 36s;
    animation-delay: 5s;
}

.leaf-26 {
    left: 58%;
    animation-duration: 34s;
    animation-delay: 3s;
}

.leaf-27 {
    left: 68%;
    animation-duration: 39s;
    animation-delay: 6s;
}

.leaf-28 {
    left: 78%;
    animation-duration: 33s;
    animation-delay: 2.5s;
}

.leaf-29 {
    left: 88%;
    animation-duration: 37s;
    animation-delay: 4.5s;
}

.leaf-30 {
    left: 3%;
    animation-duration: 35s;
    animation-delay: 1.5s;
}

.leaf-31 {
    left: 13%;
    animation-duration: 38s;
    animation-delay: 7s;
}

.leaf-32 {
    left: 23%;
    animation-duration: 32s;
    animation-delay: 3.5s;
}

.leaf-33 {
    left: 33%;
    animation-duration: 40s;
    animation-delay: 5.5s;
}

.leaf-34 {
    left: 43%;
    animation-duration: 36s;
    animation-delay: 2s;
}

.leaf-35 {
    left: 53%;
    animation-duration: 34s;
    animation-delay: 6.5s;
}

.leaf-36 {
    left: 63%;
    animation-duration: 39s;
    animation-delay: 4s;
}

.leaf-37 {
    left: 73%;
    animation-duration: 33s;
    animation-delay: 1s;
}

.leaf-38 {
    left: 83%;
    animation-duration: 37s;
    animation-delay: 5s;
}

.leaf-39 {
    left: 93%;
    animation-duration: 35s;
    animation-delay: 3s;
}

.leaf-40 {
    left: 7%;
    animation-duration: 38s;
    animation-delay: 7.5s;
}

@keyframes fallNear {
    0% {
        transform: translate3d(0, -20vh, 0) rotate(0deg) scale(1);
        opacity: 0;
    }

    5% {
        opacity: 0.9;
    }

    25% {
        transform: translate3d(25px, 25vh, 0) rotate(35deg) scale(0.98);
    }

    50% {
        transform: translate3d(-30px, 55vh, 0) rotate(-45deg) scale(0.95);
    }

    75% {
        transform: translate3d(20px, 85vh, 0) rotate(40deg) scale(0.9);
        opacity: 0.7;
    }

    100% {
        transform: translate3d(0, 120vh, 0) rotate(0deg) scale(0.85);
        opacity: 0;
    }
}

@keyframes fallMedium {
    0% {
        transform: translate3d(0, -20vh, 0) rotate(0deg) scale(0.95);
        opacity: 0;
    }

    5% {
        opacity: 0.8;
    }

    25% {
        transform: translate3d(-22px, 25vh, 0) rotate(-30deg) scale(0.93);
    }

    50% {
        transform: translate3d(26px, 55vh, 0) rotate(40deg) scale(0.9);
    }

    75% {
        transform: translate3d(-18px, 85vh, 0) rotate(-35deg) scale(0.86);
        opacity: 0.6;
    }

    100% {
        transform: translate3d(0, 120vh, 0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes fallFar {
    0% {
        transform: translate3d(0, -20vh, 0) rotate(0deg) scale(0.9);
        opacity: 0;
    }

    5% {
        opacity: 0.7;
    }

    25% {
        transform: translate3d(14px, 25vh, 0) rotate(20deg) scale(0.88);
    }

    50% {
        transform: translate3d(-18px, 55vh, 0) rotate(-30deg) scale(0.85);
    }

    75% {
        transform: translate3d(12px, 85vh, 0) rotate(25deg) scale(0.82);
        opacity: 0.5;
    }

    100% {
        transform: translate3d(0, 120vh, 0) rotate(0deg) scale(0.78);
        opacity: 0;
    }
}

@keyframes fallVeryFar {
    0% {
        transform: translate3d(0, -20vh, 0) rotate(0deg) scale(0.6);
        opacity: 0;
    }

    5% {
        opacity: 0.4;
    }

    25% {
        transform: translate3d(10px, 25vh, 0) rotate(15deg) scale(0.58);
    }

    50% {
        transform: translate3d(-12px, 55vh, 0) rotate(-20deg) scale(0.55);
    }

    75% {
        transform: translate3d(8px, 85vh, 0) rotate(18deg) scale(0.52);
        opacity: 0.3;
    }

    100% {
        transform: translate3d(0, 120vh, 0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
}

@keyframes fallExtremeFar {
    0% {
        transform: translate3d(0, -20vh, 0) rotate(0deg) scale(0.4);
        opacity: 0;
    }

    5% {
        opacity: 0.3;
    }

    25% {
        transform: translate3d(8px, 25vh, 0) rotate(12deg) scale(0.48);
    }

    50% {
        transform: translate3d(-10px, 55vh, 0) rotate(-15deg) scale(0.45);
    }

    75% {
        transform: translate3d(6px, 85vh, 0) rotate(14deg) scale(0.42);
        opacity: 0.2;
    }

    100% {
        transform: translate3d(0, 120vh, 0) rotate(0deg) scale(0.4);
        opacity: 0;
    }
}

@media (min-width: 1024px) {
    .leaf {
        font-size: 2.5rem;
    }
}



.container-relativo {
    position: relative;
    z-index: 15;
}

.inseto-absoluto {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    bottom: -0.25rem;
    left: -0.25rem;
}

.quadro-imagem {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.125rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.letra-fundo {
    color: rgba(255, 255, 255, 0.02);
    font-size: 25rem;
    font-weight: 900;
    pointer-events: none;
    user-select: none;
    position: absolute;
}

.imagem-flutuante {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 10;

    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 10;
}



/* Animação suave passando para a direita */
@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-1 * (var(--card-width) + 5rem) * var(--video-count)));
    }
}

/* Ajustar animação para diferentes tamanhos de tela com novos espaçamentos */
@media (max-width: 639px) {
    @keyframes scrollCarousel {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-1 * (90vw + 5rem) * var(--video-count)));
        }
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    @keyframes scrollCarousel {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-1 * (80vw + 5rem) * var(--video-count)));
        }
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    @keyframes scrollCarousel {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-1 * (70vw + 5rem) * var(--video-count)));
        }
    }
}

@media (min-width: 1280px) and (max-width: 1535px) {
    @keyframes scrollCarousel {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-1 * (60vw + 5rem) * var(--video-count)));
        }
    }
}

/* YouTube Marquee Styles */
.youtube-marquee-container {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

#youtube-marquee-content {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
}

.marquee-item {
    flex-shrink: 0;
    width: 450px;
    /* Aumentado para melhor visualização */
}

.youtube-video-card {
    position: relative;
    flex-shrink: 0;
    width: 450px;
    /* Aumentado para 400px */
    aspect-ratio: 16 / 9;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #000;
    border: 2px solid transparent;
    background-image:
        linear-gradient(#000, #000),
        linear-gradient(135deg, rgba(234, 179, 8, 0.6), rgba(234, 179, 8, 0.3), rgba(234, 179, 8, 0.6));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(234, 179, 8, 0.2) inset,
        0 0 12px rgba(234, 179, 8, 0.05);
}

.youtube-video-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg,
            rgba(234, 179, 8, 0.8),
            rgba(234, 179, 8, 0.4),
            rgba(234, 179, 8, 0.8),
            rgba(234, 179, 8, 0.4));
    border-radius: 1.25rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(4px);
}

.youtube-video-card:hover {
    transform: scale(1.05) translateY(-4px);
    z-index: 50;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.8),
        0 0 0 2px rgba(234, 179, 8, 0.4) inset,
        0 0 25px rgba(234, 179, 8, 0.2),
        0 0 35px rgba(234, 179, 8, 0.1);
    background-image:
        linear-gradient(#000, #000),
        linear-gradient(135deg, rgba(234, 179, 8, 0.9), rgba(234, 179, 8, 0.5), rgba(234, 179, 8, 0.9));
}

.youtube-video-card:hover::before {
    opacity: 1;
}

.youtube-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.youtube-video-card:hover .youtube-thumbnail {
    transform: scale(1.1);
}

/* Estilização de selects para dark theme */
select:not(#category-filter):not(#game-filter) {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 10px 10px !important;
    padding-right: 2.5rem !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

select:not(#category-filter):not(#game-filter):focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' transform='rotate(180)'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.2) !important;
    border-color: rgba(234, 179, 8, 0.4) !important;
}

/* Remove a seta padrão no IE/Edge */
select::-ms-expand {
    display: none !important;
}

select option {
    background-color: #0a0a0a !important;
    color: white !important;
    padding: 0.5rem !important;
}

select:not(#category-filter):not(#game-filter):focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    outline: none !important;
}

select:not(#category-filter):not(#game-filter):hover {
    background-color: rgba(255, 255, 255, 0.07) !important;
}

/* Estilização moderna para selects de filtros */
#category-filter, #game-filter {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    padding: 0.75rem 2.5rem 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    border-radius: 0.75rem !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
}

#category-filter:focus, #game-filter:focus {
    border-color: rgba(234, 179, 8, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1) !important;
    outline: none !important;
}

#category-filter:hover, #game-filter:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Quando tem valor selecionado, destacar com borda amarela */
#category-filter[value]:not([value=""]),
#game-filter[value]:not([value=""]) {
    border-color: rgba(234, 179, 8, 0.5) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

#category-filter option, #game-filter option {
    background-color: #0a0a0a !important;
    color: white !important;
    padding: 0.5rem !important;
}

#category-filter option:checked, #game-filter option:checked {
    background-color: rgba(234, 179, 8, 0.2) !important;
    color: #fbbf24 !important;
}

/* Details/Summary Dropdown Styles - HTML Nativo, sem JS */
details {
    position: relative;
}

/* Remover marcador padrão do summary */
details summary {
    list-style: none;
    cursor: pointer;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::marker {
    display: none;
}

/* Estilo do menu dropdown */
details > div {
    animation: slideDown 0.2s ease-out;
    pointer-events: auto !important;
    position: relative;
    z-index: 1000;
}

/* Garantir que links dentro do dropdown sejam clicáveis */
details > div a {
    pointer-events: auto !important;
    position: relative;
    z-index: 1001;
    cursor: pointer;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rotação da seta quando aberto */
details[open] summary i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Efeito visual quando aberto */
details[open] summary {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Melhorar a aparência dos botões de dropdown */
nav button {
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    color: inherit;
}

/* Ajustar espaçamento do conteúdo principal para navbar */
main {
    padding-top: 4.5rem;
}

@media (min-width: 768px) {
    main {
        padding-top: 4.5rem;
    }
}

/* Dropdown Menu Styles */
.dropdown-menu {
    z-index: 1000;
}

/* Garantir que dropdowns fiquem acima de outros elementos */
nav .group:hover .absolute {
    z-index: 1000;
}

/* Animação suave para dropdowns */
nav .group .absolute {
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

nav .group:hover .absolute {
    pointer-events: auto;
}

/* Melhorar a aparência dos botões de dropdown */
nav button {
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
}

/* Ajustar espaçamento do conteúdo principal para navbar menor */
main {
    padding-top: 3.5rem;
}

@media (min-width: 768px) {
    main {
        padding-top: 3.5rem;
    }
}

/* Mobile Details/Summary Styles */
#mobile-menu details summary {
    list-style: none;
}

#mobile-menu details summary::-webkit-details-marker {
    display: none;
}

#mobile-menu details summary::marker {
    display: none;
}

#mobile-menu details[open] summary i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Review Cards Modern Styles */
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}