*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

/* Fundo de estrelas */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}


html.light .text-theme-change {
    color: black;
}

html.dark .text-theme-change {
    color: white;
}

.text-theme-change {
    transition: color 0.5s;
}


/* Adiciona cor embaixo dos gradientes para o overscroll do celular */
html.dark  { background-color: #3d0070; }
html.light { background-color: #ecdeff; }

body {
    color: white;
    min-height: 100vh;
    padding-top: 100px;
    background: none;

    position: relative;
    z-index: 1;
}

body::before,
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    transition: opacity 0.8s ease;
    opacity: 0;
}

/* Para funcionar o liquid glass */
body::before {
    background: linear-gradient(360deg, #1a0035 0%, #2d0057 50%, #3d0070 100%);
    position: absolute;
    height: 100%;
    min-height: 100vh;
    padding-bottom: 100px;
}

body::after {
    background: linear-gradient(360deg, #b565f0 0%, #c187f3 50%, #ecdeff 100%);
    position: absolute;
    height: 100%;
    min-height: 100vh;
    padding-bottom: 100px;
}

/* Antes do liquid glass */

/* body::before {
    background: linear-gradient(360deg, #1a0035 0%, #2d0057 50%, #3d0070 100%);
}

body::after {
    background: linear-gradient(360deg, #b565f0 0%, #d4a0f7 50%, #ecdeff 100%);
} */


html.dark body::before  { opacity: 1; }
html.dark body::after   { opacity: 0; }

html.light body::before { opacity: 0; }
html.light body::after  { opacity: 1; }


/* #4B0082,     /* Roxo escuro */
/* #6A0DAD,     /* Roxo vibrante */
/* #7B68EE,     /* Azul-roxo médio */
/* #00BFFF);    /* Azul claro no final */
    
/* .liquidGL {
    position: fixed;
    top: 200px;
    left: 500px;
    width: 300px;
    height: 300px;
    border-radius: 90px;
    z-index: 10; */
    /* background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(10px); */
    /* transition: opacity 0.4s ease;
} */


/* .liquidGL.hidden {
    opacity: 0;
} */


/* TOP AREA */
.top-section{
    padding-top:30px;
    display:flex;
    justify-content:center;
}

/* PILL NAVBAR */
.navbar{
    position:fixed;
    top:20px;
    left:50%;
    transform:translateX(-50%);

    display:flex;
    align-items:center;
    justify-content:center;
    gap:30px;

    padding:10px 30px;
    border-radius:999px;

    /* GLASS EFFECT */
    /* background: rgba(255, 255, 255, 0); */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: saturate(120%);
    /* backdrop-filter: blur(5px) saturate(120%); */
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);

    z-index:1000;
    position:fixed;
}

.navbar::-webkit-scrollbar {
    display: none; /* esconde scrollbar no Chrome/Safari */
}

/* WRAPPER interno para centralizar os itens */
.navbar-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0; /* impede que os itens quebrem linha */
    margin: 0 auto;
    background: rgba(255, 255, 255, 0);
}


html.light .card h3,
html.light .card p,
html.light .top-card h3,
html.light .top-card p,
html.light .navbar a {
    color: black;
    /* transition: all 0.3s ease; */
}

html.dark .card h3,
html.dark .card p,
html.dark .top-card h3,
html.dark .top-card p,
html.dark .navbar a {
    color: white;
    /* transition: all 0.3s ease; */
}

html.light .card {
    background: rgba(255, 255, 255, 0.25);
    /* transition: background 0.8s ease; */
}

html.light .top-card {
    background: rgba(255, 255, 255, 0.25);
    /* transition: background 0.8s ease; */
}

html.light .navbar {
    background: rgba(255, 255, 255, 0.25);
    /* transition: background 0.8s ease; */
}

/* .navbar{
    position:fixed;
    top:20px;
    left:50%;
    transform:translateX(-50%);

    background:rgba(0,0,0,0.35);
    backdrop-filter:blur(10px);

    padding:15px 35px;
    border-radius:999px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:30px;

    z-index:1000;
} */

.navbar a{
    color:rgb(255, 255, 255);
    text-decoration:none;
    /* font-size:18px;
    font-weight: bold; */
    transition:0.2s;
}

/* .navbar a:hover{
    opacity:0.7;
} */

.navbar a:hover{
    opacity: 1;
    transform: scale(1.3);        /* amplia 12% */
    color: yellow;                /* cor roxa clara opcional */
}

html.loaded .nav-bar-icon {
    transition: filter 0.8s ease;
}

/* tema escuro (ícone branco) */
html.dark .nav-bar-icon {
    filter: invert(1);
}

/* BANNER */
/* .banner-container{
    margin-top:0;
    display:flex;
    justify-content:center;
}

.banner img{
    width: 50%;
    height: 50%;
    object-fit: cover; /* ou contain */
    /* display: block;
}

.banner{
    width:200px;
    height:300px;

    display:block;
} */ */

/* .banner{
    width:200px;
    height:300px;
    overflow:hidden;
}

.banner img{
    width:40%;
    height:40%;
    object-fit:cover;
}

/* CONTENT */
/* .content{
    width:90%;
    max-width:1200px;
    margin:40px auto;
} */ */




/* DARK-LIGHT THEME BUTTON */

.toggle-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 20px;
}

