/*
Theme Name: XChat Theme
Author: inyhow
Author URI: https://www.google.com/
Description: A highly optimized theme for Wangwang Business Chat with GEO (Generative Engine Optimization) features.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wangwangchat
*/

:root {
    /* Brand Colors (Monochrome X-style Premium) */
    --color-primary: #ffffff; 
    --color-secondary: #a0a0a0;
    --color-bg: #000000; 
    --color-surface: #111111; 
    --color-surface-hover: #1c1c1c;
    --color-text-main: #eff3f4; 
    --color-text-light: #71767b; 
    --color-white: #ffffff;
    --color-border: #2f3336;
    --gradient-brand: linear-gradient(135deg, #444 0%, #000 100%);
    --gradient-silver: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 128px;

    /* BorderRadius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

a:hover {
    opacity: 0.8;
}

.social-icon:hover {
    background: var(--color-primary) !important;
    color: #000 !important;
    transform: translateY(-3px);
}

ul {
    list-style: none;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--color-white);
    color: #000;
    border: none;
}

.btn-primary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--color-border);
    color: var(--color-white);
    background: transparent;
}

.btn-outline:hover {
    background: #222;
    border-color: var(--color-white);
}

/* Header Base */
.site-header {
    padding: 0;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-white);
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--color-text-main);
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--color-white);
}

.custom-logo-link img {
    filter: brightness(0) invert(1);
}

/* ==================
   HOMEPAGE SECTIONS 
   ================== */

.section-spacing {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

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

/* 1. Hero Section */
.hero-section {
    padding: 100px 0 80px;
    background: #000000;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-white);
    font-weight: 800;
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-image {
        justify-content: center;
    }
}

/* 2. Scenarios (Cards) */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.scenario-card {
    background: var(--color-surface);
    padding: 50px 30px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: transform 0.3s ease;
}

.scenario-card:hover {
    transform: translateY(-10px);
    background: var(--color-surface-hover);
}

.circle-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: #222;
    color: var(--color-white);
    border: 1px solid var(--color-border);
}

.scenario-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--color-text-main);
    font-weight: 700;
}

.scenario-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* 5. Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--color-surface);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    position: relative;
}

.testimonial-card::before {
    content: "“";
    font-size: 60px;
    color: #2f3336;
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: serif;
}

.testimonial-card p {
    position: relative;
    z-index: 1;
    color: var(--color-text-main);
    margin-bottom: 20px;
    font-style: italic;
}

.user-info strong {
    color: var(--color-white);
}

/* 6. Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.news-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: brightness(0.8);
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.news-title a {
    color: var(--color-text-main);
}

.news-title a:hover {
    color: var(--color-white);
}

/* 7. CTA Section */
.cta-section {
    background: #000000;
    padding: 100px 0;
    color: var(--color-text-main);
    text-align: center;
    border-top: 1px solid var(--color-border);
}

/* 8. Guide & FAQ */
.guide-card, .faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.step-badge {
    background: var(--color-white);
    color: #000;
}

.faq-item summary {
    color: var(--color-white);
    font-weight: 700;
}

.faq-item[open] {
    background: var(--color-surface-hover);
}

/* ==================
   INNER PAGES 
   ================== */
.entry-title {
    color: var(--color-white) !important;
}

.entry-header {
    text-align: center;
    margin-bottom: 50px;
}

.entry-content {
    color: var(--color-text-main);
    font-size: 1.15rem;
}

.entry-content h2, .entry-content h3 {
    color: var(--color-white);
    margin: 40px 0 20px;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-white);
    background: #111;
    padding: 20px;
    margin: 30px 0;
}

.tag-links a, .pagination .page-numbers {
    background: #111;
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
}

.tag-links a:hover, .pagination .page-numbers:hover, .pagination .page-numbers.current {
    background: var(--color-white);
    color: #000;
}

/* Widgets */
.widget {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.widget-title {
    color: var(--color-white);
}

.search-field, .widget-search input {
    background: #000;
    border: 1px solid var(--color-border);
    color: #fff;
}

.search-submit, .widget-search button {
    background: #fff;
    color: #000;
}

@media (max-width: 900px) {
    .scenarios-grid, .blog-grid, .guide-steps-grid {
        grid-template-columns: 1fr;
    }
}