/* Modern Lottery Style - Verde e Dourado */
:root {
    --primary-color: #1B4B26;
    --secondary-color: #092411;
    --success-color: #CBA54C;
    --warning-color: #CBA54C;
    --danger-color: #ef4444;
    --dark-bg: #092411;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #092411;
    --text-light: #4C4016;
    --border-radius: 12px;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    background: #f1f5f9;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

/* Banner Image */
.banner-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

@media (max-width: 768px) {
    .banner-image {
        margin-bottom: 15px;
    }
}

/* Header Banner */
.modern-banner {
    background: linear-gradient(135deg, #092411 0%, #1B4B26 100%);
    color: white;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--primary-color);
}

.modern-banner h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .modern-banner h1 {
        font-size: 1.5rem;
    }
    
    .modern-banner {
        padding: 20px 15px;
    }
}

/* Prize Cards Grid */
.prize-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .prize-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.prize-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid transparent;
}

.prize-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.prize-card.principal {
    border-left-color: #f59e0b;
}

.prize-card.diary {
    border-left-color: #1B4B26;
}

.prize-card.min {
    border-left-color: #CBA54C;
}

.prize-card.aproximated {
    border-left-color: #9B7224;
}

.prize-card .icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.prize-card.principal .icon {
    background: #EEDB91;
}

.prize-card.diary .icon {
    background: #d4e8d4;
}

.prize-card.min .icon {
    background: #f5ead4;
}

.prize-card.aproximated .icon {
    background: #f5ead4;
}

.prize-card .content {
    flex: 1;
}

.prize-card .label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.prize-card .value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .prize-card .icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
    
    .prize-card .value {
        font-size: 1.1rem;
    }
    
    .prize-card {
        padding: 15px;
    }
}

/* Alert Cards */
.modern-alert {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.modern-alert.info {
    background: white;
    color: var(--text-dark);
    border-left: 4px solid var(--primary-color);
    font-size: 0.95rem;
}

.modern-alert.rules {
    background: #fffbeb;
    border-left-color: var(--warning-color);
    font-size: 0.95rem;
    max-height: 200px;
    overflow-y: auto;
}

/* Game Selector */
.game-selector {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.game-selector select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.game-selector select:focus {
    outline: none;
    border-color: #1B4B26;
    box-shadow: 0 0 0 3px rgba(27, 75, 38, 0.1);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.result-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 18px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #e2e8f0;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #1B4B26;
}

.result-card .date {
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #092411 0%, #1B4B26 100%);
    margin: -18px -18px 15px -18px;
    padding: 12px 18px;
    font-size: 0.95rem;
    border-radius: 10px 10px 0 0;
}

.result-card .prize-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.95rem;
}

.result-card .prize-label {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1rem;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
}

.result-card .prize-number {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.result-card .prize-dezena {
    color: white;
    background: #CBA54C;
    font-weight: 800;
    font-size: 1rem;
    padding: 4px 10px;
    border-radius: 6px;
    margin-left: 8px;
}

/* Bets Table */
.bets-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.bets-card-header {
    background: linear-gradient(135deg, #092411 0%, #1B4B26 100%);
    color: white;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 4px solid var(--primary-color);
}

.bets-card-header .badge {
    margin-right: 10px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table thead {
    background: #f8fafc;
}

.modern-table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 2px solid #e2e8f0;
}

.modern-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.modern-table tbody tr {
    transition: background 0.2s;
}

.modern-table tbody tr:nth-child(odd) {
    background: #f8fafc;
}

.modern-table tbody tr:nth-child(even) {
    background: #ffffff;
}

.modern-table tbody tr:hover {
    background: #f1f5f9;
}

.modern-table a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.modern-table a:hover {
    color: var(--secondary-color);
}

/* Numbers Display */
.number-badge {
    display: inline-block;
    padding: 6px 10px;
    margin: 3px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    background: #e2e8f0;
    color: var(--text-dark);
}

.number-badge.hit {
    background: #CBA54C;
    color: white;
    box-shadow: 0 2px 4px rgba(203, 165, 76, 0.4);
}

/* Points Badge */
.points-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    background: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-container {
        padding: 10px;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .modern-table {
        font-size: 0.85rem;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 10px 8px;
    }
    
    .number-badge {
        padding: 4px 8px;
        font-size: 0.8rem;
        margin: 2px;
    }
}

/* Scrollbar */
.modern-alert.rules::-webkit-scrollbar {
    width: 8px;
}

.modern-alert.rules::-webkit-scrollbar-track {
    background: #fffbeb;
    border-radius: 10px;
}

.modern-alert.rules::-webkit-scrollbar-thumb {
    background: var(--warning-color);
    border-radius: 10px;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Ranking e Dezenas Grid */
.ranking-dezenas-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ranking-dezenas-grid .modern-table td,
.ranking-dezenas-grid .modern-table th {
    padding: 8px 10px;
    font-size: 0.9rem;
}

.ranking-dezenas-grid .bets-card-header {
    padding: 15px 20px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .ranking-dezenas-grid {
        grid-template-columns: 1fr;
    }
}

/* Dezenas Grid */
.dezenas-grid {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 6px;
    padding: 15px;
}

@media (max-width: 768px) {
    .dezenas-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 4px;
        padding: 10px;
    }
}

.dezena-badge {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    background: #e2e8f0;
    color: #64748b;
    border: 2px solid #cbd5e1;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .dezena-badge {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}

.dezena-badge.drawn {
    background: #CBA54C;
    color: white;
    border-color: #9B7224;
    box-shadow: 0 2px 8px rgba(203, 165, 76, 0.5);
}
