/* ============================================
   BetsMoz - CSS Principal
   ============================================ */

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primario: #1a1a2e;        /* Azul noite profundo */
    --primario-escuro: #0d0d1a; /* Quase preto azulado */
    --acento: #e8b400;          /* Dourado apostas */
    --acento-escuro: #c49a00;   /* Dourado escuro */
    --acento-claro: #ffd233;    /* Dourado claro */
    --vermelho: #e63946;        /* Vermelho vivo apostas */
    --vermelho-escuro: #c1121f;
    --verde-odds: #16c784;      /* Verde lucro/ganho */
    --texto: #1a1a2e;
    --texto-suave: #5a5a7a;
    --fundo: #ffffff;
    --fundo-suave: #f4f4f8;
    --fundo-escuro: #0d0d1a;
    --borda: #dcdce8;
    --sombra: 0 2px 8px rgba(26,26,46,0.10);
    --sombra-media: 0 4px 20px rgba(26,26,46,0.16);
    --sombra-dourada: 0 4px 20px rgba(232,180,0,0.2);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Roboto, -apple-system, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--texto);
    background: var(--fundo);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primario);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover { color: var(--acento-escuro); }

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

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--texto);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--primario);
    box-shadow: var(--sombra-media);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    color: var(--acento);
    font-weight: 800;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav ul a {
    color: #d0d0e8;
    font-weight: 500;
}

.main-nav ul a:hover { color: var(--acento); }

.nav-auth {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   BOTÕES
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 2px solid transparent;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background: var(--acento);
    color: var(--primario-escuro);
}

.btn-primary:hover {
    background: var(--acento-claro);
    color: var(--primario-escuro);
    transform: translateY(-1px);
    box-shadow: var(--sombra-dourada);
}

.btn-outline {
    border-color: var(--acento);
    color: var(--acento);
    background: transparent;
}

.btn-outline:hover {
    background: var(--acento);
    color: var(--primario-escuro);
}

.btn-danger {
    background: var(--vermelho);
    color: white;
    border-color: var(--vermelho);
}

.btn-danger:hover {
    background: var(--vermelho-escuro);
    color: white;
}

.btn-large {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primario) 0%, var(--primario-escuro) 60%, #1a0a2e 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(232,180,0,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(230,57,70,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h1 span { color: var(--acento); }

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.92;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: var(--acento);
    color: var(--primario-escuro);
    font-weight: 700;
}

.hero .btn-primary:hover {
    background: var(--acento-claro);
    box-shadow: var(--sombra-dourada);
}

.hero .btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.hero .btn-outline:hover {
    background: white;
    color: var(--primario);
    border-color: white;
}

/* ============================================
   SECÇÕES
   ============================================ */
.section { padding: 4rem 0; }

.section-alt { background: var(--fundo-suave); }

.section-dark {
    background: var(--primario);
    color: white;
}

.section-dark h2,
.section-dark h3,
.section-dark p { color: white; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 { margin-bottom: 0.5rem; }

.section-title p {
    color: var(--texto-suave);
    font-size: 1.1rem;
}

.section-title .eyebrow {
    color: var(--acento);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
}

/* ============================================
   GRELHAS
   ============================================ */
.grid { display: grid; gap: 2rem; }

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--sombra);
    border: 1px solid var(--borda);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-media);
    border-color: var(--acento);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primario), var(--primario-escuro));
    color: var(--acento);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--primario);
    margin-bottom: 0.5rem;
}

/* Card de artigo */
.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra);
    border: 1px solid var(--borda);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-media);
}

.article-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primario), #2a1a4e);
    background-size: cover;
    background-position: center;
}

.article-card-body { padding: 1.5rem; }

.article-card-meta {
    font-size: 0.85rem;
    color: var(--texto-suave);
    margin-bottom: 0.5rem;
}

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.article-card h3 a { color: var(--texto); }

.article-card h3 a:hover { color: var(--primario); }

