/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --flamengo-red: #C8191E;
    --flamengo-dark-red: #a0141a;
    --black: #000000;
    --dark-bg: #1a1a1a;
    --dark-gray: #212121;
    --gray-card: #2a2a2a;
    --white: #ffffff;
    --light-gray: #b0b0b0;
    --orange-betano: #FF6600;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== HEADER ========== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-top {
    background-color: var(--black);
    height: 65px;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hamburger Button */
.hamburger-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 26px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    transition: opacity 0.3s;
}

.hamburger-btn:hover {
    opacity: 0.7;
}

/* Centered Logo */
.header-logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
}

/* Profile Button */
.profile-btn {
    color: var(--white);
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    transition: opacity 0.3s;
}

.profile-btn:hover {
    opacity: 0.7;
}

/* ========== SIDEBAR MENU ========== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--dark-gray);
    z-index: 2000;
    transition: left 0.3s ease;
    padding: 25px 0;
    overflow-y: auto;
}

.sidebar-menu.show {
    left: 0;
}

.sidebar-close {
    position: absolute;
    top: 15px;
    right: -40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--white);
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.sidebar-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.sidebar-links {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    padding: 12px 0;
    transition: opacity 0.3s;
}

.sidebar-link:hover {
    opacity: 0.7;
}

.sidebar-link i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    color: var(--light-gray);
}

.sidebar-link-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Sidebar Language Section */
.sidebar-lang-section {
    padding: 15px 25px;
    border-top: 1px solid #333;
    margin-top: 10px;
}

.sidebar-lang-title {
    display: block;
    color: var(--flamengo-red);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.sidebar-lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 0;
    transition: opacity 0.3s;
}

.sidebar-lang-option:hover {
    opacity: 0.7;
}

.sidebar-lang-option img {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
}

.sidebar-lang-option.active span {
    color: var(--flamengo-red);
}

