/**
 * Xoso66 Theme Styles
 * Main stylesheet for Xoso66 WordPress Theme
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --accent-hover: #c73e54;
    --gold-color: #ffd700;
    --text-color: #ffffff;
    --text-muted: #b8b8b8;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --border-color: #2a2a4a;
    --success-color: #28a745;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

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

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

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

ul,
ol {
    list-style: none;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.site-content {
    min-height: calc(100vh - 300px);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-bottom: 2px solid var(--gold-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-branding .site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-menu a {
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-menu a:hover {
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--gold-color);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: var(--transition);
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    transition: var(--transition);
}

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

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

/* Header Actions */
.header-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-login {
    background-color: transparent;
    border: 2px solid var(--gold-color);
    color: var(--gold-color);
}

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

.btn-register,
.btn-primary,
.btn-cta {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: var(--text-color);
}

.btn-register:hover,
.btn-primary:hover,
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--gold-color);
    text-transform: capitalize;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: var(--spacing-sm);
    text-transform: capitalize;
}

/* ============================================
   BRAND SECTION
   ============================================ */
.brand-section {
    background-color: var(--bg-dark);
}

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

.brand-text p {
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.brand-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    text-align: center;
}

.feature-item {
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.feature-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
}

.feature-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    background-color: var(--secondary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.product-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--primary-color) 100%);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-title {
    font-size: 1.3rem;
    color: var(--gold-color);
    margin-bottom: var(--spacing-sm);
}

.product-description {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   ADVANTAGES SECTION
   ============================================ */
.advantages-section {
    background-color: var(--bg-dark);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.advantage-item {
    padding: var(--spacing-md);
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.advantage-title {
    font-size: 1.2rem;
    color: var(--gold-color);
    margin-bottom: var(--spacing-sm);
}

.advantage-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.cta-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background-color: var(--text-color);
    color: var(--accent-color);
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

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

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    background-color: var(--secondary-color);
}

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

.faq-item {
    background-color: var(--bg-card);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.faq-question {
    font-size: 1.1rem;
    color: var(--gold-color);
    margin-bottom: var(--spacing-xs);
}

.faq-answer {
    color: var(--text-muted);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-bottom: 2px solid var(--gold-color);
}

.page-title {
    font-size: 2rem;
    color: var(--gold-color);
    margin-bottom: var(--spacing-sm);
    text-transform: capitalize;
}

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

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.guide-section,
.about-section,
.products-detail-section,
.promotions-section,
.contact-section {
    background-color: var(--bg-dark);
}

.guide-item,
.product-category,
.promotion-card,
.method-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--secondary-color) 100%);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.guide-title,
.category-title,
.promotion-title,
.method-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: var(--spacing-sm);
}

.guide-content p,
.category-intro,
.promotion-content p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

/* Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.step {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--text-color);
    margin-bottom: var(--spacing-xs);
}

.step-content p {
    color: var(--text-muted);
    margin: 0;
}

/* Lists */
.product-features ul,
.promotion-details ul,
.important-notes ul,
.notice-content ul,
.method-details ul {
    list-style: disc;
    padding-left: var(--spacing-md);
    color: var(--text-muted);
}

.product-features li,
.promotion-details li,
.important-notes li,
.notice-content li,
.method-details li {
    margin-bottom: var(--spacing-xs);
}

/* Values Grid */
.values-grid,
.stats-grid,
.methods-grid,
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.value-item,
.stat-item,
.hours-item {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.value-item h3,
.hours-item h3 {
    color: var(--gold-color);
    margin-bottom: var(--spacing-xs);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    color: var(--text-muted);
}

/* Promotion Cards */
.promotion-card.featured {
    border: 2px solid var(--gold-color);
    position: relative;
}

.promotion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.promotion-badge {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-top: 2px solid var(--gold-color);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-site-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: var(--spacing-sm);
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1.1rem;
    color: var(--gold-color);
    margin-bottom: var(--spacing-sm);
}

.footer-menu li {
    margin-bottom: var(--spacing-xs);
}

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

.footer-menu a:hover {
    color: var(--gold-color);
}

.contact-list li {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
    text-align: center;
}

.copyright {
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.footer-seo-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    /* Header */
    .header-inner {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
        order: 3;
    }
    
    .main-navigation {
        order: 2;
        width: 100%;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        background-color: var(--secondary-color);
        padding: var(--spacing-sm);
        margin-top: var(--spacing-sm);
        border-radius: var(--border-radius);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: var(--spacing-sm);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu li:last-child a {
        border-bottom: none;
    }
    
    .header-actions {
        order: 1;
        margin-left: auto;
    }
    
    .btn-login,
    .btn-register {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Brand Features */
    .brand-features {
        grid-template-columns: 1fr;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Advantages Grid */
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Values Grid */
    .values-grid,
    .stats-grid,
    .methods-grid,
    .hours-grid {
        grid-template-columns: 1fr;
    }
    
    /* Steps */
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .header-actions {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.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;
}

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

.text-gold {
    color: var(--gold-color);
}

.text-accent {
    color: var(--accent-color);
}

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* ============================================
   IMAGES STYLES
   ============================================ */

/* Hero Image */
.hero-image {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Brand Image */
.brand-image,
.brand-image-secondary {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.brand-image img,
.brand-image-secondary img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Product Card Image */
.product-image {
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    border-radius: var(--border-radius);
}

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

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

/* CTA Image */
.cta-image {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.cta-image img {
    max-width: 300px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* About Images */
.about-image,
.about-image-secondary {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.about-image img,
.about-image-secondary img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Category Images */
.category-image {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.category-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Promotion Image */
.promotion-image {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.promotion-image img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Guide Images */
.guide-image {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.guide-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Contact Image */
.contact-image {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.contact-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Images */
@media (max-width: 768px) {
    .product-image img {
        height: 150px;
    }
    
    .cta-image img {
        max-width: 200px;
    }
    
    .category-image img,
    .guide-image img,
    .contact-image img {
        max-height: 200px;
    }
}