.toggle-btn img {
    width: 28px;
    height: 28px;
    display: block;
}



.banner-container{
    margin-top:0;
    display:flex;
    justify-content:center;

    /* width:1000;
    height:500px; */
    overflow:hidden;
}

.banner-container img{
    width:80%;
    height:80%;
    object-fit:cover;
    display:block;
}

.card{
    background:rgba(255,255,255,0.1);
    padding:30px;
    border-radius:20px;
    margin-bottom:25px;
}






/* BOOSTED */
/* imagem principal */
.image-wrapper{
    position: relative;
    display: block;
    width: 220px;
    height: 100px;
    /* max-width: 900px; */
    margin: 30px auto;
    text-align: center;
}

.base-image{
    width: 80%;
    height: auto;
    display: block;
    /* margin: 0 auto; */

    text-align: center;
}








.overlay{
    position: absolute;
    right: 0;
    bottom: 0;
}

/* tamanho das imagens pequenas */
.overlay img{
    width: auto;
    height: auto;
    display: block;
    transition: transform 0.2s
}

/* efeito hover */
.overlay:hover img{
    transform: scale(1.2);
}

/* texto escondido */
.label{
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;

    font-size: 12px;

    opacity: 0;
    transition: 0.2s;
    pointer-events: none;
}

/* mostrar nome no hover */
.overlay:hover .label{
    opacity: 1;
}

/* POSIÇÕES das imagens em cima da base */
.item1{
    bottom: 40px;
    right: 140px;
}

.item2{
    bottom: 40px;
    right: 80px;
}





/* ===================== CARDS GRID ===================== */
.cards-section {
    width: 90%;
    max-width: 1600px;
    margin: 80px auto;
    padding: 0 20px;
}

/* .section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: white;
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
} */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(138, 43, 226, 0.4);
}

.card-link{
    text-decoration: none;
    color: inherit;
    display: block;
}




/* test --------------------------------------------- */

.card-content {
    padding: 0px;
}

