/*
Theme Name: Fun88 Theme
Theme URI: https://Fun88 com
Author: Fun88 Team
Author URI: https://Fun88 com
Description: Theme WordPress chuyên nghiệp cho Fun88 - Nhà cái cá cược thể thao trực tuyến uy tín hàng đầu châu Á
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: fun88-theme
Tags: responsive, custom-menu, featured-images, theme-options
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
}

.nav-desktop ul {
    display: flex;
    gap: 5px;
}

.nav-desktop li {
    position: relative;
}

.nav-desktop a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-desktop a:hover,
.nav-desktop .current-menu-item a {
    background-color: #ff6600;
    color: #fff;
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #1a1a1a;
    padding: 20px;
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    transition: all 0.3s ease;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}

.nav-mobile.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    display: block;
}

.nav-mobile ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-mobile a {
    display: block;
    padding: 12px 15px;
    color: #fff;
    font-weight: 500;
    border-radius: 5px;
}

.nav-mobile a:hover,
.nav-mobile .current-menu-item a {
    background-color: #ff6600;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
    z-index: 1001;
}

.menu-toggle:hover,
.menu-toggle:focus {
    color: #ff6600;
    outline: none;
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* Auth Buttons */
.header-auth {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-login,
.btn-register {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.btn-login {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-login:hover {
    background-color: #fff;
    color: #1a1a1a;
}

.btn-register {
    background-color: #ff6600;
    color: #fff;
    border: 2px solid #ff6600;
}

.btn-register:hover {
    background-color: #e65c00;
    border-color: #e65c00;
}

/* Main Content */
.site-main {
    padding: 40px 0;
    min-height: 60vh;
}

.site-content {
    display: flex;
    gap: 30px;
}

.main-content-area {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Content Sections */
.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff6600;
}

.content-section h3 {
    font-size: 1.4rem;
    color: #2d2d2d;
    margin: 25px 0 15px;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #444;
}

.content-section ul,
.content-section ol {
    margin: 15px 0;
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 10px;
    position: relative;
}

.content-section ul li::before {
    content: "✓";
    color: #ff6600;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

/* Sidebar */
.site-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.widget h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6600;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 10px;
}

.widget a {
    color: #444;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #ff6600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
    margin-top: 40px;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
    border: none;
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #ccc;
}

.cta-button {
    display: inline-block;
    background-color: #ff6600;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 102, 0, 0.4);
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #ff6600;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #ff6600;
}

.footer-nav ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #999;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Disclaimer */
.disclaimer {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.disclaimer p {
    color: #856404;
    font-size: 0.9rem;
    margin: 0;
}

/* Single Post */
.single-post {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.single-post h1 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.post-meta span {
    margin-right: 20px;
}

/* Archive Page */
.archive-header {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

.archive-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.archive-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.archive-item:hover {
    transform: translateY(-5px);
}

.archive-item-content {
    padding: 25px;
}

.archive-item h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.archive-item h2 a {
    color: inherit;
}

.archive-item h2 a:hover {
    color: #ff6600;
}

.archive-item p {
    color: #666;
    line-height: 1.6;
}

/* Page Navigation */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
}

.error-404 h1 {
    font-size: 4rem;
    color: #ff6600;
    margin-bottom: 20px;
}

.error-404 p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-auth {
        display: none;
    }

    .site-content {
        flex-direction: column;
    }

    .site-sidebar {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-nav ul {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .main-content-area {
        padding: 20px;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .archive-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .site-main {
        padding: 20px 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}
