/* Estilos específicos para Documentación */

.docs-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.docs-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.docs-hero h1 i {
    margin-right: 16px;
}

.docs-hero p {
    font-size: 20px;
    opacity: 0.9;
}

.docs-section {
    padding: 60px 0 120px;
    background: var(--light-color);
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

/* Sidebar */
.docs-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.sidebar-sticky h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark-color);
}

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-color);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.docs-nav-link i {
    font-size: 16px;
    width: 20px;
}

.docs-nav-link:hover,
.docs-nav-link.active {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Content */
.docs-content {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.doc-article {
    margin-bottom: 80px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
}

.doc-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.doc-article h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.doc-article h2 i {
    color: var(--primary-color);
}

.doc-article h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-top: 32px;
    margin-bottom: 16px;
}

.doc-article h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 24px;
    margin-bottom: 12px;
}

.doc-article p {
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Steps */
.step-card {
    display: flex;
    gap: 24px;
    align-items: start;
    padding: 24px;
    background: var(--light-color);
    border-radius: 12px;
    margin-bottom: 16px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 8px;
}

.step-content p {
    margin-bottom: 0;
}

/* Code Blocks */
.code-block {
    background: #1e293b;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
}

.code-block code {
    color: #e2e8f0;
}

code {
    background: var(--light-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--primary-color);
}

/* Lists */
.docs-list {
    margin: 16px 0;
    padding-left: 24px;
}

.docs-list li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--gray-color);
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 24px 0;
    display: flex;
    gap: 12px;
    align-items: start;
}

.alert i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-info {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.alert-success {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.alert-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

/* Feature Grid Docs */
.feature-grid-docs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.feature-doc-card {
    padding: 24px;
    background: var(--light-color);
    border-radius: 12px;
    text-align: center;
}

.feature-doc-card i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.feature-doc-card h4 {
    margin: 0 0 8px 0;
}

.feature-doc-card p {
    margin: 0;
    font-size: 14px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 24px 0;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.docs-table th,
.docs-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.docs-table thead th {
    background: var(--light-color);
    font-weight: 700;
    color: var(--dark-color);
}

.docs-table tbody tr:hover {
    background: var(--light-color);
}

/* API Endpoints */
.api-endpoint {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--light-color);
    border-radius: 8px;
    margin-bottom: 12px;
}

.method {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

.method.get {
    background: #dbeafe;
    color: #1e40af;
}

.method.post {
    background: #d1fae5;
    color: #065f46;
}

.method.put {
    background: #fef3c7;
    color: #92400e;
}

.method.delete {
    background: #fee2e2;
    color: #991b1b;
}

.endpoint-path {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--dark-color);
}

.api-endpoint p {
    margin: 0;
    color: var(--gray-color);
    font-size: 14px;
}

/* FAQ */
.faq-item {
    padding: 24px;
    background: var(--light-color);
    border-radius: 12px;
    margin-bottom: 16px;
}

.faq-item h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.faq-item p {
    margin: 0;
}

/* Support Section */
.support-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 48px;
    border-radius: 16px;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.support-section h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.support-section p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.support-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

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

    .sidebar-sticky {
        position: static;
    }

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

@media (max-width: 768px) {
    .docs-hero h1 {
        font-size: 32px;
    }

    .docs-content {
        padding: 24px;
    }

    .doc-article h2 {
        font-size: 28px;
    }

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