/* Badge de odds */
.badge-odds {
    display: inline-block;
    background: var(--verde-odds);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-hot {
    display: inline-block;
    background: var(--vermelho);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    background: linear-gradient(135deg, var(--primario) 0%, var(--primario-escuro) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 50%, rgba(232,180,0,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta h2 { color: white; }

.cta p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.92;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background: var(--acento);
    color: var(--primario-escuro);
    font-weight: 700;
}

.cta .btn-primary:hover {
    background: var(--acento-claro);
    box-shadow: var(--sombra-dourada);
}

/* ============================================
   ESTATÍSTICAS
   ============================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--acento);
    display: block;
}

.stat-label {
    color: #a0a0c0;
    font-weight: 500;
}

/* ============================================
   FORMULÁRIOS
   ============================================ */
.form-box {
    max-width: 450px;
    margin: 3rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--sombra-media);
    border: 1px solid var(--borda);
}

.form-box h1 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--texto);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--borda);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--acento);
    box-shadow: 0 0 0 3px rgba(232,180,0,0.15);
}

.form-box .btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.05rem;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--texto-suave);
}

/* ============================================
   ALERTAS / FLASH
   ============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: #e6faf3;
    color: #0a5c39;
    border-color: var(--verde-odds);
}

.alert-error {
    background: #fff0f1;
    color: #8b0000;
    border-color: var(--vermelho);
}

.alert-warning {
    background: #fffbea;
    color: #7a5500;
    border-color: var(--acento);
}

.alert-info {
    background: #eeeeff;
    color: #1a1a6e;
    border-color: #5555cc;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--primario-escuro);
    color: #a0a0c0;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.site-footer h3,
.site-footer h4 {
    color: white;
    margin-bottom: 1rem;
}

.site-footer ul { list-style: none; }

.site-footer ul li { margin-bottom: 0.5rem; }

.site-footer a { color: #a0a0c0; }

.site-footer a:hover { color: var(--acento); }

.footer-bottom {
    border-top: 1px solid #2a2a4a;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .main-nav ul {
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .section { padding: 2.5rem 0; }

    .stat-number { font-size: 2rem; }
}

/* ============================================
   NAVBAR Bootstrap personalizada
   ============================================ */
.site-navbar {
    background: var(--primario) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    padding: 0.75rem 0;
    transition: box-shadow 0.2s, padding 0.2s;
    border-bottom: 2px solid rgba(232,180,0,0.2);
}

.site-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    padding: 0.5rem 0;
}

/* Logo */
.navbar-brand {
    color: var(--acento) !important;
    font-size: 1.4rem;
    transition: color 0.2s;
}

.navbar-brand:hover { color: var(--acento-claro) !important; }

.navbar-logo {
    max-height: 42px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Itens do menu */
.navbar .nav-link {
    color: #d0d0e8 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
}

.navbar .nav-link:hover {
    color: var(--acento) !important;
    background: rgba(232,180,0,0.08);
}

.navbar .nav-link.active {
    color: var(--acento) !important;
    font-weight: 600;
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--acento);
    border-radius: 2px;
}

@media (max-width: 991px) {
    .navbar .nav-link.active::after { display: none; }
    .navbar .nav-link.active {
        background: rgba(232,180,0,0.1);
    }
}

