/*
Theme Name: Lottery Sambad Theme
Theme URI: https://yourwebsite.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: Custom lottery results theme with 3 daily draws (1 PM, 6 PM, 8 PM)
Version: 1.0
License: GPL v2 or later
Text Domain: lottery-theme
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f0f0;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
}

.site-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.site-description {
    opacity: 0.9;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Lottery Cards */
.lottery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.lottery-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.lottery-card:hover {
    transform: translateY(-5px);
}

.lottery-card h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.lottery-time {
    font-size: 1.2rem;
    font-weight: bold;
    color: #764ba2;
    margin-bottom: 15px;
}

.lottery-preview {
    margin: 15px 0;
    text-align: center;
}

.lottery-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.download-btn {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #45a049;
    color: white;
}

/* Old Result Section */
.old-result-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.date-picker {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.date-picker input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.date-picker button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.date-picker button:hover {
    background: #764ba2;
}

.loading {
    text-align: center;
    padding: 20px;
    display: none;
}

.loading.active {
    display: block;
}

.results-container {
    display: none;
}

.results-container.active {
    display: block;
}

.old-result-item {
    background: #f9f9f9;
    padding: 15px;
    margin: 15px 0;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

/* Bumpers Section */
.bumpers-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bumpers-title {
    color: #667eea;
    margin-bottom: 20px;
}

.bumper-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.bumper-image {
    flex: 0 0 150px;
}

.bumper-image img {
    width: 100%;
    border-radius: 10px;
}

.bumper-info {
    flex: 1;
}

.bumper-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.bumper-time {
    color: #764ba2;
    font-weight: bold;
    margin: 10px 0;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .lottery-grid {
        grid-template-columns: 1fr;
    }
    
    .bumper-item {
        flex-direction: column;
        text-align: center;
    }
    
    .date-picker {
        flex-direction: column;
    }
    
    .container {
        padding: 15px;
    }
}

/* Admin Meta Box Styles */
.lottery-meta-box {
    padding: 15px;
}

.lottery-field {
    margin-bottom: 20px;
}

.lottery-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.lottery-field input[type="text"],
.lottery-field input[type="time"],
.lottery-field input[type="url"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.lottery-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.image-preview {
    max-width: 200px;
    margin-top: 10px;
}

.image-preview img {
    max-width: 100%;
    height: auto;
}