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

html {
    scroll-behavior: smooth;
}

body {
    color: white;
    background-color: #000;
    font-family: 'Courier New', Courier, monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
header {
    border-radius: 18px;
    text-align: center;
    background: linear-gradient(to right, #002b5b 0%, #000000 50%, #5b0000 100%);
    color: white;
    padding: 50px 20px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

header h1 {
    font-size: 4em;
    line-height: 1.1;
}

header h3 {
    margin-top: 14px;
    font-size: 1.15em;
    font-weight: normal;
    color: #e8e8e8;
}

.vs {
    font-size: 2.2em;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
    display: inline-block;
    transition: transform 0.3s ease;
}

.vs:hover {
    transform: translateY(-10px);
}

section {
    scroll-margin-top: 140px;
}

.divLogo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.logo {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.25));
}

/* TEXTO RS */
.rs-cores {
    background: linear-gradient(to right, #006400, #8b0000, #ffd700);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: moverRS 4s linear infinite;
    font-weight: bold;
}

/* MENU GRENAL */
.menu {
    position: sticky;
    top: 12px;
    z-index: 1000;
    max-width: calc(100% - 40px);
    margin: 0 auto 20px auto;
    padding: 18px 28px;
    background: linear-gradient(90deg, #02101f, #050505, #1a0606);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        -8px 0 25px rgba(0, 104, 180, 0.18),
         8px 0 25px rgba(224, 30, 30, 0.18),
         0 8px 22px rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    flex-wrap: wrap;
}

.menu-esquerda {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.menu-direita {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.botao-menu {
    position: relative;
    display: inline-block;
    padding: 10px 16px;
    margin: 5px 8px;
    text-decoration: none;
    color: #ffffff;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.98rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
}

.botao-menu::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(to right, #0068b4 0%, #ffffff 50%, #e01e1e 100%);
    transition: width 0.3s ease;
}

.botao-menu:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}

.botao-menu:hover::after {
    width: 100%;
}

.botao-acesso {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 16px;
    border-radius: 8px;
}

.botao-acesso:hover {
    background: linear-gradient(to right, rgba(0, 104, 180, 0.25), rgba(224, 30, 30, 0.25));
}

.botao-acesso.cadastrar {
    background: linear-gradient(to right, rgba(0, 104, 180, 0.2), rgba(224, 30, 30, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.botao-acesso.cadastrar:hover {
    background: linear-gradient(to right, #0068b4, #e01e1e);
}

/* MAIN */
main {
    flex: 1;
}

/* SEÇÃO CLUBES */
#secao-clubes {
    padding: 120px 20px;
    border-radius: 18px;
    margin: 20px;
    background: linear-gradient(to right, #002b5b 0%, #000000 50%, #5b0000 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.container-clubes {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* CARDS */
.card-clube {
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-clube:hover {
    transform: translateY(-8px);
}

.card-gremio {
    background: linear-gradient(160deg, #0a1628, #0d2240);
    border: 1px solid rgba(0, 104, 180, 0.3);
}

.card-gremio:hover {
    box-shadow: 0 0 25px rgba(0, 104, 180, 0.35);
}

.card-inter {
    background: linear-gradient(160deg, #1a0a0a, #2a0e0e);
    border: 1px solid rgba(200, 0, 0, 0.3);
}

.card-inter:hover {
    box-shadow: 0 0 25px rgba(200, 0, 0, 0.35);
}

.efeito-brilho {
    position: absolute;
    top: 0;
    right: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(60px);
}

.azul {
    background: rgba(0, 104, 180, 0.2);
}

.vermelho {
    background: rgba(200, 0, 0, 0.2);
}

.conteudo-card {
    position: relative;
    z-index: 10;
}

.cabecalho-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.logo-clube {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    transition: 0.3s;
    flex-shrink: 0;
}

.logo-clube img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-clube:hover {
    transform: scale(1.1);
}

.card-gremio .logo-clube {
    box-shadow: 0 0 15px rgba(0, 104, 180, 0.6);
}

.card-inter .logo-clube {
    box-shadow: 0 0 15px rgba(224, 30, 30, 0.6);
}

.titulo-clube {
    font-size: 28px;
}

.fundacao {
    font-size: 14px;
    margin-top: 4px;
}

.descricao-clube {
    margin-bottom: 15px;
    line-height: 1.6;
}

.lista-titulos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-titulo {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.rodape-clube {
    margin-top: 15px;
    font-size: 13px;
    font-style: italic;
}

.azul-texto {
    color: #4db8ff;
}

.vermelho-texto {
    color: #ff6b6b;
}

.azul-suave {
    color: #607090;
}

.vermelho-suave {
    color: #906060;
}

.azul-texto-claro {
    color: #8899aa;
}

.vermelho-texto-claro {
    color: #aa8888;
}

.azul-rodape {
    color: #506880;
}

.vermelho-rodape {
    color: #805060;
}

/* SEÇÃO HISTÓRIA */
#secao-historia {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
    border-radius: 18px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

#secao-historia::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        #006400 0%,
        #1f5f1f 25%,
        #8b0000 50%,
        #b22222 75%,
        #ffd700 100%
    );
    opacity: 0.18;
    z-index: 1;
}

.overlay-historia {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15), transparent 60%);
    z-index: 2;
    animation: moverLuz 8s ease-in-out infinite alternate;
}

.container-historia {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    margin: auto;
}

.titulo-historia {
    font-size: 2.5em;
    color: white;
    margin-bottom: 30px;
    background: linear-gradient(to right, #0068b4, #ffffff, #e01e1e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.texto-historia {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #f1f1f1;
}

.destaque-historia {
    margin-top: 30px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    font-style: italic;
    color: #ffffff;
}

/* GALERIA */
#galeria-grenal {
    width: min(1200px, calc(100% - 40px));
    margin: 50px auto;
    padding: 30px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(0,43,91,0.22), rgba(0,0,0,0.72), rgba(91,0,0,0.22));
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255,255,255,0.08);
}

.titulo-galeria {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
}

.subtitulo-galeria {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.foto {
    overflow: hidden;
    border-radius: 12px;
    height: 200px;
    cursor: pointer;
}

.foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
    display: block;
}

.foto:hover img {
    transform: scale(1.1);
}

.destaque {
    grid-column: span 2;
    grid-row: span 2;
    height: 415px;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255,255,255,0.2);
    animation: zoomIn 0.3s ease;
}

.fechar {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    line-height: 1;
}

/* FOOTER */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(to right, #002b5b 0%, #000000 50%, #5b0000 100%);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.frase-footer {
    margin-bottom: 8px;
}

/* ANIMAÇÕES */
@keyframes moverLuz {
    0% {
        transform: translateX(0px) translateY(0px) scale(1);
    }

    100% {
        transform: translateX(20px) translateY(-10px) scale(1.05);
    }
}

@keyframes moverRS {
    0% {
        background-position: 0%;
    }

    100% {
        background-position: 200%;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .menu {
        padding: 15px 16px;
        justify-content: center;
    }

    .menu-esquerda,
    .menu-direita {
        justify-content: center;
        width: 100%;
    }

    .botao-menu {
        font-size: 0.9rem;
        margin: 4px 6px;
        padding: 10px 12px;
    }

    header h1 {
        font-size: 2.3em;
    }
}

@media (max-width: 768px) {
    header {
        padding: 40px 15px;
    }

    header h1 {
        font-size: 1.8em;
    }

    header h3 {
        font-size: 1em;
    }

    .card-clube {
        padding: 20px;
    }

    .titulo-clube {
        font-size: 22px;
    }

    .titulo-historia {
        font-size: 2em;
    }

    .texto-historia {
        font-size: 1em;
    }

    .logo {
        width: 120px;
        height: 120px;
    }

    .menu {
        top: 8px;
    }

    .logo-clube {
        width: 56px;
        height: 56px;
    }

    .grid-galeria {
        grid-template-columns: repeat(2, 1fr);
    }

    .destaque {
        grid-column: span 2;
        grid-row: span 1;
        height: 250px;
    }
}

@media (max-width: 560px) {
    .menu {
        padding: 12px;
    }

    .menu-direita {
        flex-direction: column;
        gap: 6px;
    }

    .botao-menu {
        display: block;
        margin: 8px 0;
    }

    .divLogo {
        gap: 14px;
    }

    .vs {
        width: 100%;
    }

    .cabecalho-card {
        align-items: center;
    }

    .logo-clube {
        width: 52px;
        height: 52px;
    }

    .grid-galeria {
        grid-template-columns: 1fr;
    }

    .foto,
    .destaque {
        height: 220px;
        grid-column: span 1;
        grid-row: span 1;
    }

    .fechar {
        top: 14px;
        right: 20px;
        font-size: 34px;
    }
}