/* ========== HERO BANNER ========== */
.hero-banner {
    margin-top: 65px;
    width: 100%;
    overflow: hidden;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== SECTION TITLES ========== */
.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.section-icon {
    width: 30px;
    height: auto;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ========== PRÓXIMOS JOGOS ========== */
.proximos-jogos {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Carousel Wrapper */
.jogos-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.jogos-swiper {
    overflow: hidden;
}

.swiper-btn-prev,
.swiper-btn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s;
    opacity: 0.7;
}

.swiper-btn-prev:hover,
.swiper-btn-next:hover {
    opacity: 1;
}

.swiper-btn-prev {
    left: 0;
}

.swiper-btn-next {
    right: 0;
}

.swiper-btn-prev img,
.swiper-btn-next img {
    width: 24px;
    height: auto;
    filter: brightness(0) invert(1);
}

.jogo-card {
    background: var(--dark-gray);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jogo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-image {
    height: 280px;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.card-competition {
    position: relative;
    z-index: 2;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-teams {
    background: var(--white);
    padding: 25px 20px;
    text-align: center;
}

.teams-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.vs-text {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.card-venue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.card-venue i {
    color: #999;
    font-size: 14px;
}

.card-datetime {
    background: rgba(100, 100, 100, 0.7);
    color: var(--white);
    text-align: center;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background: var(--dark-gray);
}

.btn-comprar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: var(--flamengo-red);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-comprar:hover {
    background: var(--flamengo-dark-red);
    color: var(--white);
}

.btn-info {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: transparent;
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.btn-info:hover {
    background: var(--white);
    color: var(--dark-gray);
}

/* ========== NAÇÃO BANNER ========== */
.nacao-banner {
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.nacao-content {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nacao-full-banner,
.nacao-mobile-banner {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.btn-assine {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--flamengo-red);
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    padding: 16px 60px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200, 25, 30, 0.5);
    z-index: 2;
}

.btn-assine:hover {
    background: var(--flamengo-dark-red);
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(200, 25, 30, 0.7);
    color: var(--white);
}

/* ========== MAIS FLAMENGO ========== */
.mais-flamengo {
    padding: 60px 20px 80px;
    max-width: 1400px;
    margin: 0 auto;
    background-image: url('bannerFooter.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.mais-flamengo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.85);
    z-index: 0;
}

.mais-flamengo .section-title-wrapper,
.mais-flamengo .mais-grid {
    position: relative;
    z-index: 1;
}

.mais-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.mais-card {
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.mais-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.mais-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========== INFO MODAL ========== */
.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
}

.info-modal-overlay.show {
    display: flex;
}

.info-modal {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    overflow: hidden;
}

.info-modal-header {
    background: var(--flamengo-red);
    padding: 16px 20px;
    text-align: center;
    flex-shrink: 0;
}

.info-modal-header h3 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.info-modal-body {
    padding: 25px 20px;
    overflow-y: auto;
    flex: 1;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.info-match-title {
    color: var(--flamengo-red);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.info-details-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.info-details-list li {
    margin-bottom: 5px;
    font-size: 14px;
}

.info-section {
    margin-bottom: 20px;
}

.info-section h5 {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.info-section p {
    margin-bottom: 4px;
    font-size: 14px;
    color: #333;
}

.info-link {
    color: var(--flamengo-red);
    font-weight: 600;
    text-decoration: underline;
}

.info-pricing {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.info-modal-footer {
    display: flex;
    gap: 0;
    flex-shrink: 0;
    border-top: 1px solid #ddd;
}

.btn-fechar,
.btn-comprar-modal {
    flex: 1;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.btn-fechar {
    background: var(--flamengo-red);
    color: var(--white);
}

.btn-fechar:hover {
    background: var(--flamengo-dark-red);
}

.btn-comprar-modal {
    background: var(--white);
    color: var(--flamengo-red);
    border-left: 1px solid #ddd;
}

.btn-comprar-modal:hover {
    background: #f5f5f5;
}

/* ========== FOOTER ========== */
.main-footer {
    background: var(--dark-gray);
    padding: 30px 20px;
    border-top: 1px solid #333;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-powered {
    display: flex;
    flex-direction: column;
}

.powered-text {
    font-size: 9px;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.powered-brand {
    font-size: 16px;
    font-weight: 800;
    color: var(--flamengo-red);
    line-height: 1.1;
}

.powered-dot {
    font-size: 12px;
    color: var(--white);
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-links-group a {
    color: var(--light-gray);
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links-group a:hover {
    color: var(--white);
}

/* ========== LOGIN PAGE ========== */
.login-page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 999;
    display: none;
    overflow-y: auto;
}

.login-page-overlay.show {
    display: block;
}

.login-page {
    max-width: 420px;
    margin: 0 auto;
    padding: 80px 30px 40px;
}

.login-back-btn {
    position: absolute;
    top: 75px;
    left: 20px;
    background: none;
    border: none;
    font-size: 22px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.login-back-btn:hover {
    color: var(--flamengo-red);
}

/* Login Toast */
.login-toast {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    z-index: 9999;
    transition: top 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: none;
}

.login-toast.show {
    display: block;
    top: 80px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    text-align: center;
}

.loading-content p {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #ddd;
    border-top: 4px solid var(--flamengo-red);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-title {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.login-subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.input-group-custom {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 30px;
    padding: 6px 18px;
    margin-bottom: 18px;
    transition: border-color 0.3s;
    position: relative;
}

.input-group-custom:focus-within {
    border-color: var(--flamengo-red);
}

.input-icon {
    color: var(--flamengo-red);
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

.input-field {
    flex: 1;
    position: relative;
}

.input-field label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: var(--flamengo-red);
    font-size: 11px;
    font-weight: 600;
    pointer-events: none;
    transition: all 0.2s;
    top: 6px;
    transform: none;
}

.input-field input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    padding: 18px 0 4px;
    background: transparent;
    color: #333;
}

.toggle-password {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
}

.forgot-link {
    display: block;
    text-align: right;
    color: #888;
    font-size: 13px;
    margin-bottom: 25px;
    font-style: italic;
}

.forgot-link:hover {
    color: var(--flamengo-red);
}

.btn-entrar-login {
    width: 100%;
    padding: 16px;
    background: var(--flamengo-red);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 20px;
}

.btn-entrar-login:hover {
    background: var(--flamengo-dark-red);
}

.register-text {
    text-align: center;
    color: #555;
    font-size: 14px;
    margin-bottom: 25px;
}

.register-link {
    color: var(--flamengo-red);
    font-weight: 700;
    text-decoration: underline;
}

.btn-flaid {
    width: 100%;
    padding: 16px;
    background: transparent;
    color: var(--flamengo-red);
    border: 2px solid var(--flamengo-red);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-flaid:hover {
    background: rgba(200, 25, 30, 0.05);
}

.flaid-logo {
    height: 22px;
    width: auto;
}

.flaid-text {
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .jogos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .ticket-icon {
        width: 40px;
    }

    .hero-banner {
        width: 100%;
    }

    .section-title {
        font-size: 22px;
    }

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

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

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links-group {
        align-items: center;
    }

    .sub-links {
        gap: 15px;
    }

    .sub-link {
        font-size: 11px;
    }

    .btn-assine {
        font-size: 16px;
        padding: 12px 40px;
    }

    .nacao-content {
        position: relative;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 22px;
    }

    .header-top {
        height: 55px;
    }

    .hero-banner {
        margin-top: 55px;
        width: 100%;
    }

    .logo-img {
        height: 35px;
    }

    .btn-assine {
        font-size: 14px;
        padding: 10px 30px;
        bottom: 15px;
    }
}

/* Bootstrap responsive utility support */
@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }
    .d-md-none {
        display: none !important;
    }
}
