/* Lottery Data Fetcher Styles */

/* Lottery Games Grid */
.lottery-games {
    margin: 20px 0;
}

.lottery-games h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.lottery-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.lottery-game-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lottery-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
}

.lottery-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.game-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    flex: 1;
}

.state-badge {
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-id {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 15px;
}

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

.draw-date {
    color: #495057;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.draw-numbers {
    margin-top: 10px;
}

.next-draw {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.next-draw-label {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

.next-draw-date {
    color: #0073aa;
    font-weight: 600;
}

.jackpot-info {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.jackpot-amount {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.jackpot-date {
    font-size: 0.8em;
    opacity: 0.9;
}

/* Lottery Game Detail */
.lottery-game-detail {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #e1e5e9;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.lottery-game-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0073aa, #00a0d2, #ff6b35);
}

.game-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.game-detail-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
    flex: 1;
}

.game-detail-id {
    color: #6c757d;
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 25px;
}

.game-detail-info {
    display: grid;
    gap: 20px;
}

.detail-draw-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #0073aa;
}

.detail-draw-date {
    color: #495057;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-weight: 500;
}

.detail-draw-numbers {
    margin-top: 15px;
}

.detail-next-draw {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e3f2fd;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #2196f3;
}

.detail-next-draw-label {
    color: #1976d2;
    font-size: 0.9em;
    font-weight: 600;
}

.detail-next-draw-date {
    color: #1565c0;
    font-weight: 700;
    font-size: 1.1em;
}

.detail-jackpot-info {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.detail-jackpot-amount {
    font-size: 2em;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.detail-jackpot-date {
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 500;
}

.detail-update-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9em;
}

.update-label {
    color: #666;
    font-weight: 500;
}

.update-time {
    color: #333;
    font-weight: 600;
}

/* Lottery States */
.lottery-states {
    margin: 20px 0;
}

.lottery-states h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.lottery-states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.lottery-state-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lottery-state-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.lottery-state-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.state-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.state-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    flex: 1;
}

.state-id-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.state-info {
    display: grid;
    gap: 12px;
}

.state-country {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
}

.state-game-count {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e8;
    padding: 8px 12px;
    border-radius: 8px;
}

.game-count-number {
    background: #28a745;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: 700;
}

.game-count-label {
    color: #28a745;
    font-size: 0.8em;
    font-weight: 600;
}

/* Lottery Balls */
.lottery-balls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.lottery-ball {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.lottery-ball:hover {
    transform: scale(1.1);
}

.ball-red { background: linear-gradient(135deg, #dc3545, #c82333); }
.ball-blue { background: linear-gradient(135deg, #007bff, #0056b3); }
.ball-green { background: linear-gradient(135deg, #28a745, #1e7e34); }
.ball-yellow { background: linear-gradient(135deg, #ffc107, #e0a800); }
.ball-purple { background: linear-gradient(135deg, #6f42c1, #5a2d91); }
.ball-orange { background: linear-gradient(135deg, #fd7e14, #e55a00); }
.ball-pink { background: linear-gradient(135deg, #e83e8c, #c71f6a); }
.ball-teal { background: linear-gradient(135deg, #20c997, #17a2b8); }
.ball-brown { background: linear-gradient(135deg, #795548, #5d4037); }
.ball-gray { background: linear-gradient(135deg, #6c757d, #495057); }

.lottery-numbers-text {
    color: #495057;
    font-weight: 500;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lottery-games-grid,
    .lottery-states-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lottery-game-card,
    .lottery-state-card {
        padding: 20px;
    }
    
    .lottery-game-detail {
        padding: 25px;
    }
    
    .game-header,
    .game-detail-header,
    .state-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .lottery-balls {
        gap: 6px;
    }
    
    .lottery-ball {
        width: 32px;
        height: 32px;
        font-size: 0.8em;
    }
    
    .jackpot-amount,
    .detail-jackpot-amount {
        font-size: 1.2em;
    }
    
    .detail-jackpot-amount {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    .lottery-games h3,
    .lottery-states h3,
    .lottery-game-detail h3 {
        font-size: 1.3em;
    }
    
    .game-header h4,
    .game-detail-header h3,
    .state-header h4 {
        font-size: 1.1em;
    }
    
    .lottery-game-card,
    .lottery-state-card,
    .lottery-game-detail {
        padding: 15px;
    }
    
    .lottery-balls {
        gap: 4px;
    }
    
    .lottery-ball {
        width: 28px;
        height: 28px;
        font-size: 0.7em;
    }
    
    .jackpot-info,
    .detail-jackpot-info {
        padding: 12px;
    }
    
    .jackpot-amount {
        font-size: 1.1em;
    }
    
    .detail-jackpot-amount {
        font-size: 1.4em;
    }
}

/* Loading States */
.lottery-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.lottery-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

/* Error States */
.lottery-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

/* Success States */
.lottery-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

/* Enhanced Features Styles */

/* Smart Picks Container */
.smart-picks-container {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #e1e5e9;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.smart-picks-preview {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border: 2px dashed #0073aa;
}

.smart-picks-preview .lottery-balls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.smart-picks-preview p {
    margin: 10px 0;
    color: #495057;
    font-size: 0.95em;
}

.smart-picks-preview p:first-child {
    color: #0073aa;
    font-weight: 600;
    font-size: 1.1em;
}

.smart-picks-container h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 700;
    text-align: center;
}

.smart-picks-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.smart-picks-info p {
    margin: 8px 0;
    color: #495057;
    font-size: 0.9em;
}

.number-category {
    margin-bottom: 25px;
}

.number-category h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.smart-pick-combinations {
    margin-top: 30px;
}

.combinations-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.combination-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
    text-align: center;
}

.combination-item .lottery-balls {
    justify-content: center;
    gap: 8px;
}

/* Frequency Chart Container */
.frequency-chart-container {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #e1e5e9;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.frequency-chart-container h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 700;
    text-align: center;
}

.frequency-table {
    overflow-x: auto;
    margin-top: 20px;
}

.frequency-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.frequency-table th {
    background: linear-gradient(135deg, #0073aa, #00a0d2);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9em;
}

.frequency-table th:first-child {
    width: 80px;
}

.frequency-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #e1e5e9;
}

.frequency-table tr.high-frequency {
    background: #d4edda;
    color: #000;
    font-weight: bold;
}

.frequency-table tr.medium-frequency {
    background: #fff3cd;
    color: #000;
    font-weight: bold;
}

.frequency-table tr.low-frequency {
    background: #f8d7da;
    color: #000;
    font-weight: bold;
}

.frequency-table tr.no-frequency {
    background: #f8f9fa;
    color: #6c757d;
}

/* Past Results Container */
.past-results-container {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #e1e5e9;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.past-results-container h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 700;
    text-align: center;
}

.results-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.results-info p {
    margin: 8px 0;
    color: #495057;
    font-size: 0.9em;
}

.draws-list {
    display: grid;
    gap: 15px;
}

.draw-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.draw-date {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 10px;
    font-weight: 500;
}

.draw-results {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Powerball specific styling */
.ball-powerball {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    font-weight: 800;
    font-size: 1.1em;
}

/* Modal Styles */
.lottery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

body.modal-open {
    overflow: hidden;
}

.modal-content {
    background: linear-gradient(135deg, #232526, #2D3436);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #EAEAEA;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #00BFFF;
}

.modal-header {
    margin-bottom: 25px;
    text-align: center;
}

.modal-header h2 {
    color: #EAEAEA;
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
}

/* Form Controls for Frequency Charts */
.frequency-form {
    background: #4A5568;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.frequency-form h4 {
    color: #EAEAEA;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    color: #A0AEC0;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #6c757d;
    border-radius: 5px;
    background: #2D3436;
    color: #EAEAEA;
    font-size: 0.9em;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00BFFF;
    box-shadow: 0 0 0 2px rgba(0, 191, 255, 0.2);
}

/* Responsive Design for Enhanced Features */
@media (max-width: 768px) {
    .combinations-list {
        grid-template-columns: 1fr;
    }
    
    .frequency-table {
        font-size: 0.8em;
    }
    
    .frequency-table th,
    .frequency-table td {
        padding: 8px 6px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .smart-picks-container,
    .frequency-chart-container,
    .past-results-container {
        padding: 15px;
    }
    
    .smart-picks-container h3,
    .frequency-chart-container h3,
    .past-results-container h3 {
        font-size: 1.4em;
    }
    
    .combination-item {
        padding: 10px;
    }
    
    .combination-item .lottery-balls {
        gap: 4px;
    }
    
    .lottery-ball {
        width: 28px;
        height: 28px;
        font-size: 0.7em;
    }
} 