/*
Theme Name: VN88 Theme
Theme URI: https://uun.uk.com/
Author: VN88 Team
Author URI: https://uun.uk.com/
Description: VN88 - Nền Tảng Giải Trí Trực Tuyến Hàng Đầu Việt Nam
Version: 1.0.0
License: GPL v2 or later
Text Domain: vn88-theme
*/

/* ================================
   CSS RESET & BASE
================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   HEADER
================================ */
.site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-branding {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e94560;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
}

.nav-menu a:hover {
    color: #e94560;
}

.header-actions {
    display: flex;
    gap: 15px;
    margin-left: 30px;
}

.btn {
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #e94560;
    color: #fff;
}

.btn-primary:hover {
    background: #c73e54;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #e94560;
}

.btn-secondary:hover {
    background: #e94560;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ================================
   HERO SECTION
================================ */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ================================
   FEATURES SECTION
================================ */
.features {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1a1a2e;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-card img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #e94560;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

/* ================================
   CARDS SECTION
================================ */
.cards-section {
    padding: 80px 0;
    background: #f5f5f5;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.content-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
}

.content-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 30px;
}

.card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.card-body p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.card-link {
    color: #e94560;
    font-weight: 600;
}

/* ================================
   STEPS SECTION
================================ */
.steps-section {
    padding: 80px 0;
    background: #fff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    counter-reset: step;
}

.step-item {
    text-align: center;
    padding: 30px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #e94560;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.step-item p {
    color: #666;
    font-size: 0.95rem;
}

/* ================================
   TIMELINE SECTION
================================ */
.timeline-section {
    padding: 80px 0;
    background: #f5f5f5;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #e94560;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 350px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #e94560;
    border-radius: 50%;
    top: 25px;
    right: calc(50% - 10px);
}

.timeline-item:nth-child(even)::before {
    right: auto;
    left: calc(50% - 10px);
}

.timeline-content h3 {
    color: #e94560;
    margin-bottom: 10px;
}

/* ================================
   COMPARISON SECTION
================================ */
.comparison-section {
    padding: 80px 0;
    background: #fff;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #1a1a2e;
    color: #fff;
    font-weight: 600;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

.comparison-table .check {
    color: #28a745;
    font-weight: bold;
}

/* ================================
   TIPS SECTION
================================ */
.tips-section {
    padding: 80px 0;
    background: #f5f5f5;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.tip-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #e94560;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.tip-box h4 {
    color: #1a1a2e;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tip-box p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ================================
   FAQ SECTION
================================ */
.faq-section {
    padding: 80px 0;
    background: #fff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 25px 0;
}

.faq-item h3 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h3::after {
    content: '+';
    font-size: 1.5rem;
    color: #e94560;
}

.faq-item.active h3::after {
    content: '-';
}

.faq-answer {
    color: #666;
    line-height: 1.8;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ================================
   CTA SECTION
================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-section .btn {
    background: #fff;
    color: #e94560;
    padding: 15px 40px;
    font-size: 1.1rem;
}

.cta-section .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* ================================
   CONTENT SECTION
================================ */
.content-section {
    padding: 60px 0;
    background: #fff;
}

.content-section h2 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 25px;
}

.content-section h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin: 35px 0 15px;
}

.content-section p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.content-section ul {
    margin: 20px 0;
    padding-left: 25px;
}

.content-section ul li {
    list-style: disc;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ================================
   FOOTER
================================ */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #e94560;
}

.footer-section p {
    color: #aaa;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #aaa;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #e94560;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #888;
    font-size: 0.9rem;
}

.seo-text {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #1a1a2e;
        flex-direction: column;
        padding: 30px;
        transition: left 0.3s;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .header-actions {
        margin-left: 0;
        margin-top: 30px;
        flex-direction: column;
        width: 100%;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .timeline-item::before,
    .timeline-item:nth-child(even)::before {
        left: 10px;
        right: auto;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 15px 10px;
    }
    
    .feature-card img {
        
    }
    
    .content-card img {
        height: 150px;
    }
}
