﻿/* Documentation Styles */

body {
    background: var(--bg-black);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.12), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(30, 58, 138, 0.12), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.doc-hero {
    background: transparent;
    padding: 100px 20px 60px;
    text-align: center;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.doc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.15), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(30, 58, 138, 0.15), transparent 50%);
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.doc-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 20px 0;
    position: relative;
    z-index: 1;
}

.doc-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin: 0;
    position: relative;
    z-index: 1;
}

.doc-section {
    padding: 60px 20px;
    background: transparent;
    position: relative;
}

.doc-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
}

/* Sidebar */
.doc-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    align-self: flex-start;
}

.doc-sidebar-content {
    background: var(--bg-darker);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 25px;
}

.doc-sidebar-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 20px 0;
}

.doc-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-nav li {
    margin-bottom: 8px;
}

.doc-nav-link {
    display: block;
    padding: 12px 15px;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.doc-nav-link:hover,
.doc-nav-link.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    transform: translateX(5px);
}

/* Main Content */
.doc-main {
    max-width: 900px;
}

.doc-article {
    margin-bottom: 80px;
    scroll-margin-top: 100px;
}

.doc-article h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(59, 130, 246, 0.3);
}

.doc-article h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 30px 0 15px 0;
}

.doc-article p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin: 0 0 20px 0;
}

.doc-article ol,
.doc-article ul {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin: 0 0 20px 0;
    padding-left: 30px;
}

.doc-article li {
    margin-bottom: 10px;
}

/* Steps */
.doc-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.doc-step {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, var(--bg-darker) 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.doc-step:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateX(5px);
}

.doc-step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.doc-step-content h3 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}

.doc-step-content p {
    margin: 0;
}

/* Plans */
.doc-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.doc-plan-card {
    background: var(--bg-darker);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.doc-plan-card.featured {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

.doc-plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.doc-plan-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.doc-plan-card h3 {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}

.doc-plan-price {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.doc-plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-plan-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
}

.doc-plan-card li:last-child {
    border-bottom: none;
}

/* Info Boxes */
.doc-info-box,
.doc-warning-box,
.doc-success-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
}

.doc-info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.doc-warning-box {
    background: rgba(251, 191, 36, 0.1);
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.doc-success-box {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
}

.doc-info-box svg {
    width: 28px;
    height: 28px;
    color: #3b82f6;
    flex-shrink: 0;
}

.doc-warning-box svg {
    width: 28px;
    height: 28px;
    color: #fbbf24;
    flex-shrink: 0;
}

.doc-success-box svg {
    width: 28px;
    height: 28px;
    color: #22c55e;
    flex-shrink: 0;
}

.doc-info-box strong,
.doc-warning-box strong,
.doc-success-box strong {
    display: block;
    color: var(--text-white);
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.doc-info-box p,
.doc-warning-box p,
.doc-success-box p {
    margin: 0;
}

/* Code Block */
.doc-code-block {
    background: var(--bg-darker);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin: 25px 0;
}

.doc-code-header {
    background: rgba(59, 130, 246, 0.1);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    font-weight: 600;
    color: var(--text-white);
}

.doc-code-content {
    padding: 20px;
}

.doc-code-content p {
    margin: 10px 0;
    font-family: 'Courier New', monospace;
}

/* Feature List */
.doc-feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.doc-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-gray);
}

.doc-feature-list svg {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

/* Support Grid */
.doc-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.doc-support-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, var(--bg-darker) 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.doc-support-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.doc-support-card svg {
    width: 60px;
    height: 60px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.doc-support-card h3 {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
}

.doc-support-card p {
    margin: 0 0 20px 0;
}

.doc-support-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.doc-support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.5);
}

/* FAQ */
.doc-faq {
    margin: 30px 0;
}

.doc-faq-item {
    background: var(--bg-darker);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.doc-faq-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
}

.doc-faq-item summary {
    padding: 20px;
    font-weight: 600;
    color: var(--text-white);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-faq-item summary::-webkit-details-marker {
    display: none;
}

.doc-faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.doc-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.doc-faq-item p {
    padding: 0 20px 20px;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .doc-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .doc-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .doc-hero-title {
        font-size: 2.5rem;
    }
    
    .doc-article h2 {
        font-size: 2rem;
    }
    
    .doc-plans {
        grid-template-columns: 1fr;
    }
    
    .doc-support-grid {
        grid-template-columns: 1fr;
    }
}


/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 2px solid rgba(59, 130, 246, 0.2);
    padding: 60px 20px 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 20px 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    margin: 0;
}

.footer-section p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

.footer-section a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-gray);
    margin: 0;
}
