/* 123B Theme - Main Stylesheet */

/* ===================================
   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, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ===================================
   Header Styles
   =================================== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-desktop {
    flex: 1;
}

.primary-menu {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    font-weight: 600;
    color: #333;
    padding: 0.5rem 0;
    display: block;
}

.primary-menu a:hover {
    color: #0066cc;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    position: relative;
    transition: background 0.3s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #333;
    transition: transform 0.3s ease;
}

.menu-toggle-icon::before {
    top: -8px;
}

.menu-toggle-icon::after {
    top: 8px;
}

.nav-mobile {
    display: none;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-weight: 600;
    color: #333;
    padding: 0.5rem 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-btn,
.register-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.login-btn {
    background: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.login-btn:hover {
    background: #0066cc;
    color: #fff;
}

.register-btn {
    background: #0066cc;
    color: #fff;
}

.register-btn:hover {
    background: #0052a3;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: #fff;
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: #0066cc;
    color: #fff;
}

.btn-primary:hover {
    background: #0052a3;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #0066cc;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* ===================================
   Sections
   =================================== */
.site-main {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #0066cc;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #0066cc;
    margin: 1rem auto 0;
}

section {
    padding: 3rem 0;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    background: #fff;
}

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

.section-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===================================
   Games Grid
   =================================== */
.games-section {
    background: #f9f9f9;
}

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

.game-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-content {
    padding: 2rem;
}

.game-content h3 {
    color: #0066cc;
    margin-bottom: 1rem;
}

.game-content p {
    color: #666;
    line-height: 1.7;
}

/* ===================================
   Features Grid
   =================================== */
.features-section {
    background: #fff;
}

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

.feature-item {
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    text-align: center;
}

.feature-item h3 {
    color: #0066cc;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #666;
    line-height: 1.7;
}

/* ===================================
   How To Section
   =================================== */
.how-to-section {
    background: #f9f9f9;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #0066cc;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-item h3 {
    color: #333;
    margin-bottom: 1rem;
}

.step-item p {
    color: #666;
    line-height: 1.7;
}

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    background: #fff;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    color: #0066cc;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #666;
    line-height: 1.7;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: #fff;
    text-align: center;
    padding: 4rem 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ===================================
   Page & Post Styles
   =================================== */
.page-content,
.single-post {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-header,
.post-header {
    margin-bottom: 2rem;
}

.page-title,
.post-title {
    color: #0066cc;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.9rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.5rem;
}

/* Content Images */
.content-image {
    margin: 2rem 0;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.post-content h2 {
    color: #0066cc;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0 1rem 2rem;
}

.post-content ul li,
.post-content ol li {
    margin-bottom: 0.5rem;
}

.post-thumbnail {
    margin: 2rem 0;
}

.post-thumbnail img {
    border-radius: 10px;
    width: 100%;
}

.post-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.tags-title {
    font-weight: 600;
    color: #333;
}

/* ===================================
   Archive & Blog Styles
   =================================== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card .post-thumbnail {
    margin: 0;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.post-card-title a {
    color: #333;
}

.post-card-title a:hover {
    color: #0066cc;
}

.post-excerpt {
    color: #666;
    margin: 1rem 0;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    color: #0066cc;
    font-weight: 600;
    margin-top: 1rem;
}

.read-more:hover {
    color: #0052a3;
}

.archive-header {
    margin-bottom: 3rem;
}

.archive-title {
    color: #0066cc;
    margin-bottom: 1rem;
}

.archive-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ===================================
   Sidebar
   =================================== */
.sidebar {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    color: #0066cc;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0066cc;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 0.5rem;
}

.widget ul li a {
    color: #666;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #0066cc;
}

/* ===================================
   Footer Styles
   =================================== */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-description p {
    color: #ccc;
    line-height: 1.7;
}

.footer-menu,
.footer-services,
.footer-support {
    list-style: none;
}

.footer-menu li,
.footer-services li,
.footer-support li {
    margin-bottom: 0.5rem;
}

.footer-menu a,
.footer-services a,
.footer-support a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-menu a:hover,
.footer-services a:hover,
.footer-support a:hover {
    color: #fff;
}

.footer-seo {
    border-top: 1px solid #333;
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.footer-seo p {
    color: #ccc;
    line-height: 1.7;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.copyright p,
.footer-disclaimer p {
    color: #999;
    font-size: 0.9rem;
}

/* ===================================
   Breadcrumb
   =================================== */
.breadcrumb {
    margin-bottom: 2rem;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #0066cc;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
    color: #999;
}

/* ===================================
   Template Specific Styles
   =================================== */
.template-gioi-thieu .values-grid,
.template-khuyen-mai .promo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item,
.promo-item {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
}

.value-item h3,
.promo-item h3 {
    color: #0066cc;
    margin-bottom: 1rem;
}

.contact-method {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.contact-method h3 {
    color: #0066cc;
    margin-bottom: 1rem;
}

.contact-form {
    max-width: 600px;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

/* ===================================
   Pagination
   =================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-mobile {
        display: block;
        width: 100%;
    }

    .nav-mobile.active .mobile-menu {
        display: flex;
    }

    .header-actions {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

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

    .games-grid,
    .features-grid,
    .steps-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

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

    .page-content,
    .single-post {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .login-btn,
    .register-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