.card-header {
    display: flex;
    /* align-items: center; */
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.card img {
    flex-shrink: 0;
    /* width: 70px;
    height: 70px; */
    object-fit: contain;
    /* remova o position: absolute */

    max-width: 40px;
    max-height: 40px;
}

.card h3 {
    margin: 0;
    color: white;
    font-size: 1.4rem;
    /* align-items: center; */
    transition: color 0.5s ease;
}

.card p {
    margin: 0;
    /* padding: 100px 0 0; */
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    transition: color 0.5s ease;
}

/* .card-btn {
    margin: 0 20px 25px;
    padding: 12px 24px;
    background: rgba(138, 43, 226, 0.8);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    width: calc(100% - 40px);
} */

/* .card-btn:hover {
    background: #9933ff;
    transform: scale(1.05);
} */



/* ===================== TOP CARDS GRID ===================== */
.top-cards-section {
    width: 100%;
    /* max-width: 1500px; */
    margin: 40px auto;
    /* padding: 0 20px; */
    /* justify-content: center; */
}

/* .section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: white;
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
} */

.top-cards-grid {
    /* margin: 0 auto; */
    display: grid;
    justify-content: center;
    /* grid-template-columns: repeat(auto-fit, minmax(20px, 1fr)); */
    grid-template-columns: repeat(auto-fit, 150px);
    column-gap: 20px;
    row-gap: 20px;
}

.top-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);

    display: flex;
    flex-direction: column;
    justify-content: space-evenly; /* distribui igualmente */

    height: 150px;
    width: 150px;


}



/* .top-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(138, 43, 226, 0.4);
} */

.top-card img {
    margin: auto 0; /* ocupa o espaço livre acima e abaixo */
    align-self: center;
}


.top-card h3 {
    margin: 0;
    padding: 15px 10px 10px;

    color: white;
    font-size: 0.8rem;
    text-align: center;
    transition: color 0.5s ease;
}


.top-card p {
    margin: 0;
    padding: 0 10px 10px;

    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    text-align: center;
    transition: color 0.5s ease;
}
/* .card-btn {
    margin: 0 20px 25px;
    padding: 12px 24px;
    background: rgba(138, 43, 226, 0.8);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    width: calc(100% - 40px);
} */

/* .card-btn:hover {
    background: #9933ff;
    transform: scale(1.05);
} */


.top-card--events {
    margin: 5;
    height: 150px;
    padding: 3px;
    gap: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-bar {
    width: 150px;
    height: 30px;
    border-radius: 3px;
    background: #64162b;
    position: relative
}

.stat-item span {
    padding: 5px;
    font-size: 1rem;
    color: white;
    position: absolute;
    width: 150px;

    white-space: nowrap;      /* impede quebra de linha */
    overflow: hidden;         /* esconde o que passa */
    text-overflow: ellipsis;  /* adiciona os "..." */
}

.no-events {
    padding: 5px;
    font-size: 1rem;
    color: white;
    /* position: absolute; */
    width: 150px;

    white-space: nowrap;      /* impede quebra de linha */
    overflow: hidden;         /* esconde o que passa */
    text-overflow: ellipsis;  /* adiciona os "..." */

    flex-grow: 1;            /* ocupa o espaço restante */
    display: flex;
    align-items: center;     /* centraliza verticalmente */
    justify-content: center; /* centraliza horizontalmente */
}



    /* *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #0f0c1a;
      font-family: system-ui, sans-serif;
    } */

    /* ─── Sun Button ─────────────────────────────────── */
    .sun-btn {
        position: fixed;
        right: 50px;
        top: 20px;

        width: 100px;
        height: 100px;
        border: none;
        background: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transform: translateX(20px);
    }

    .sun-btn canvas {
      position: absolute;
      /* canvas é maior que o botão para dar espaço ao glow */
      inset: -30px;
      width: calc(100% + 60px);
      height: calc(100% + 60px);
      pointer-events: none;
      z-index: 1;
    }

    .sun-btn .core {
      width: 46px;
      height: 46px;
      background: radial-gradient(circle at 38% 35%, #FFE066, #FFB800 60%, #FF8C00);
      border-radius: 50%;
      position: relative;
      z-index: 2;
      transition: transform 0.4s ease;
    }

    .sun-btn:hover .core {
      transform: scale(1.07);
    }


    /* ─── Moon Button ─────────────────────────────────── */
    .moon-btn{
        position: fixed;

        right: 50px;
        top: 120px;

        width: 80px;
        height: 80px;

        border: none;
        background: none;
        cursor: pointer;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0;
    }

    #moonCanvas{
        width: 140px;
        height: 140px;
        pointer-events: none;
    }