/* Support/Documentation Styles - SEO-Optimized Content */

/* Support Header */
.support-header {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    padding: 4rem 0;
    color: white;
    text-align: center;
}

.support-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.support-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Search Box in Header */
.support-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.support-search input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    font-size: 1rem;
    border: none;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.support-search input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.support-search svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #9ca3af;
}

/* Categories Grid */
.support-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.support-category-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
}

.support-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.support-category-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.support-category-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.support-category-icon.getting-started { background: #3b82f6; }
.support-category-icon.account { background: #10b981; }
.support-category-icon.billing { background: #8b5cf6; }
.support-category-icon.integrations { background: #f59e0b; }
.support-category-icon.api { background: #ec4899; }
.support-category-icon.troubleshooting { background: #ef4444; }

.support-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.support-category-description {
    color: #6b7280;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.support-category-count {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Documentation Layout */
.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Documentation Sidebar */
.docs-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.docs-nav-section {
    margin-bottom: 1.5rem;
}

.docs-nav-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.docs-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav-item {
    margin-bottom: 0.25rem;
}

.docs-nav-item a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.docs-nav-item a:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.docs-nav-item a.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 500;
}

/* Documentation Content */
.docs-content {
    min-width: 0;
}

.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.docs-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.docs-breadcrumb a:hover {
    color: #2563eb;
}

.docs-breadcrumb svg {
    width: 16px;
    height: 16px;
}

.docs-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.docs-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Documentation Article Content */
.docs-article {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
}

.docs-article h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.docs-article h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.docs-article h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.docs-article p {
    margin-bottom: 1.25rem;
}

.docs-article ul, .docs-article ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.docs-article li {
    margin-bottom: 0.5rem;
}

.docs-article code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}

.docs-article pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.25rem 0;
}

.docs-article pre code {
    background: transparent;
    padding: 0;
}

/* Callout Boxes */
.callout {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 0.75rem;
}

.callout-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.callout.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.callout.info .callout-icon { color: #2563eb; }

.callout.warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
}

.callout.warning .callout-icon { color: #d97706; }

.callout.danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.callout.danger .callout-icon { color: #dc2626; }

.callout.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.callout.success .callout-icon { color: #16a34a; }

/* Steps */
.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.steps li {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 1.5rem;
    border-left: 2px solid #e5e7eb;
    margin-left: 0.75rem;
}

.steps li:last-child {
    border-left: 2px solid transparent;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: -0.85rem;
    width: 1.5rem;
    height: 1.5rem;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Article Footer */
.docs-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.docs-footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.docs-footer-link {
    display: block;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.docs-footer-link:hover {
    background: #f3f4f6;
}

.docs-footer-link-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.docs-footer-link-title {
    font-weight: 500;
    color: #2563eb;
}

/* Popular Articles */
.popular-articles {
    list-style: none;
    padding: 0;
}

.popular-articles li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.popular-articles li:last-child {
    border-bottom: none;
}

.popular-articles a {
    color: #4b5563;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popular-articles a:hover {
    color: #2563eb;
}

.popular-articles svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

/* Contact Support Card */
.contact-support-card {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    border-radius: 1rem;
    padding: 2rem;
    color: white;
    text-align: center;
    margin-top: 2rem;
}

.contact-support-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-support-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.contact-support-card .btn {
    background: white;
    color: #0f766e;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .support-header h1 {
        font-size: 1.75rem;
    }

    .support-categories {
        grid-template-columns: 1fr;
    }

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

    .docs-footer-nav {
        grid-template-columns: 1fr;
    }
}
