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

:root {
    --primary: #8B4789;
    --secondary: #0052CC;
    --text: #1F2937;
    --light: #F9FAFB;
    --border: #E5E7EB;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

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

/* Header */
.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #6B7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* search-box removed */

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border-radius: 999px;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    outline: none;
}

.search-container i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 1.2rem;
}

/* Breadcrumbs */
.breadcrumbs {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: #fff;
    font-size: 0.95rem;
}

.breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.breadcrumbs li+li:before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    opacity: 0.8;
    margin: 0 0.25rem 0 0.15rem;
}

/* Header breadcrumbs variant */
.header .breadcrumbs {
    background: transparent;
    padding: 0;
}

.header .breadcrumbs ol {
    color: #6B7280;
}

.header .breadcrumbs a {
    color: #6B7280;
}

.header .breadcrumbs a:hover {
    color: var(--primary);
}

.header .breadcrumbs li+li:before {
    color: #9CA3AF;
    opacity: 1;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s;
}

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

.hero-card.stretched-link {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
}

.hero-card.stretched-link:visited,
.hero-card.stretched-link:hover,
.hero-card.stretched-link:focus {
    color: inherit;
    text-decoration: none;
}

.hero-card .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: inherit;
    font-weight: 600;
}

.hero-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.bg-light {
    background: var(--light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.step {
    display: flex;
    gap: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-image-placeholder {
    background: var(--light);
    border: 2px dashed var(--border);
    border-radius: 0.75rem;
    padding: 3rem;
    text-align: center;
    color: #9CA3AF;
    margin-top: 1rem;
}

.step-image-placeholder i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

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

.concept-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.concept-card.featured {
    border: 2px solid var(--primary);
}

.concept-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.concept-features {
    list-style: none;
    margin: 1.5rem 0;
}

.concept-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.concept-features i {
    color: var(--secondary);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 1rem;
}

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

.btn-primary:hover {
    background: #FFA801;
}

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

.btn-secondary:hover {
    background: var(--border);
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Tutorials */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tutorial-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tutorial-image-placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, #FFA801 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.tutorial-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.tutorial-content {
    padding: 1.5rem;
}

.tutorial-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary);
    color: white;
    border-radius: 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.tutorial-tag.intermediate {
    background: #F59E0B;
}

.tutorial-tag.advanced {
    background: #EF4444;
}

.tutorial-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    color: #6B7280;
    font-size: 0.875rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question:hover {
    background: var(--light);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
    color: #6B7280;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer ul {
    margin-top: 0.75rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Footer */
.footer {
    background: #1F2937;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #9CA3AF;
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9CA3AF;
}

.footer-bottom a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
    color: #ffffff;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.language-switcher .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn {
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
}

.btn-outline-light {
    background: #ffffff;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline-light:hover {
    background: var(--light);
}

.language-indicator {
    font-weight: 600;
}

.language-switcher .fa-chevron-down {
    font-size: 0.85em;
    color: #6B7280;
}

/* Dropdown menu */
.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    min-width: 180px;
    padding: 0.4rem 0;
    list-style: none;
    display: none;
    z-index: 1001;
}

.language-switcher.open .language-menu {
    display: block;
}

.language-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.language-menu li a:hover {
    background: #EEF2FF;
    color: #1e40af;
}

.lang-btn i {
    margin: 0 0.35rem 0 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav {
        display: none;
    }

    .language-switcher {
        margin-left: auto;
    }

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

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

    .step {
        flex-direction: column;
    }
}

/* ============================================================
   New elements — added 2026-03
   ============================================================ */

/* Image placeholder with AI prompt */
.img-placeholder {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    margin: 1.5rem 0;
}
.img-placeholder .img-icon { font-size: 2.5rem; color: #cbd5e1; margin-bottom: 0.75rem; display: block; }
.img-placeholder .img-label { font-size: 0.95rem; font-weight: 600; color: #64748b; margin-bottom: 0.25rem; }
.img-placeholder .img-size-hint { font-size: 0.8rem; color: #94a3b8; margin-bottom: 0.75rem; }
.img-prompt {
    text-align: left; margin-top: 1rem; border: 1px solid #e2e8f0;
    border-radius: 0.5rem; background: white; overflow: hidden;
}
.img-prompt summary {
    padding: 0.6rem 1rem; cursor: pointer; font-size: 0.82rem; font-weight: 600;
    color: #8B4789; background: #faf5ff; list-style: none; display: flex; align-items: center; gap: 0.5rem;
}
.img-prompt summary:hover { background: #f3e8ff; }
.img-prompt .prompt-text {
    padding: 0.75rem 1rem; font-size: 0.82rem; color: #374151; line-height: 1.6; font-style: italic;
}

/* Video placeholder */
.video-placeholder {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 0.75rem; padding: 3.5rem 2rem; text-align: center; color: white; margin: 1.5rem 0;
}
.video-placeholder i { font-size: 3.5rem; opacity: 0.5; margin-bottom: 0.75rem; display: block; }
.video-placeholder .video-title { font-weight: 600; opacity: 0.9; }
.video-placeholder .video-meta { font-size: 0.85rem; opacity: 0.55; margin-top: 0.4rem; }

/* Action reference cards */
.action-ref { margin-bottom: 1.25rem; border: 1px solid #e5e7eb; border-radius: 0.75rem; overflow: hidden; }
.action-ref-header { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.25rem; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.action-ref-title { font-weight: 600; font-size: 1rem; flex: 1; }
.action-ref-desc { color: #6b7280; font-size: 0.9rem; }
.action-badge { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 0.375rem; font-family: monospace; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.action-badge.transfer { background: #dbeafe; color: #1d4ed8; }
.action-badge.message  { background: #dcfce7; color: #16a34a; }
.action-badge.file     { background: #fef3c7; color: #d97706; }
.action-badge.webhook  { background: #fce7f3; color: #be185d; }
.action-badge.task     { background: #ede9fe; color: #7c3aed; }
.action-badge.exit     { background: #fee2e2; color: #dc2626; }
.action-ref-body { padding: 1.25rem; }
.action-syntax { background: #1e293b; color: #e2e8f0; border-radius: 0.5rem; padding: 0.7rem 1rem; font-family: monospace; font-size: 0.875rem; margin: 0.5rem 0; overflow-x: auto; }

/* Callout boxes */
.callout { display: flex; gap: 1rem; padding: 1.1rem 1.4rem; border-radius: 0.75rem; margin: 1.25rem 0; align-items: flex-start; }
.callout-info { background: #eff6ff; border-left: 4px solid #3b82f6; }
.callout-tip  { background: #f0fdf4; border-left: 4px solid #22c55e; }
.callout-warning { background: #fff7ed; border-left: 4px solid #f97316; }
.callout i { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.15rem; }
.callout-info i { color: #3b82f6; }
.callout-tip i  { color: #22c55e; }
.callout-warning i { color: #f97316; }
.callout-body p { margin: 0; font-size: 0.95rem; }
.callout-body strong { display: block; margin-bottom: 0.2rem; }

/* Comparison table */
.comparison-table { width: 100%; border-collapse: collapse; margin: 2rem 0; box-shadow: 0 1px 3px rgba(0,0,0,0.08); border-radius: 0.75rem; overflow: hidden; }
.comparison-table th { padding: 0.9rem 1.1rem; text-align: left; background: var(--primary); color: white; font-weight: 600; font-size: 0.95rem; }
.comparison-table th:first-child { background: #6b3a69; }
.comparison-table td { padding: 0.8rem 1.1rem; border-bottom: 1px solid #e5e7eb; font-size: 0.9rem; vertical-align: middle; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: #f9fafb; }
.comparison-table .check { color: #16a34a; font-weight: 700; }
.comparison-table .cross { color: #dc2626; }
.comparison-table .partial { color: #d97706; }

/* Channel support matrix */
.channel-matrix { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0; }
.channel-row { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.25rem; border-radius: 0.5rem; border: 1px solid #e5e7eb; background: white; }
.channel-icon { width: 2rem; text-align: center; font-size: 1.2rem; flex-shrink: 0; }
.channel-name { flex: 1; font-weight: 600; font-size: 0.95rem; }
.channel-detail { color: #6b7280; font-size: 0.85rem; }
.channel-status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; padding: 0.2rem 0.7rem; border-radius: 999px; font-weight: 600; }
.channel-status.supported { background: #dcfce7; color: #16a34a; }
.channel-status.text-only { background: #fef3c7; color: #d97706; }

/* Section sub-heading */
.section-h2 { font-size: 1.75rem; font-weight: 700; margin: 3rem 0 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid #f1f5f9; }
.section-h3 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 1rem; color: #374151; }

/* Bot type hero badge */
.bot-type-hero { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; margin-bottom: 1rem; background: rgba(255,255,255,0.2); }

/* Scenario cards */
.scenario-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.scenario-card { background: white; border-radius: 0.75rem; padding: 1.5rem; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.scenario-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--primary); }
.scenario-card .scenario-type { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; margin-bottom: 0.75rem; }
.scenario-card p { font-size: 0.9rem; color: #6b7280; margin: 0; }