/*
Theme Name: Lottery Sambad Pro
Theme URI: https://lotterysombad.online
Author: LotterySombad Team
Author URI: https://lotterysombad.online
Description: Professional lottery result theme for LotterySombad - displaying 1 PM, 6 PM, and 8 PM results with modern design
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lottery-sambad-pro
Tags: one-column, two-columns, right-sidebar, custom-menu, theme-options, translation-ready, blog
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

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

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

/* Header */
.site-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-title a {
    color: white;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-title a span {
    color: #ffd700;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-navigation a {
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px;
}

.main-navigation a:hover {
    background: rgba(255,255,255,0.1);
    color: #ffd700;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1e3a5f;
        padding: 20px;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation a {
        display: block;
        padding: 12px;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.result-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.result-tab {
    background: rgba(255,255,255,0.2);
    padding: 15px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.result-tab:hover {
    background: white;
    color: #667eea;
}

.result-tab.active {
    background: #ffd700;
    color: #1e3a5f;
}

/* Main Content */
.site-content {
    display: flex;
    gap: 30px;
    padding: 40px 0;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.widget-area {
    width: 300px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .site-content {
        flex-direction: column;
    }
    
    .widget-area {
        width: 100%;
    }
}

/* Page Content */
.page-content {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.page-content h1 {
    font-size: 32px;
    color: #1e3a5f;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ffd700;
}

.page-content h2 {
    font-size: 24px;
    color: #2d5a87;
    margin: 30px 0 15px;
}

.page-content h3 {
    font-size: 20px;
    color: #34495e;
    margin: 25px 0 12px;
}

.page-content p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}

.page-content ul, .page-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.page-content li {
    margin-bottom: 10px;
    color: #555;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-content th {
    background: #1e3a5f;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.page-content td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.page-content tr:hover {
    background: #f8f9fa;
}

/* Sidebar Widgets */
.widget {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.widget h3 {
    font-size: 18px;
    color: #1e3a5f;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffd700;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #555;
    font-weight: 500;
}

.widget a:hover {
    color: #2563eb;
}

/* Footer */
.site-footer {
    background: #1e3a5f;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

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

.footer-widget h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    padding: 5px 0;
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
}

.footer-widget a:hover {
    color: #ffd700;
}

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

/* Lottery Result Cards */
.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.result-card h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 20px;
}

.result-card .draw-time {
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
}

/* Quick Links Grid */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.quick-link-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.quick-link-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.quick-link-card h4 {
    color: #1e3a5f;
    margin-bottom: 10px;
}

.quick-link-card p {
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .hero-section h1 {
        font-size: 28px;
    }
    
    .result-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .result-tab {
        width: 200px;
        text-align: center;
    }
    
    .page-content {
        padding: 25px;
    }
    
    .page-content h1 {
        font-size: 24px;
    }
}

/* Professional UI refinements */
:root {
    --navy: #102a43;
    --blue: #1264a3;
    --blue-dark: #0b4775;
    --gold: #f4b41a;
    --ink: #172b4d;
    --muted: #52606d;
    --surface: #ffffff;
    --line: #d9e2ec;
    --soft: #f0f4f8;
    --radius: 14px;
}

html { scroll-behavior: smooth; }
body { color: var(--ink); background: #f5f8fb; font-size: 16px; }
.container { width: min(1200px, calc(100% - 32px)); padding: 0; }
.site-header { background: var(--navy); border-bottom: 3px solid var(--gold); }
.header-inner { min-height: 72px; padding: 12px 0; }
.site-title a { font-size: clamp(21px, 3vw, 30px); letter-spacing: .2px; }
.site-description { color: #d9e2ec; font-size: 13px; margin-top: 2px; }
.main-navigation ul { gap: 2px; align-items: center; }
.main-navigation a { padding: 10px 11px; font-size: 13px; }
.main-navigation a:focus-visible, .menu-toggle:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.hero-section { background: linear-gradient(135deg, #102a43 0%, #1264a3 62%, #2680c2 100%); padding: clamp(38px, 7vw, 76px) 0 52px; }
.hero-section h1 { font-size: clamp(29px, 5vw, 50px); line-height: 1.12; max-width: 850px; margin: 0 auto 16px; }
.hero-section p { max-width: 720px; font-size: clamp(16px, 2vw, 19px); }
.result-tabs { flex-wrap: wrap; gap: 10px; }
.result-tab { min-width: 145px; padding: 12px 18px; border: 1px solid rgba(255,255,255,.3); }
.page-content { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); box-shadow: 0 8px 30px rgba(16,42,67,.07); }
.page-content h1 { color: var(--navy); font-size: clamp(26px, 4vw, 38px); line-height: 1.2; }
.page-content h2 { color: var(--blue-dark); line-height: 1.3; }
.page-content p, .page-content li { color: var(--muted); }
.page-content table { display: block; overflow-x: auto; white-space: nowrap; border: 1px solid var(--line); }
.page-content th { background: var(--navy); }
.page-content td { color: var(--ink); }
.quick-links-grid { gap: 14px; }
.quick-link-card { border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 22px 16px; border-radius: var(--radius); }
.quick-link-card:hover { transform: translateY(-3px); border-color: #9fb3c8; }
.quick-link-card strong, .quick-link-card small { display: block; }
.quick-link-card small { color: var(--muted); margin-top: 6px; }
.card-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 50%; background: #e8f1fa; color: var(--blue-dark); font-weight: 800; }
.site-footer { background: #0b1f33; margin-top: 56px; }
.footer-widget p { color: #c7d2de; }
.footer-bottom { color: #a9b8c7; }

@media (max-width: 900px) {
    .main-navigation ul { gap: 0; }
    .main-navigation a { padding: 12px 10px; }
}
@media (max-width: 768px) {
    .header-inner { position: relative; }
    .main-navigation { top: 100%; box-shadow: 0 12px 25px rgba(0,0,0,.2); }
    .main-navigation ul { gap: 3px; }
    .main-navigation a { font-size: 15px; padding: 12px 10px; }
    .site-content { padding: 24px 0; }
}
@media (max-width: 600px) {
    .container { width: min(100% - 24px, 1200px); }
    .hero-section { padding-top: 34px; }
    .result-tabs { display: grid; grid-template-columns: 1fr; max-width: 320px; margin: 24px auto 0; }
    .result-tab { width: 100%; }
    .page-content { padding: 20px 16px; border-radius: 10px; }
    .page-content h1 { font-size: 26px; }
    .page-content h2 { font-size: 22px; }
    .page-content table { margin-left: -4px; width: calc(100% + 8px); font-size: 14px; }
    .page-content th, .page-content td { padding: 10px 11px; }
    .quick-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .quick-link-card { padding: 17px 10px; font-size: 14px; }
    .quick-link-card small { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #2563eb;
    color: white;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #1d4ed8;
    color: white;
}

.btn-gold {
    background: #ffd700;
    color: #1e3a5f;
}

.btn-gold:hover {
    background: #e6c200;
    color: #1e3a5f;
}
