/**
 * Help & Support Page Styles
 * 
 * @package Yaraa_AI_Sales_Agent
 * @since 1.0.0
 */

/* ===================================
Page Layout.
=================================== */
.yaraa-help-wrap {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.yaraa-help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.yaraa-help-header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.yaraa-help-header h1 .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #3b82f6;
}

/* ===================================
Tabs Navigation.
=================================== */
.yaraa-help-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 8px 8px 0 0;
    padding: 0 20px;
}

.yaraa-help-tab {
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yaraa-help-tab:hover {
    color: #3b82f6;
    background: #f8fafc;
}

.yaraa-help-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: transparent;
}

.yaraa-help-tab .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ===================================
Tab Content.
=================================== */
.yaraa-help-content {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 500px;
}

.yaraa-tab-panel {
    display: none;
    padding: 30px;
}

.yaraa-tab-panel.active {
    display: block;
}

/* Documentation panel needs no padding - handled by container. */
#docs-panel.yaraa-tab-panel {
    padding: 0;
}

/* ===================================
FAQs Section.
=================================== */
.yaraa-faqs-section {
    max-width: 900px;
    margin: 0 auto;
}

.yaraa-faqs-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 30px;
}

.yaraa-faqs-title .dashicons {
    color: #3b82f6;
    margin-right: 8px;
}

/* Accordion Styles. */
.yaraa-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.yaraa-accordion-item {
    border-bottom: 1px solid #e2e8f0;
}

.yaraa-accordion-item:last-child {
    border-bottom: none;
}

.yaraa-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.yaraa-accordion-header:hover {
    background: #f8fafc;
}

.yaraa-accordion-header.active {
    background: #f1f5f9;
}

.yaraa-accordion-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #64748b;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.yaraa-accordion-header.active .yaraa-accordion-icon {
    transform: rotate(180deg);
    color: #3b82f6;
}

.yaraa-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.yaraa-accordion-content.open {
    max-height: 500px;
}

.yaraa-accordion-body {
    padding: 0 24px 20px;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

/* ===================================
Quick Links Section.
=================================== */
.yaraa-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding: 20px;
    background: #f1f5f9;
    border-radius: 8px;
}

