/*
Theme Name: Lotto Results Pro
Theme URI: 
Author: Your Name
Author URI: 
Description: Complete PCSO Lottery Results Website with STL, Winners, Calendar Filter
Version: 2.0
License: GPL v2 or later
Text Domain: lotto-pro
*/

:root {
    --primary-red: #9E1B1B;
    --primary-gold: #F4B942;
    --dark-red: #7a1515;
    --light-red: #fce4e4;
    --light-gray: #f5f5f7;
    --text-dark: #1e1e1e;
    --text-light: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 15px rgba(0,0,0,0.15);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
.site-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--text-light);
    padding: 25px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
}

.site-title a {
    color: var(--text-light);
    text-decoration: none;
}

.tagline {
    font-size: 0.9rem;
    margin-top: 8px;
    opacity: 0.95;
}

/* ========== MAIN NAVIGATION ========== */
.main-nav {
    background: var(--dark-red);
    padding: 12px 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-menu li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s;
}

.nav-menu li a:hover {
    background: var(--primary-gold);
    color: var(--dark-red);
}

.mobile-menu-toggle {
    display: none;
}

/* ========== NEWS BANNER ========== */
.news-banner {
    background: var(--light-red);
    border-left: 5px solid var(--primary-gold);
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: var(--radius);
    font-weight: 500;
}

/* ========== DATE FILTER ========== */
.date-filter {
    background: white;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.date-filter label {
    font-weight: 700;
    color: var(--primary-red);
    display: block;
    margin-bottom: 5px;
}

.date-filter input[type="date"] {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.date-filter button {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
}

.date-filter button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ========== SECTION TITLES ========== */
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-red);
    margin: 40px 0 25px 0;
    padding-bottom: 12px;
    border-bottom: 4px solid var(--primary-gold);
    display: inline-block;
}

/* ========== MAJOR GAME CARDS ========== */
.major-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.game-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.game-card-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    padding: 18px 20px;
    color: white;
}

.game-title {
    font-size: 1.4rem;
    font-weight: 800;
}

.game-card-body {
    padding: 20px;
}

.game-numbers {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--light-gray);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-family: monospace;
    letter-spacing: 2px;
}

.game-jackpot {
    color: var(--primary-gold);
    font-weight: 800;
    margin: 15px 0;
    text-align: center;
    background: var(--light-red);
    padding: 10px;
    border-radius: 8px;
}

/* ========== DIGIT GAMES TABLE ========== */
.digit-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.digit-table th {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: white;
    padding: 15px;
    text-align: center;
}

.digit-table td {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    font-size: 1.1rem;
}

.digit-table tr:hover td {
    background: var(--light-red);
}

/* ========== STL CITIES ========== */
.stl-cities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stl-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-gold);
}

.city-name {
    color: var(--primary-red);
    font-weight: 800;
    margin-bottom: 15px;
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-gold);
}

.stl-card table {
    width: 100%;
    border-collapse: collapse;
}

.stl-card th {
    background: var(--light-gray);
    padding: 10px;
}

.stl-card td {
    padding: 10px;
    text-align: center;
    font-weight: 600;
}

/* ========== WINNERS TABLE ========== */
.winners-table-container {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.winners-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background: white;
}

.winners-table th {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: white;
    padding: 15px;
}

.winners-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.winners-table tr:hover {
    background: var(--light-red);
}

/* ========== SIMPLE RESULTS ========== */
.simple-result {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-gold);
}

/* ========== BADGE ========== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-gold);
    color: var(--dark-red);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ========== FOOTER ========== */
.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ccc;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.disclaimer {
    color: #ff6b6b;
    margin-top: 15px;
    font-size: 0.8rem;
}

/* ========== LOADING & NO RESULTS ========== */
.loading, .no-results {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: var(--radius);
    color: var(--primary-red);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-title {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .major-games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-numbers {
        font-size: 1rem;
    }
    
    .digit-table td {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .stl-cities {
        grid-template-columns: 1fr;
    }
    
    .date-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-filter input,
    .date-filter button {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .nav-menu.active {
        display: flex;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card, .stl-card, .simple-result {
    animation: fadeInUp 0.5s ease-out;
}