/*
Theme Name: ChatMate AI WP
Theme URI: http://example.com/chatmate-ai-wp
Author: Ankit Verma
Author URI: http://example.com
Description: WordPress theme for ChatMate AI landing page.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, right-sidebar, responsive-layout, accessibility-ready
Text Domain: chatmate-ai-wp
*/
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #a855f7;
    --dark-bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --gradient-main: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

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

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

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: background 0.3s ease;
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a:not(.btn) {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:not(.btn):hover {
    color: white;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-color);
    color: #818cf8;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 1rem;
}

/* Glass Card Global */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

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

.feature-card .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* How It Works (Steps) */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.step-item {
    display: flex;
    gap: 30px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--dark-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    z-index: 2;
}

.step-content {
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    flex-grow: 1;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #a5b4fc;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    align-items: center;
}

.pricing-card {
    text-align: center;
    position: relative;
}

.pricing-card.recommended {
    border: 1px solid var(--primary-color);
    background: rgba(30, 41, 59, 0.9);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card.recommended:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge-recommended {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-main);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.pricing-header .price {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin: 10px 0;
}

.pricing-header .license-type {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    padding: 0 20px;
}

.pricing-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
}

.pricing-features li i {
    color: #4ade80;
    /* Green check */
}

.pricing-features li.disabled {
    color: #64748b;
}

.pricing-features li.disabled i {
    color: #64748b;
}

/* Footer */
.footer {
    background: #020617;
    padding-top: 80px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-col .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    /* Ensure text is white like header */
    margin-bottom: 20px;
    /* Add some spacing below logo */
}

.footer-col .logo:hover {
    color: white;
    /* Keep white on hover */
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #64748b;
}

.footer-bottom a {
    color: 64748b;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}



/* Documentation Specific Styles */
.docs-body {
    background: #0f172a;
}

.docs-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--glass-border);
}

.docs-container {
    display: flex;
    padding-top: 120px;
    padding-bottom: 80px;
    gap: 60px;
}

.docs-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-sticky {
    position: sticky;
    top: 120px;
    padding: 20px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.docs-sidebar h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
    padding: 5px 0;
    display: block;
}

.docs-nav a:hover,
.docs-nav a.active {
    color: white;
    font-weight: 500;
}

.docs-content {
    flex-grow: 1;
    max-width: 800px;
}

.docs-content section {
    scroll-margin-top: 120px;
    margin-bottom: 60px;
}

.docs-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.docs-content .lead {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.docs-content h2 {
    font-size: 2rem;
    margin-top: 40px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.docs-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    color: #a5b4fc;
}

.docs-content p,
.docs-content li {
    color: #cbd5e1;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.docs-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #fca5a5;
}

.docs-content .step-list {
    margin-left: 20px;
    counter-reset: step;
}

.docs-content .step-list li {
    position: relative;
    padding-left: 10px;
    margin-bottom: 15px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 40px 0;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.faq-item h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.faq-item p {
    margin-bottom: 0;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .docs-container {
        flex-direction: column;
        padding-top: 100px;
    }

    .docs-sidebar {
        width: 100%;
        margin-bottom: 40px;
    }

    .sidebar-sticky {
        position: static;
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav {
        display: none;
        /* Add JS toggle for mobile menu */
    }

    .mobile-toggle {
        display: block;
    }

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

    .steps-container::before {
        display: none;
    }

    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

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


    .footer-col .logo {
        justify-content: center;
    }
}

/* Changelog Styles */
.changelog-item {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.version-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.version-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.version-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
}

.changelog-list {
    list-style: none;
}

.changelog-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.badge-new {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 3px;
}

/* Documentation Table Styles */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    color: #cbd5e1;
}

.docs-table th,
.docs-table td {
    padding: 12px 15px;
    border: 1px solid var(--glass-border);
    text-align: left;
}

.docs-table th {
    background: rgba(30, 41, 59, 0.6);
    color: white;
    font-weight: 600;
}

/* Feature List Styles in Docs */
.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
}

.feature-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.feature-list li strong {
    color: white;
    margin-right: 5px;
}

.docs-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.docs-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}