/*
Theme Name: Fun88 Theme
Theme URI: https://fun88.com
Author: Fun88 Developer
Author URI: https://fun88.com
Description: Theme WordPress chuẩn SEO cho Fun88 - Nhà cái cá cược uy tín hàng đầ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, seo, betting, casino, sports
*/

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6600;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===================================
   HEADER STYLES
   =================================== */
.site-header {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex: 1;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.site-title a {
    color: #fff;
}

.site-title a:hover {
    color: #ff6600;
}

/* Desktop Navigation */
.main-navigation {
    flex: 2;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    gap: 5px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background-color: #ff6600;
    color: #fff;
}

/* Header Actions (Login/Register) */
.header-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-login {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-login:hover {
    background-color: #fff;
    color: #1a3a5c;
}

.btn-register {
    background-color: #ff6600;
    color: #fff;
}

.btn-register:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 10px 15px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    color: #ff6600;
    transform: scale(1.1);
}

.menu-toggle:focus {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
}

/* Mobile Navigation */
.mobile-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a3a5c;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.mobile-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-navigation a {
    padding: 15px;
    display: block;
    border-radius: 4px;
    color: #fff;
}

.mobile-navigation a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ff6600;
}

.mobile-navigation.active {
    display: block !important;
}

/* ===================================
   MAIN CONTENT AREA
   =================================== */
.site-main {
    padding: 40px 0;
    min-height: 60vh;
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

.main-content {
    flex: 3;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar {
    flex: 1;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background-color: #ff6600;
    color: #fff;
    padding: 15px 35px;
    font-size: 18px;
    border-radius: 5px;
}

.btn-hero-primary:hover {
    background-color: #e65c00;
    transform: translateY(-3px);
}

.btn-hero-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 15px 35px;
    font-size: 18px;
    border-radius: 5px;
}

.btn-hero-secondary:hover {
    background-color: #fff;
    color: #1a3a5c;
}

/* Hero Image */
.hero-image {
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 0 auto;
}

/* Content Image */
.content-image {
    margin: 25px auto;
    text-align: center;
    max-width: 100%;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* ===================================
   CONTENT SECTIONS
   =================================== */
.content-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    color: #1a3a5c;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ff6600;
    display: inline-block;
}

.section-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.section-content p {
    margin-bottom: 20px;
}

.section-content h2 {
    font-size: 26px;
    color: #1a3a5c;
    margin: 30px 0 20px;
}

.section-content h3 {
    font-size: 22px;
    color: #2c5282;
    margin: 25px 0 15px;
}

.section-content ul,
.section-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.section-content li {
    margin-bottom: 10px;
    list-style: disc;
}

/* ===================================
   SIDEBAR WIDGETS
   =================================== */
.widget {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.widget:last-child {
    border-bottom: none;
}

.widget-title {
    font-size: 20px;
    color: #1a3a5c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6600;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 12px;
}

.widget a {
    color: #333;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
}

.widget a:hover {
    color: #ff6600;
    padding-left: 10px;
}

/* ===================================
   FOOTER STYLES
   =================================== */
.site-footer {
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2740 100%);
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    padding: 0 15px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ff6600;
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff6600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions {
        display: none;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .main-content,
    .sidebar {
        flex: 1;
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 24px;
    }

    .site-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-description {
        font-size: 14px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }

    .main-content {
        padding: 20px;
    }

    .section-title {
        font-size: 20px;
    }
}

/* ===================================
   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;
}

.visible {
    display: block;
}
