/*
Theme Name: UK49 Lottery Results
Theme URI: https://uk49result.com
Author: UK49 Lottery Team
Author URI: https://uk49result.com
Description: A professional WordPress theme for UK49 lottery results website with custom post types for lunchtime and teatime predictions. Features responsive design, modern UI, and easy content management.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uk49-lottery
Tags: lottery, betting, responsive, clean, modern
*/

/* UK49 Lottery Results - Main Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5f7a;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: rgba(0,0,0,0.1);
    padding: 10px 0;
}

.header-bottom {
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--warning-color);
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    padding: 10px 20px;
    color: white;
    border-radius: 5px;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.2);
    color: var(--warning-color);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    position: relative;
    width: 30px;
    height: 25px;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 11px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 22px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 11px;
    transform: rotate(135deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-toggle.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-135deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* Main Content */
main {
    flex: 1;
    padding: 40px 0;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-light);
    font-size: 16px;
}

/* Result Cards */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.result-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.result-card.main-result {
    border: 3px solid var(--warning-color);
    transform: scale(1.02);
    max-width: 800px;
    margin: 0 auto;
}

.result-card.main-result:hover {
    transform: scale(1.03);
}

/* Feature Buttons */
.feature-btn {
    display: inline-block;
    padding: 20px 40px;
    border-radius: 15px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 200px;
}

.feature-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.feature-btn.prediction-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-btn.generator-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.feature-btn.stats-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.feature-btn.history-btn {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.result-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.result-date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

/* Number Balls */
.balls-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s ease;
}

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

.ball.bonus {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 10px rgba(245, 87, 108, 0.4);
}

.bonus-label {
    text-align: center;
    color: var(--accent-color);
    font-weight: bold;
    margin-top: 10px;
    font-size: 14px;
}

/* Tables */
.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.results-table thead {
    background: var(--primary-color);
    color: white;
}

.results-table th,
.results-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.results-table tbody tr:hover {
    background: var(--light-bg);
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    padding: 10px 20px;
    background: white;
    color: var(--primary-color);
    border-radius: 5px;
    box-shadow: var(--shadow);
    font-weight: 500;
}

.pagination a:hover,
.pagination span.current {
    background: var(--primary-color);
    color: white;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card h3 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* Hot/Cold Numbers */
.hot-cold-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.hot-cold-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.hot-cold-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid;
}

.hot-cold-section.hot h3 {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.hot-cold-section.cold h3 {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.number-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.number-item {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 18px;
}

.hot .number-item {
    background: #ffebee;
    color: var(--accent-color);
}

.cold .number-item {
    background: #e3f2fd;
    color: var(--primary-color);
}

/* AI Prediction Section */
.ai-prediction-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 40px;
}

.ai-prediction-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.generate-btn {
    background: white;
    color: var(--primary-color);
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Blog Posts */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.blog-date {
    color: var(--text-light);
    font-size: 12px;
}

.read-more {
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.read-more:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--warning-color);
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a:hover {
    color: var(--warning-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 24px;
    }
    
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        padding: 20px;
        z-index: 9999;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .ball {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin: 5px;
    }
    
    .balls-container {
        gap: 8px;
        padding: 10px;
    }
    
    .prediction-ball-large {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .generated-ball {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ball {
        width: 38px;
        height: 38px;
        font-size: 16px;
        margin: 4px;
    }
    
    .balls-container {
        gap: 6px;
        padding: 8px;
    }
    
    .prediction-ball-large {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .generated-ball {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-success {
    background: var(--success-color);
}

.btn-danger {
    background: var(--accent-color);
}

.btn-warning {
    background: var(--warning-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: var(--success-color);
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: var(--accent-color);
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: var(--warning-color);
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: var(--primary-color);
    color: #0c5460;
}

/* Draw Tabs */
.draw-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.draw-tab {
    padding: 15px 30px;
    background: white;
    color: var(--text-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.draw-tab.active,
.draw-tab:hover {
    background: var(--primary-color);
    color: white;
}

/* Archive Navigation */
.archive-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.archive-nav a {
    padding: 10px 20px;
    background: white;
    color: var(--primary-color);
    border-radius: 5px;
    box-shadow: var(--shadow);
    font-size: 14px;
}

.archive-nav a:hover,
.archive-nav a.active {
    background: var(--primary-color);
    color: white;
}

/* WordPress Specific Styles */
.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.entry-content {
    margin-top: 20px;
}

.entry-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.site-title a {
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

/* Custom Post Type Styles */
.prediction-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

.prediction-meta {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.prediction-meta strong {
    color: var(--primary-color);
}

/* Comments */
.comments-area {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: var(--shadow);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.comment-meta {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 10px;
}