/* ==============================================
   VARIÁVEIS E RESET
   ============================================== */

:root {
    --purple-dark: #6A1B9A;
    --purple-light: #9C27B0;
    --purple-gradient-start: #4A148C;
    --purple-gradient-end: #7B1FA2;
    --green-accent: #8BC34A;
    --yellow-accent: #FFEB3B;
    --text-dark: #424242;
    --text-light: #f4f4f4;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border-light: #ddd;
    --laranja: #FF9800;
    --laranja-hover: #ffad32;
    --bola-sorteada: #930089;
    --tema: #60017a;
    --bg-title: #d9d9e4ff;
    --bg-volante: #FFFBD5;

        /* Gráficos */
    --blue-chart: #2196F3;
    --green-chart: #8BC34A;
    --red-chart: #F44336;

}
.bola-sorteada {
  background-color: var(--bola-sorteada) !important;
  color: #fff !important; /* ou text-dark se preferir */
  font-weight: normal;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==============================================
   ESTRUTURA BASE
   ============================================== */

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1 0 auto;
    width: 100%;
}

/* ==============================================
   ELEMENTOS GLOBAIS
   ============================================== */

a {
    text-decoration: none;
    color: var(--purple-light);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--purple-dark);
}

/* ==============================================
   COMPONENTES
   ============================================== */

/* ----- BOTÕES ----- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--laranja);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--purple-light);
    color: var(--text-light);
}

.btn-cta {
    background-color: var(--green-accent);
    color: var(--text-dark);
    font-size: 1.1em;
    padding: 12px 25px;
    border-radius: 30px;
}

.btn-cta:hover {
    background-color: #7CB342;
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--purple-dark);
    border: 1px solid var(--purple-light);
    margin-right: 10px;
}

.btn-secondary:hover {
    background-color: var(--bg-light);
}

/* ----- HEADER ----- */
.main-header {
    background-color: var(--tema);
    color: var(--text-light);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.main-header .logo h1 {
    font-size: 1.8em;
    margin: 0;
}

.main-header .logo a {
    color: var(--text-light);
}


.main-header .nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-header .nav-list li {
    margin-left: 25px;
}

.main-header .nav-list a {
    color: var(--text-light);
    font-weight: 300;
    padding: 5px 0;
    position: relative;
}

.main-header .nav-list a.active::after,
.main-header .nav-list a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--green-accent);
}

.main-header .hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2em;
    cursor: pointer;
}

.user-actions .btn {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* ----- HERO SECTION ----- */
.hero-section {
    background: linear-gradient(135deg, var(--purple-gradient-start), var(--purple-gradient-end));
    color: var(--text-light);
    text-align: center;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.hero-section h2 {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ----- LATEST DRAW SECTION ----- */
.latest-draw-section {
    background-color: var(--bg-white);
    padding: 50px 20px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.latest-draw-section h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--purple-dark);
}

.latest-draw-section .draw-info {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #555;
}

.latest-draw-section .draw-info span {
    font-weight: bold;
    color: var(--purple-dark);
}

.drawn-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

/*.number-ball {
    background-color: var(--purple-dark);
    color: var(--text-light);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
}*/
    .number-ball { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bola-sorteada); color: var(--text-light);}

.draw-actions {
    margin-top: 20px;
}

/* ----- BENEFITS SECTION ----- */
.benefits-section {
    padding: 60px 20px;
    background-color: var(--bg-light);
    text-align: center;
}

.benefits-section h2 {
    font-size: 2.5em;
    color: var(--purple-dark);
    margin-bottom: 15px;
}

.benefits-section .section-description {
    font-size: 1.1em;
    color: #666;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
}

.benefit-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 5px solid var(--purple-light);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.benefit-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--green-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 2.5em;
    color: var(--text-light);
}

.benefit-card .icon-wrapper img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.benefit-card h3 {
    font-size: 1.5em;
    color: var(--purple-dark);
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.95em;
    color: #555;
}

/* ----- FOOTER ----- */
.main-footer {
    background-color: var(--tema);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
    flex-shrink: 0;
    width: 100%;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-footer .social-media {
    margin-bottom: 15px;
}

.main-footer .social-media a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: opacity 0.3s;
}

.main-footer .social-media a:hover {
    opacity: 0.8;
}

.main-footer .copyright {
    margin-top: 10px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

/* ==============================================
   RESPONSIVIDADE
   ============================================== */

@media (max-width: 768px) {
    .mobile{
        display: flex;
        flex-direction: column;
    }
    /* Header */
    .main-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-header .main-nav {
        width: 100%;
        order: 0;
        margin-top: 15px;
    }

    .main-header .nav-list {
        flex-direction: column;
        width: 100%;
        display: none;
        text-align: center;
    }

    .main-header .nav-list.open {
        display: flex;
    }

    .main-header .nav-list li {
        margin: 10px 0;
    }

    .main-header .hamburger-menu {
        display: block;
        position: absolute;
        right: 20px;
        top: 10px;
    }

    .main-header .user-actions {
        order: 2;
        margin-left: auto;
    }

    /* Hero Section */
    .hero-section {
        padding: 60px 20px;
        min-height: 300px;
    }

    .hero-section h2 {
        font-size: 2.2em;
    }

    .hero-section p {
        font-size: 1em;
    }

    /* Latest Draw */
    .number-ball {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    .draw-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .draw-actions .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    /* Footer */
    .main-footer .footer-nav ul {
        flex-direction: column;
        gap: 5px;
    }

    .main-footer .footer-nav li {
        margin: 5px 0;
    }

    /* Benefits Section */
    .benefits-section {
        padding: 40px 15px;
    }

    .benefits-section h2 {
        font-size: 2em;
    }

    .benefits-section .section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        padding: 25px;
    }

    .benefit-card .icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 2em;
    }

    .benefit-card h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .drawn-numbers {
        gap: 5px;
    }

    .number-ball {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }

    .results-table td .drawn-numbers .number-ball {
        width: 30px;
        height: 30px;
        font-size: 0.8em;
    }

}