.yaraa-quick-links-title {
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.yaraa-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.yaraa-quick-link:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.yaraa-quick-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ===================================
Search Box.
=================================== */
.yaraa-help-search {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.yaraa-faqs-section .yaraa-help-search .yaraa-help-search-input,
.yaraa-help-wrap .yaraa-help-search-input,
input[type="text"].yaraa-help-search-input {
    width: 100% !important;
    max-width: 500px !important;
    padding: 12px 16px 12px 44px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background-color: #f1f5f9 !important;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%2394a3b8"><path fill-rule="evenodd" d="M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z" clip-rule="evenodd"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: 14px center !important;
    background-size: 18px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: normal !important;
    min-height: auto !important;
    height: auto !important;
}

.yaraa-faqs-section .yaraa-help-search .yaraa-help-search-input:focus,
.yaraa-help-wrap .yaraa-help-search-input:focus,
input[type="text"].yaraa-help-search-input:focus {
    outline: none !important;
    border: none !important;
    background-color: #e2e8f0 !important;
    box-shadow: none !important;
}

.yaraa-help-search-input::placeholder {
    color: #94a3b8 !important;
}

/* ===================================
Documentation Container Layout.
=================================== */
.yaraa-docs-container {
    display: flex;
    min-height: 600px;
    max-height: 80vh;
    overflow: hidden;
}

/* ===================================
Documentation Sidebar.
=================================== */
.yaraa-docs-sidebar {
    width: 260px;
    min-width: 260px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    padding: 20px 0;
}

.yaraa-docs-nav {
    padding: 0;
}

.yaraa-docs-nav-section-title {
    padding: 16px 20px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yaraa-docs-nav-link {
    display: block;
    padding: 10px 20px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.yaraa-docs-nav-link:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.yaraa-docs-nav-link.active {
    background: #eff6ff;
    color: #3b82f6;
    border-left-color: #3b82f6;
    font-weight: 500;
}

/* ===================================
Documentation Main Content.
=================================== */
.yaraa-docs-main {
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;
    max-width: calc(100% - 260px);
}

/* ===================================
Documentation Typography.
=================================== */
.yaraa-docs-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.yaraa-docs-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin: 40px 0 20px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.yaraa-docs-section h2:first-of-type {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.yaraa-docs-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    margin: 28px 0 14px;
}

.yaraa-docs-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    margin: 20px 0 10px;
}

.yaraa-docs-section p {
    margin-bottom: 14px;
    color: #475569;
    line-height: 1.7;
}

.yaraa-docs-section ul,
.yaraa-docs-section ol {
    margin: 14px 0 20px 24px;
    color: #475569;
}

.yaraa-docs-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.yaraa-docs-section li strong {
    color: #1e293b;
}

.yaraa-docs-section code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: #e11d48;
}

/* ===================================
Documentation Images.
=================================== */
.yaraa-docs-image {
    width: 100%;
    max-width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 16px 0 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.yaraa-docs-image-caption {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px;
    font-style: italic;
}

/* ===================================
Documentation Info Boxes.
=================================== */
.yaraa-docs-info-box {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.yaraa-docs-info-box--note {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.yaraa-docs-info-box--tip {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
}

.yaraa-docs-info-box--warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
}

.yaraa-docs-info-box-title {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yaraa-docs-info-box--note .yaraa-docs-info-box-title {
    color: #1d4ed8;
}

.yaraa-docs-info-box--tip .yaraa-docs-info-box-title {
    color: #16a34a;
}

.yaraa-docs-info-box--warning .yaraa-docs-info-box-title {
    color: #d97706;
}

.yaraa-docs-info-box p {
    margin: 0;
    color: inherit;
}

.yaraa-docs-info-box ul {
    margin: 8px 0 0 20px;
}

/* ===================================
Documentation Steps.
=================================== */
.yaraa-docs-step {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.yaraa-docs-step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.yaraa-docs-step-content {
    flex: 1;
}

.yaraa-docs-step-content h4 {
    margin: 0 0 6px;
    color: #1e293b;
    font-size: 15px;
}

.yaraa-docs-step-content p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* ===================================
Documentation Feature Grid.
=================================== */
.yaraa-docs-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.yaraa-docs-feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.yaraa-docs-feature-card h4 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yaraa-docs-feature-card h4 .dashicons {
    color: #3b82f6;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.yaraa-docs-feature-card p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* ===================================
Documentation Table of Contents.
=================================== */
.yaraa-docs-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
}

.yaraa-docs-toc h3 {
    margin: 0 0 14px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yaraa-docs-toc h3 .dashicons {
    color: #3b82f6;
}

.yaraa-docs-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.yaraa-docs-toc li {
    margin: 8px 0;
}

.yaraa-docs-toc a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
}

.yaraa-docs-toc a:hover {
    text-decoration: underline;
}

/* ===================================
Documentation Footer.
=================================== */
.yaraa-docs-footer {
    margin-top: 48px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

/* ===================================
Responsive Design.
=================================== */
@media (max-width: 1024px) {
    .yaraa-docs-container {
        flex-direction: column;
        max-height: none;
    }

    .yaraa-docs-sidebar {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        max-height: 300px;
    }

    .yaraa-docs-main {
        max-width: 100%;
        padding: 24px;
    }

    .yaraa-docs-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 782px) {
    .yaraa-help-wrap {
        padding: 0 10px;
    }

    .yaraa-help-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .yaraa-help-header h1 {
        font-size: 22px;
    }

    .yaraa-help-tabs {
        padding: 0 10px;
        overflow-x: auto;
    }

    .yaraa-help-tab {
        padding: 12px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    .yaraa-tab-panel {
        padding: 20px;
    }

    #docs-panel.yaraa-tab-panel {
        padding: 0;
    }

    .yaraa-accordion-header {
        padding: 14px 16px;
        font-size: 14px;
    }

    .yaraa-accordion-body {
        padding: 0 16px 16px;
    }

    .yaraa-docs-main {
        padding: 16px;
    }

    .yaraa-docs-title {
        font-size: 22px;
    }

    .yaraa-docs-section h2 {
        font-size: 18px;
    }

    .yaraa-docs-step {
        flex-direction: column;
        gap: 12px;
    }
}

/* ===================================
Print Styles.
=================================== */
@media print {
    .yaraa-help-tabs,
    .yaraa-docs-sidebar {
        display: none;
    }

    .yaraa-docs-container {
        display: block;
    }

    .yaraa-docs-main {
        max-width: 100%;
        padding: 0;
    }

    .yaraa-accordion-content {
        max-height: none !important;
    }

    .yaraa-accordion-header {
        background: none !important;
    }
}

/* ===================================
No Results Message.
=================================== */
.yaraa-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.yaraa-no-results .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.yaraa-no-results p {
    margin: 0;
    font-size: 15px;
}