/* ===================================
   Help Center Documentation Styles
   =================================== */

/* Content Body */
.content-body {
    font-size: 15px;
    line-height: 1.8;
}

.content-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: #111827;
}

.content-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 12px;
    color: #111827;
}

.content-body h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 10px;
    color: #111827;
}

.content-body p {
    margin-bottom: 16px;
    color: #374151;
}

.content-body ul,
.content-body ol {
    margin: 16px 0;
    padding-left: 30px;
}

.content-body li {
    margin-bottom: 8px;
    color: #374151;
}

.content-body a {
    color: #3b82f6;
    text-decoration: none;
}

.content-body a:hover {
    text-decoration: underline;
}

.content-body code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: #dc2626;
}

.content-body pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.content-body pre code {
    background: transparent;
    color: #f9fafb;
    padding: 0;
}

.content-body blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 20px;
    margin: 20px 0;
    color: #6b7280;
    font-style: italic;
}

.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-body table th,
.content-body table td {
    border: 1px solid #e5e7eb;
    padding: 12px;
    text-align: left;
}

.content-body table th {
    background: #f9fafb;
    font-weight: 600;
}

/* Copy Button */
.copy-btn {
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.copy-btn:hover {
    background: #f3f4f6;
    color: #3b82f6;
    border-color: #3b82f6;
}

/* Proxy Navigation Grid */
.proxy-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.proxy-nav-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s;
}

.proxy-nav-card:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateX(4px);
}

.proxy-nav-title {
    font-size: 15px;
    font-weight: 500;
}

.proxy-nav-card i {
    font-size: 14px;
    opacity: 0.5;
}

.proxy-nav-card:hover i {
    opacity: 1;
}

/* Next Article Box */
.next-article-box {
    margin-top: 40px;
    padding: 20px;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
}

.next-article-box h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #1e40af;
    font-size: 16px;
}

.next-article-box a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.next-article-box a:hover {
    text-decoration: underline;
}

/* Last Updated */
.last-updated {
    margin-top: 20px;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    border-top: 1px solid #e5e7eb;
}

/* FAQ Styles */
.faq-container {
    margin-top: 30px;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 20px 24px;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: #111827;
    transition: all 0.2s;
}

.faq-question:hover {
    background: #f3f4f6;
}

.faq-icon {
    color: #3b82f6;
    font-size: 14px;
    transition: transform 0.3s;
}

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

.faq-answer {
    max-height: 35px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    padding: 24px 24px 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    padding: 24px;
}

.faq-answer p {
    margin-bottom: 12px;
    color: #374151;
    line-height: 1.7;
}

.faq-answer h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #111827;
}

.faq-answer h4:first-child {
    margin-top: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 12px 0;
    padding-left: 24px;
}

.faq-answer li {
    margin-bottom: 8px;
    color: #374151;
}

.faq-answer a {
    color: #3b82f6;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-answer code {
    background: #1f2937;
    color: #f9fafb;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
}

.faq-answer pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.faq-answer pre code {
    background: transparent;
    padding: 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #d1d5db;
}

/* Page Header */
.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.page-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
}

/* Helpful Section */
.helpful-section {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.helpful-title {
    font-size: 16px;
    color: #374151;
    margin-bottom: 15px;
}

.helpful-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.helpful-btn {
    padding: 10px 24px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    color: #374151;
}

.helpful-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

/* Features and Tools Tables */
.features-table-container,
.tools-table-container {
    margin: 24px 0;
}

.features-table,
.tools-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.features-table thead,
.tools-table thead {
    background: #f9fafb;
}

.features-table th,
.tools-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #111827;
    border: 1px solid #e5e7eb;
    font-size: 15px;
}

.features-table td,
.tools-table td {
    padding: 16px;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 14px;
}

.features-table tbody tr:hover,
.tools-table tbody tr:hover {
    background: #f9fafb;
}

.feature-name,
.tool-name {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.feature-link {
    color: #3b82f6;
    text-decoration: none;
    margin-left: 4px;
}

.feature-link:hover {
    text-decoration: underline;
}

/* Success Box */
.success-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    padding: 16px 20px;
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    border-radius: 8px;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.success-text {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.success-link {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.success-link:hover {
    text-decoration: underline;
}

/* Guide Items */
.guide-items {
    margin: 24px 0;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.guide-item:last-child {
    border-bottom: none;
}

.guide-arrow {
    color: #9ca3af;
    font-size: 18px;
    flex-shrink: 0;
}

.guide-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    min-width: 80px;
}

.guide-link:hover {
    text-decoration: underline;
}

.guide-text {
    color: #6b7280;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .proxy-nav-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 28px;
    }

    .helpful-buttons {
        flex-direction: column;
    }

    .helpful-btn {
        width: 100%;
    }

    .features-table,
    .tools-table {
        font-size: 14px;
    }

    .features-table th,
    .features-table td,
    .tools-table th,
    .tools-table td {
        padding: 8px;
    }
}

/* Sidebar Active State Styles */
.sidebar-item a.active {
    color: #3b82f6;
    font-weight: 600;
    background: #eff6ff;
    border-radius: 6px;
}

.sidebar-item.active > a {
    color: #3b82f6;
    font-weight: 600;
}

.sidebar-submenu .sidebar-item a.active {
    color: #3b82f6;
    font-weight: 600;
    padding-left: 28px;
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
}

.sidebar-item.has-submenu.active > a {
    color: #3b82f6;
}

.sidebar-item.has-submenu.active > a .submenu-arrow {
    color: #3b82f6;
}
