/*
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);
    position: relative;
}

.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;
}

/* ========== SKIP LINK & FOCUS ========== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #9E1B1B;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 3px solid #F4B942;
    outline-offset: 2px;
}

/* ========== HORIZONTAL SLIDER NAVIGATION ========== */
.nav-slider-container {
    background: #7a1515;
    position: relative;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-slider-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.nav-slider-wrapper::-webkit-scrollbar {
    height: 3px;
}

.nav-slider-wrapper::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.nav-slider-wrapper::-webkit-scrollbar-thumb {
    background: #F4B942;
    border-radius: 3px;
}

.horizontal-nav {
    display: inline-block;
    min-width: 100%;
}

.nav-slider {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.nav-slider li {
    display: inline-block;
    flex-shrink: 0;
}

.nav-slider li a {
    display: inline-block;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-slider li a:hover {
    background: #9E1B1B;
    color: #F4B942;
}

.nav-slider li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #F4B942;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-slider li a:hover::after,
.nav-slider li.current-menu-item a::after {
    width: 80%;
}

.nav-slider li.current-menu-item a {
    color: #F4B942;
}

/* Scroll Buttons */
.nav-scroll-btn {
    background: #9E1B1B;
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.nav-scroll-btn:hover {
    background: #F4B942;
    color: #7a1515;
    opacity: 1;
}

.nav-scroll-btn.left {
    border-radius: 0 8px 8px 0;
}

.nav-scroll-btn.right {
    border-radius: 8px 0 0 8px;
}

@keyframes pulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.5; }
}

.nav-scroll-btn {
    animation: pulse 2s infinite;
}

.nav-scroll-btn:hover {
    animation: none;
}

/* Mobile Menu Toggle - HIDDEN (no hamburger button) */
.mobile-menu-toggle {
    display: none !important;
}

/* ========== RESPONSIVE NAVIGATION ========== */

/* Desktop view */
@media (min-width: 1024px) {
    .nav-slider-wrapper {
        overflow-x: visible;
    }
    
    .nav-slider {
        justify-content: center;
        white-space: normal;
        flex-wrap: wrap;
    }
    
    .nav-scroll-btn {
        display: none;
    }
}

/* Tablet view */
@media (min-width: 769px) and (max-width: 1023px) {
    .nav-scroll-btn {
        display: none;
    }
    
    .nav-slider-wrapper {
        overflow-x: auto;
    }
    
    .nav-slider {
        white-space: nowrap;
    }
}

/* Mobile view - Horizontal slider with arrows */
@media (max-width: 768px) {
    .nav-slider-wrapper {
        overflow-x: auto;
    }
    
    .nav-slider {
        white-space: nowrap;
    }
    
    .nav-slider li a {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .nav-scroll-btn {
        display: flex;
        font-size: 24px;
        padding: 6px 10px;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 0.7rem;
    }
}

/* ========== 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);
}

/* ========== 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;
}

/* ========== MOBILE RESPONSIVE (General) ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    .site-header {
        padding: 15px 0;
    }
    
    .date-filter {
        padding: 15px;
        margin: 15px 0;
        flex-direction: column;
        gap: 12px;
    }
    
    .date-filter label {
        font-size: 0.85rem;
    }
    
    .date-filter input[type="date"] {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .date-filter button {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin: 25px 0 15px 0;
    }
    
    .major-games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .game-card-header {
        padding: 12px 15px;
    }
    
    .game-title {
        font-size: 1.1rem;
    }
    
    .game-card-body {
        padding: 15px;
    }
    
    .game-numbers {
        font-size: 1rem;
        padding: 10px;
        letter-spacing: 1px;
        word-break: break-all;
    }
    
    .game-jackpot {
        font-size: 0.85rem;
        padding: 8px;
        margin: 10px 0;
    }
    
    .digit-table {
        font-size: 0.8rem;
        margin-bottom: 20px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .digit-table th {
        padding: 8px 4px;
        font-size: 0.7rem;
    }
    
    .digit-table td {
        padding: 10px 4px;
        font-size: 0.9rem;
    }
    
    .stl-cities {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stl-card {
        padding: 15px;
    }
    
    .city-name {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .stl-card th {
        padding: 6px;
        font-size: 0.7rem;
    }
    
    .stl-card td {
        padding: 8px 4px;
        font-size: 0.85rem;
    }
    
    .simple-result {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .winners-table-container {
        margin: 15px 0;
    }
    
    .winners-table {
        font-size: 0.7rem;
        min-width: 550px;
    }
    
    .winners-table th,
    .winners-table td {
        padding: 8px 4px;
    }
    
    .no-results, .loading {
        padding: 40px 20px;
        font-size: 0.9rem;
    }
    
    .site-footer {
        padding: 30px 15px 20px;
        margin-top: 40px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .pagination {
        gap: 5px;
        margin: 30px 0;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    .news-card {
        padding: 15px;
    }
    
    .news-card-title {
        font-size: 1rem;
    }
    
    button,
    .news-view-more,
    .back-button,
    .pagination a,
    .dmca-link,
    .news-card-readmore {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .game-numbers,
    .news-item,
    .simple-result {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* ========== EXTRA SMALL DEVICES ========== */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .site-title {
        font-size: 1rem;
    }
    
    .tagline {
        font-size: 0.65rem;
    }
    
    .game-numbers {
        font-size: 0.85rem;
        word-break: break-all;
    }
    
    .digit-table th,
    .digit-table td {
        padding: 6px 2px;
        font-size: 0.75rem;
    }
    
    .winners-table {
        min-width: 480px;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
}

/* ========== TABLETS (portrait) ========== */
@media (min-width: 769px) and (max-width: 1024px) {
    .major-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .stl-cities {
        grid-template-columns: repeat(2, 1fr);
    }
}