/*
Theme Name: Xổ Số Theme
Theme URI: https://ericehst.com
Author: ERICEHST
Author URI: https://ericehst.com
Description: Theme chuyên nghiệp cho website xổ số kiến thiết Việt Nam - Giao diện giống các trang top đầu Google
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: xoso-theme
Tags: lottery, xổ-số, responsive, custom-menu

This theme, like WordPress, is licensed under the GPL.
*/

/* ===================================
   BIẾN MÀU SẮC CHỦ ĐẠO
   =================================== */
:root {
    --color-primary: #c41e3a;        /* Đỏ may mắn */
    --color-secondary: #f4b41a;      /* Vàng kim */
    --color-accent: #1a73e8;         /* Xanh dương */
    --color-success: #28a745;        /* Xanh lá */
    --color-dark: #1a1a2e;           /* Đen đậm */
    --color-light: #f8f9fa;          /* Trắng xám */
    --color-white: #ffffff;
    --color-gray: #6c757d;
    --color-border: #dee2e6;
    
    --gradient-primary: linear-gradient(135deg, #c41e3a 0%, #ff4757 100%);
    --gradient-gold: linear-gradient(135deg, #f4b41a 0%, #ffd700 100%);
    
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-dark);
    background: #f0f2f5;
}

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

a:hover {
    color: var(--color-primary);
}

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

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

/* ===================================
   TOP BAR - NGÀY THÁNG
   =================================== */
.top-bar {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-date {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-date i {
    color: var(--color-secondary);
}

.top-bar-login {
    display: flex;
    gap: 15px;
}

.top-bar-login a {
    color: var(--color-white);
}

.top-bar-login a:hover {
    color: var(--color-secondary);
}

/* ===================================
   HEADER & LOGO
   =================================== */
.site-header {
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.header-ads {
    flex: 1;
    margin: 0 40px;
    text-align: center;
}

.header-ads img {
    max-height: 60px;
}

/* ===================================
   MAIN NAVIGATION
   =================================== */
.main-navigation {
    background: var(--gradient-primary);
}

.main-navigation .container {
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--color-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    background: rgba(255, 255, 255, 0.2);
}

/* Dropdown Menu */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 200px;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.nav-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    color: var(--color-dark);
    padding: 10px 15px;
    border-bottom: 1px solid var(--color-border);
}

.nav-menu .sub-menu a:hover {
    background: var(--color-light);
    color: var(--color-primary);
}

/* ===================================
   LIVE BANNER
   =================================== */
.live-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #c41e3a 100%);
    color: var(--color-white);
    padding: 15px 0;
    text-align: center;
}

.live-banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 25px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #ff4757;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.live-text {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.view-now-btn {
    background: var(--gradient-gold);
    color: var(--color-dark);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
}

.view-now-btn:hover {
    transform: scale(1.05);
    color: var(--color-dark);
}

/* ===================================
   QUICK LINKS
   =================================== */
.quick-links {
    background: var(--color-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}

.quick-links-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.quick-links-list a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-light);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-dark);
}

.quick-links-list a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ===================================
   MAIN CONTENT AREA
   =================================== */
.site-content {
    padding: 30px 0;
}

/* ===================================
   LOTTERY RESULT CARDS
   =================================== */
.lottery-section {
    margin-bottom: 30px;
}

