/* Documentation styles */
:root {
    --doc-gradient: linear-gradient(135deg, #4169FF, #6C8FFF);
    --doc-shadow: 0 8px 24px rgba(65, 105, 255, 0.12);
    --doc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add/update these styles at the top of the file, after the :root section */
.doc-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.doc-header .badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.doc-header h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.doc-header p {
    color: var(--text-light);
    font-size: 1.25rem;
    margin: 0 auto;
    max-width: 600px;
}

/* Update the existing .documentation styles */
.documentation {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text);
}

/* Main Documentation Page Specific Styles */
.doc-products {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    padding: 0 2rem;
}

.doc-product {
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--doc-shadow);
    transition: var(--doc-transition);
    border: 1px solid rgba(65, 105, 255, 0.1);
    max-width: 800px;
    width: 100%;
}

.doc-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(65, 105, 255, 0.16);
}

.doc-product h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.doc-product > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.product-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.doc-links {
    margin-top: 2.5rem;
    display: grid;
    gap: 1.25rem;
}

.doc-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: var(--doc-transition);
}

.doc-link:hover {
    border-color: var(--primary);
    background: var(--background-light);
    transform: translateX(4px);
}

.doc-link h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.doc-link p {
    color: var(--text-light);
    margin: 0.25rem 0 0;
    font-size: 0.925rem;
}

/* Individual Documentation Pages */
.doc-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.doc-section h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-weight: 600;
}

.doc-section h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.doc-section .icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.doc-section p {
    margin-bottom: 1rem;
    color: var(--text);
}

.doc-section ul,
.doc-section ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.doc-section li {
    margin-bottom: 0.5rem;
}

/* Navigation */
.doc-navigation {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-navigation a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--doc-transition);
}

.doc-navigation .back-link {
    color: var(--text-light);
}

.doc-navigation a:hover {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .documentation {
        padding: 4rem 1.5rem;
    }
    
    .doc-products {
        padding: 0 1rem;
    }
    
    .doc-product {
        padding: 1.5rem;
    }
    
    .doc-navigation {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

.additional-resources {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.additional-resources h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text);
    text-align: center;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.resource-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.resource-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--doc-shadow);
}

.resource-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.resource-icon svg {
    width: 24px;
    height: 24px;
}

.resource-card h3 {
    color: var(--text);
    font-size: 1.125rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.resource-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .additional-resources {
        padding: 3rem 1rem;
    }
}

.site-footer {
    background: var(--surface-card);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-logo .accent {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.social-links a {
    color: var(--text-light);
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--primary);
}

.social-links svg {
    width: 24px;
    height: 24px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h3 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.link-group a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Documentation Content Pages */
.doc-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.doc-content-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.doc-content-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.doc-content-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.doc-content-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.doc-content-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.doc-content-section h2 svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.doc-content-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.doc-content-section ul,
.doc-content-section ol {
    margin: 1.25rem 0;
    padding-left: 1.25rem;
}

.doc-content-section li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 0.75rem;
    position: relative;
}

.doc-content-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.doc-content-section code {
    background: var(--background-light);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: monospace;
    color: var(--text);
}

.doc-content-section pre {
    background: var(--background-light);
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.doc-content-section pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Navigation between pages */
.doc-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.2s;
}

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

.doc-nav-link svg {
    width: 20px;
    height: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .doc-content {
        padding: 7rem 1.5rem 3rem;
    }

    .doc-content-header h1 {
        font-size: 2rem;
    }

    .doc-content-section {
        padding: 1.5rem;
    }
}
