/*
Theme Name: MAY88 Theme
Theme URI: https://may88.com
Author: MAY88 Team
Description: MAY88 - Nhà cái cá cược trực tuyến uy tín
Version: 1.0.0
*/

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary-color: #ff6b35;
    --primary-hover: #e55a2b;
    --secondary-color: #1a1a2e;
    --accent-color: #16213e;
    --text-color: #ffffff;
    --text-muted: #b8b8b8;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --border-color: #2a2a3e;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --container-width: 1200px;
    --header-height: 70px;
    --transition: all 0.3s ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* ========================================
   Container
   ======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-login {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    font-size: 13px;
}

.btn-login:hover {
    background-color: var(--border-color);
}

.btn-register {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 8px 16px;
    font-size: 13px;
}

.btn-register:hover {
    background-color: var(--primary-hover);
}

/* ========================================
   Header
   ======================================== */
.site-header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Navigation */
.main-navigation {
    flex: 1;
}

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

.nav-menu a {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 10px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 10px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-icon {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Mobile Navigation */
.mobile-navigation {
    display: none;
    background-color: var(--secondary-color);
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-menu a {
    color: var(--text-color);
    font-size: 16px;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-actions .btn {
    width: 100%;
}

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

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    padding: 80px 0;
    text-align: center;
}

.page-hero .hero-title {
    font-size: 36px;
}

/* ========================================
   Section Styles
   ======================================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-description {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Game Categories Section
   ======================================== */
.game-categories-section {
    background-color: var(--bg-dark);
}

.game-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.game-category-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.game-category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.1);
}

.game-category-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 107, 53, 0.1) 100%);
}

.category-image {
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-category-card:hover .category-image img {
    transform: scale(1.05);
}

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

.category-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.category-description {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-category {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 10px 24px;
    font-size: 13px;
}

.btn-category:hover {
    background-color: var(--primary-color);
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    background-color: var(--secondary-color);
}

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

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    background-color: var(--bg-dark);
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text-wrapper .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    text-align: center;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-description {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-secondary {
    border-color: #ffffff;
    color: #ffffff;
}

.cta-section .btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

/* ========================================
   News Section
   ======================================== */
.news-section {
    background-color: var(--secondary-color);
}

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

.news-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    transition: var(--transition);
}

.news-item:hover {
    border-color: var(--primary-color);
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-title a {
    color: var(--text-color);
}

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

.news-meta {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.news-excerpt {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn-read-more {
    background-color: transparent;
    color: var(--primary-color);
    padding: 8px 16px;
    font-size: 12px;
    border: 1px solid var(--primary-color);
}

.btn-read-more:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ========================================
   Page Content
   ======================================== */
.page-content {
    padding: 60px 0;
    min-height: 500px;
}

.page-content-section {
    background-color: var(--bg-dark);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.subsection-title {
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.content-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Sports & Casino Pages */
.sports-grid,
.casino-games-grid,
.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.sport-card,
.casino-game-card,
.promotion-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.sport-card:hover,
.casino-game-card:hover,
.promotion-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.sport-image,
.casino-image,
.promo-image,
.slot-image,
.fish-image {
    width: 100%;
    height: 150px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.sport-image img,
.casino-image img,
.promo-image img,
.slot-image img,
.fish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.sport-card:hover .sport-image img,
.casino-game-card:hover .casino-image img,
.promotion-card:hover .promo-image img,
.slot-game-card:hover .slot-image img,
.fish-card:hover .fish-image img {
    transform: scale(1.05);
}

.sport-title,
.game-title,
.promotion-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.sport-card p,
.casino-game-card p,
.promotion-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

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

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-widget p {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-notice {
    font-size: 12px !important;
    color: var(--text-muted);
}

.footer-nav {
    display: flex;
    list-style: none;
    gap: 20px;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 14px;
}

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 991px) {
    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-navigation.active {
        display: block;
    }

    .header-actions {
        display: none;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .game-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text-wrapper .section-title {
        text-align: center;
    }

    .category-image {
        height: 150px;
    }

    .hero-description {
        font-size: 16px;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .game-categories-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* ========================================
   Accessibility
   ======================================== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100000;
}

.skip-link:focus {
    top: 6px;
}

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

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

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

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

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