.section-title {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 12px 20px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title .region-icon {
    font-size: 20px;
}

.result-card {
    background: var(--color-white);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.result-header {
    background: var(--color-light);
    padding: 12px 20px;
    border-bottom: 2px solid var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-date {
    font-weight: bold;
    color: var(--color-primary);
}

.result-province {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.province-tag {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* ===================================
   LOTTERY TABLE STYLES
   =================================== */
.lottery-table {
    width: 100%;
    border-collapse: collapse;
}

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

.lottery-table th {
    background: var(--color-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--color-gray);
}

.lottery-table tr:hover {
    background: #fff5f5;
}

/* Giải Đặc Biệt */
.lottery-table .prize-dac-biet {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
}

.lottery-table .prize-dac-biet .prize-name {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 14px;
}

.lottery-table .prize-dac-biet .prize-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-primary);
    letter-spacing: 3px;
}

/* Các giải khác */
.prize-name {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 13px;
}

.prize-number {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-dark);
}

/* Loto Table */
.loto-table {
    margin-top: 15px;
}

.loto-table th {
    background: var(--color-primary);
    color: var(--color-white);
}

.loto-number {
    display: inline-block;
    background: var(--color-light);
    padding: 5px 10px;
    border-radius: 5px;
    margin: 3px;
    font-weight: bold;
    font-size: 13px;
}

.loto-number.hot {
    background: var(--color-secondary);
    color: var(--color-dark);
}

.loto-number.cold {
    background: var(--color-gray);
    color: var(--color-white);
}

/* ===================================
   VIETLOTT SECTION
   =================================== */
.vietlott-section {
    margin-bottom: 30px;
}

.vietlott-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.vietlott-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.vietlott-header {
    padding: 15px 20px;
    color: var(--color-white);
    font-weight: bold;
    text-transform: uppercase;
}

.vietlott-header.mega {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
}

.vietlott-header.power {
    background: linear-gradient(135deg, #c41e3a 0%, #ff4757 100%);
}

.vietlott-header.keno {
    background: linear-gradient(135deg, #f4b41a 0%, #ffd700 100%);
    color: var(--color-dark);
}

.vietlott-header.max3d {
    background: linear-gradient(135deg, #28a745 0%, #5dd86d 100%);
}

.vietlott-body {
    padding: 20px;
}

.jackpot-amount {
    text-align: center;
    margin-bottom: 15px;
}

.jackpot-label {
    font-size: 12px;
    color: var(--color-gray);
    text-transform: uppercase;
}

.jackpot-value {
    font-size: 26px;
    font-weight: bold;
    color: var(--color-primary);
    font-family: 'Courier New', monospace;
}

.winning-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.winning-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* ===================================
   STATISTICS SECTION
   =================================== */
.statistics-section {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    padding: 20px;
}

.stat-card-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.stat-table {
    width: 100%;
    border-collapse: collapse;
}

.stat-table th,
.stat-table td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
}

.stat-table th {
    background: var(--color-light);
    color: var(--color-gray);
    font-weight: 600;
}

.stat-number {
    font-weight: bold;
    color: var(--color-dark);
}

.stat-highlight {
    color: var(--color-primary);
}

/* ===================================
   TOOLS SECTION
   =================================== */
.tools-section {
    margin-bottom: 30px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.tool-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.tool-card.mega .tool-icon {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
}

.tool-card.keno .tool-icon {
    background: linear-gradient(135deg, #f4b41a 0%, #ffd700 100%);
}

.tool-card.success .tool-icon {
    background: linear-gradient(135deg, #28a745 0%, #5dd86d 100%);
}

.tool-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.tool-description {
    font-size: 13px;
    color: var(--color-gray);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 50px 0 20px;
}

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

.footer-column h3 {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

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

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

.footer-column a {
    color: #ccc;
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--color-secondary);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #ccc;
    font-size: 14px;
}

.footer-contact i {
    color: var(--color-secondary);
}

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

.footer-bottom a {
    color: var(--color-secondary);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 992px) {
    .header-main .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-ads {
        margin: 0;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .lottery-table .prize-dac-biet .prize-number {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .lottery-table {
        font-size: 12px;
    }
    
    .lottery-table th,
    .lottery-table td {
        padding: 8px 5px;
    }
    
    .vietlott-grid,
    .stats-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-logo {
        font-size: 22px;
    }
    
    .prize-number {
        font-size: 14px;
    }
    
    .jackpot-value {
        font-size: 20px;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-success { color: var(--color-success); }

.bg-primary { background-color: var(--color-primary); }
.bg-light { background-color: var(--color-light); }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.hidden { display: none; }
.visible { display: block; }
