/*
Theme Name: May88 Theme
Theme URI: https://may88.com
Author: May88 Team
Author URI: https://may88.com
Description: May88 - Nhà cái live casino, thể thao uy tín 2025
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: may88
Domain Path: /languages
*/

/* ============================================
   TABLE OF CONTENTS
   ============================================
   1. CSS Variables
   2. Reset & Base
   3. Layout
   4. Header
   5. Navigation
   6. Hero Section
   7. Content Sections
   8. Cards
   9. Buttons
   10. Footer
   11. Responsive
   ============================================ */

/* ============================================
   1. CSS Variables
   ============================================ */
:root {
    --color-primary: #1a1a2e;
    --color-secondary: #16213e;
    --color-accent: #e94560;
    --color-gold: #ffd700;
    --color-gold-dark: #b8860b;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-bg-dark: #0f0f1a;
    --color-bg-card: #1e1e3f;
    --color-border: #2d2d5a;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(233, 69, 96, 0.3);
    --radius: 12px;
    --radius-sm: 6px;
    --container-max: 1200px;
}

/* ============================================
   2. Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    list-style: none;
}

/* ============================================
   3. Layout
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-gold);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ============================================
   4. Header
   ============================================ */
.site-header {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.site-title a:hover {
    color: var(--color-gold);
}

/* ============================================
   5. Navigation
   ============================================ */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--color-gold);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: 20px;
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}

.nav-mobile.active {
    display: block;
}

.nav-mobile .nav-menu {
    flex-direction: column;
    gap: 15px;
}

.nav-mobile .nav-actions {
    flex-direction: column;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

/* ============================================
   6. Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-bg-dark) 100%);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-gold) 0%, #fff 50%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 25px 15px;
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(233, 69, 96, 0.1);
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-gold);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ============================================
   7. Content Sections
   ============================================ */
.section-intro {
    background: var(--color-bg-dark);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.intro-text strong {
    color: var(--color-gold);
}

/* Games Section */
.games-section {
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-primary) 100%);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Features Section */
.features-section {
    background: var(--color-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Promo Section */
.promo-section {
    background: linear-gradient(135deg, var(--color-accent) 0%, #c73e54 100%);
    padding: 60px 0;
}

.promo-content {
    text-align: center;
}

.promo-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.promo-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ============================================
   8. Cards
   ============================================ */
.game-card {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
}

.game-card:hover::before {
    opacity: 1;
}

.game-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.game-card-content {
    padding: 25px;
}

.game-card-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-gold);
}

.game-card-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.game-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.game-card-feature {
    background: rgba(255, 215, 0, 0.1);
    color: var(--color-gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.feature-card {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--color-gold);
}

.feature-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ============================================
   9. Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #c73e54 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff5a70 0%, var(--color-accent) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
}

.btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-primary);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: var(--color-primary);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #ffe44d 0%, var(--color-gold) 100%);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ============================================
   10. Footer
   ============================================ */
.site-footer {
    background: var(--color-primary);
    border-top: 1px solid var(--color-border);
    padding: 60px 0 30px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget-title {
    font-size: 1.2rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: var(--color-text-muted);
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
    text-align: center;
}

.footer-copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-copyright a {
    color: var(--color-gold);
}

/* ============================================
   11. Responsive
   ============================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-desktop {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .games-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* ============================================
   Page Content Styles
   ============================================ */
.page-content {
    padding: 120px 0 80px;
    min-height: 60vh;
}

.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 140px 0 60px;
    text-align: center;
    margin-bottom: 0;
}

.page-title {
    font-size: 2.8rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.page-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.content-area {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--color-border);
}

.content-area h2 {
    color: var(--color-gold);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-area h2:first-child {
    margin-top: 0;
}

.content-area p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.content-area ul,
.content-area ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.content-area ul li,
.content-area ol li {
    color: var(--color-text-muted);
    margin-bottom: 10px;
    position: relative;
}

.content-area ul li::before {
    content: '•';
    color: var(--color-accent);
    margin-right: 10px;
}
