/* US Lottery Fetcher Styles */

.lottery-results {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    margin: 30px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 900px;
}

.lottery-featured-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.lottery-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.lottery-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
}

.lottery-header h3 {
    margin: 0 0 10px 0;
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lottery-date {
    display: block;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
}

/* Winning Numbers Section */
.lottery-numbers {
    background: #f5f5f5;
    padding: 40px 20px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: center;
}

.lottery-numbers::before {
    content: 'Winning Numbers';
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

/* Ball styling to match reference image */
.lottery-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
    margin: 0 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.lottery-ball:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* White balls - clean white style like reference */
.white-ball {
    background: #ffffff;
    color: #2c3e50;
    border: 3px solid #d1d5db;
}

/* Powerball - RED style like reference image */
.power-ball {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 3px solid #991b1b !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5) !important;
}

.power-ball:hover {
    background: #b91c1c !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.6) !important;
}

/* Game-specific white ball colors (optional customization) */
.lottery-powerball .white-ball {
    background: #ffffff;
    color: #1e40af;
    border-color: #93c5fd;
}

.lottery-lotto-america .white-ball {
    background: #ffffff;
    color: #c2410c;
    border-color: #fed7aa;
}

.lottery-lotto-america .power-ball {
    background: #059669 !important;
    border-color: #047857 !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.5) !important;
}

.lottery-2by2 .white-ball {
    background: #ffffff;
    color: #7c3aed;
    border-color: #ddd6fe;
}

.lottery-2by2 .power-ball {
    background: #f59e0b !important;
    border-color: #d97706 !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5) !important;
}

.lottery-pb-double-play .white-ball {
    background: #ffffff;
    color: #0891b2;
    border-color: #a5f3fc;
}

.lottery-jackpot {
    text-align: center;
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.lottery-jackpot strong {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.lottery-multiplier {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
}

.lottery-multiplier strong {
    margin-right: 8px;
}

.lottery-error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Prize Breakdown Table */
.lottery-prize-table {
    margin-top: 40px;
    width: 100%;
}

.lottery-prize-table h4 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lottery-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.lottery-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.lottery-table th {
    padding: 16px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lottery-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.lottery-table tbody tr:hover {
    background-color: #f8f9fa;
}

.lottery-table tbody tr:last-child {
    border-bottom: none;
}

.lottery-table td {
    padding: 14px 12px;
    text-align: center;
    font-size: 15px;
    color: #333;
}

.lottery-table .match-cell {
    font-weight: 700;
    color: #1a1a1a;
    text-align: left;
    padding-left: 20px;
}

.lottery-table .prize-cell {
    font-weight: 600;
    color: #059669;
}

/* Widget styles */
.widget .lottery-results {
    margin: 0;
    padding: 20px;
}

.widget .lottery-header h3 {
    font-size: 20px;
}

.widget .lottery-ball {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.widget .lottery-numbers {
    padding: 20px 10px;
}

.widget .lottery-featured-image {
    margin-bottom: 15px;
}

.widget .lottery-jackpot {
    font-size: 18px;
    padding: 15px;
}

/* Responsive design */
@media (max-width: 768px) {
    .lottery-results {
        padding: 20px;
    }
    
    .lottery-ball {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin: 0 5px;
    }
    
    .lottery-header h3 {
        font-size: 24px;
    }
    
    .lottery-jackpot {
        font-size: 22px;
        padding: 20px;
    }
    
    .lottery-prize-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .lottery-table {
        font-size: 13px;
    }
    
    .lottery-table th,
    .lottery-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .lottery-ball {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin: 0 4px;
    }
    
    .lottery-numbers {
        padding: 30px 15px;
    }
    
    .lottery-results {
        padding: 15px;
    }
    
    .lottery-header h3 {
        font-size: 20px;
    }
    
    .lottery-jackpot {
        font-size: 20px;
    }
    
    .lottery-table {
        font-size: 11px;
    }
    
    .lottery-table th,
    .lottery-table td {
        padding: 8px 4px;
    }
    
    .lottery-table .match-cell {
        padding-left: 8px;
    }
}