/* Dropdowns */
.dropdown-menu {
    background: var(--primario);
    border: 1px solid rgba(232,180,0,0.2);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem !important;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.dropdown-item {
    border-radius: 5px;
    padding: 0.55rem 0.85rem;
    font-size: 0.92rem;
    color: #c0c0e0;
    transition: all 0.15s;
}

.dropdown-item:hover {
    background: rgba(232,180,0,0.1);
    color: var(--acento);
}

.dropdown-item:active,
.dropdown-item.active {
    background: var(--acento);
    color: var(--primario-escuro);
}

/* Pesquisa desktop */
.search-form { min-width: 220px; }

.search-form .form-control {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: white;
}

.search-form .form-control::placeholder { color: rgba(255,255,255,0.45); }

.search-form .form-control:focus {
    border-color: var(--acento);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 0.2rem rgba(232,180,0,0.2);
    color: white;
}

/* Avatar do utilizador */
.user-avatar {
    width: 30px;
    height: 30px;
    background: var(--acento);
    color: var(--primario-escuro);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.user-dropdown .btn {
    border: 1px solid rgba(232,180,0,0.3);
    background: rgba(232,180,0,0.08);
    color: #d0d0e8;
    font-weight: 500;
}

.user-dropdown .btn:hover,
.user-dropdown .btn:focus {
    background: rgba(232,180,0,0.15);
    border-color: var(--acento);
    color: var(--acento);
}

/* Override Bootstrap — botões principais */
.btn-success,
.btn-success:visited {
    background: var(--acento) !important;
    border-color: var(--acento) !important;
    color: var(--primario-escuro) !important;
    font-weight: 700;
}

.btn-success:hover,
.btn-success:focus {
    background: var(--acento-claro) !important;
    border-color: var(--acento-claro) !important;
    color: var(--primario-escuro) !important;
    box-shadow: var(--sombra-dourada) !important;
}

.btn-outline-success {
    color: var(--acento) !important;
    border-color: var(--acento) !important;
}

.btn-outline-success:hover {
    background: var(--acento) !important;
    border-color: var(--acento) !important;
    color: var(--primario-escuro) !important;
}

.btn-outline-light {
    color: #d0d0e8 !important;
    border-color: rgba(255,255,255,0.35) !important;
}

.btn-outline-light:hover {
    background: white !important;
    color: var(--primario) !important;
}

.btn-warning {
    background: var(--acento) !important;
    border-color: var(--acento) !important;
    color: var(--primario-escuro) !important;
    font-weight: 700;
}

.btn-warning:hover,
.btn-warning:focus {
    background: var(--acento-claro) !important;
    border-color: var(--acento-claro) !important;
    color: var(--primario-escuro) !important;
    box-shadow: var(--sombra-dourada) !important;
}

/* Toggler hamburger */
.navbar-toggler {
    border: 1px solid rgba(232,180,0,0.35);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(232,180,0,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(232,180,0,0.3);
}

/* Badge de texto Bootstrap */
.badge.bg-success {
    background: var(--verde-odds) !important;
    color: white !important;
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 991px) {
    .site-navbar { padding: 0.6rem 0; }

    .navbar-brand { font-size: 1.2rem; }

    .navbar-collapse {
        padding-top: 1rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(232,180,0,0.15);
    }

    .navbar .nav-link {
        padding: 0.7rem 0.5rem !important;
        border-radius: 6px;
    }

    .navbar .nav-link i {
        width: 22px;
        text-align: center;
        color: rgba(232,180,0,0.6);
    }

    .navbar-nav { margin-bottom: 0.75rem !important; }

    .dropdown-menu {
        border: none;
        background: rgba(255,255,255,0.04);
        margin: 0.25rem 0 0.5rem 1.5rem !important;
        padding: 0.25rem;
        box-shadow: none;
    }

    .user-dropdown { width: 100%; }
}

/* =====================================================
   BetsMoz — Correção de cores de títulos
   Adicionar ao final do assets/css/style.css
   ou incluir como ficheiro separado
   ===================================================== */

/* Hero — garantir que TODO o texto é branco */
.hp-hero,
.hp-hero h1,
.hp-hero p,
.hp-hero .lead {
    color: #ffffff !important;
}
.hp-hero h1 span {
    color: var(--acento, #e8b400) !important;
}

/* Secções com fundo escuro — títulos brancos */
.hp-stats .hp-stat-label {
    color: #a0a0c8;
}
.hp-stats .hp-stat-number {
    color: var(--acento, #e8b400);
}

/* Secções com fundo claro — títulos escuros mas legíveis */
.hp-section-title h2 {
    color: #ffffff;
}

/* Onde o fundo é claro (branco/cinza), manter escuro */
section.py-5:not(.hp-stats) .hp-section-title h2,
section.bg-light .hp-section-title h2 {
    color: #1a1a2e;
}

/* Parceiros secção — fundo claro */
.hp-parceiros .hp-section-title h2 {
    color: #1a1a2e;
}

/* Feature cards */
.hp-feature-card h3 {
    color: #1a1a2e;
}

/* Article cards */
.hp-article-title a {
    color: #1a1a2e;
}

/* Why cards */
.hp-why-card h3 {
    color: #1a1a2e;
}

/* FAQ */
.hp-faq-item .accordion-button {
    color: #1a1a2e;
}

/* Casas de apostas hero */
.ca-hero h1,
.cr-hero h1 {
    color: #ffffff !important;
}

/* Archive header */
.archive-header h1 {
    color: #ffffff !important;
}

/* Page hero */
.page-hero h1 {
    color: #ffffff !important;
}