/**
 * Estilos para Página de Documentación - One Geek
 */

/* ===========================
   DOCUMENTATION PAGE LAYOUT
   =========================== */
.documentation-page {
    background: var(--bg-darker);
    color: var(--text-light);
    padding-top: 70px;
    padding-bottom: 0;
}

.documentation-hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(148, 163, 120, 0.2);
}

.documentation-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--sage) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.documentation-hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
}

.documentation-container {
    padding: 2rem 0;
}

.documentation-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===========================
   SIDEBAR NAVIGATION
   =========================== */
.docs-sidebar {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 90px;
    backdrop-filter: blur(10px);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 120, 0.2);
}

.sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--yellow);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.docs-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav-item {
    margin-bottom: 0.5rem;
}

.docs-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.docs-nav-link:hover {
    background: rgba(229, 186, 65, 0.1);
    color: var(--yellow);
}

.docs-nav-item.active .docs-nav-link {
    background: rgba(229, 186, 65, 0.15);
    color: var(--yellow);
    border-left: 3px solid var(--yellow);
}

.docs-nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.docs-nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.coming-soon {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-left: auto;
    padding: 0.25rem 0.5rem;
    background: rgba(148, 163, 120, 0.1);
    border-radius: 4px;
}

.coming-soon-item {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 120, 0.1);
}

/* ===========================
   MAIN CONTENT
   =========================== */
.docs-content {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 120, 0.1);
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    color: var(--text-gray);
    opacity: 0.5;
}

.breadcrumbs a {
    color: var(--yellow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--sage);
}

/* Article */
.docs-article {
    max-width: 900px;
}

.docs-article-header {
    margin-bottom: 2.5rem;
}

.docs-article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.docs-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

/* Sections */
.docs-section {
    margin-bottom: 3rem;
}

.docs-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(229, 186, 65, 0.2);
}

.docs-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Use Cases */
.use-cases-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.use-cases-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(229, 186, 65, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--yellow);
}

.use-cases-list i {
    color: var(--yellow);
    font-size: 1.2rem;
}

/* Feature Details */
.feature-detail {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-detail h3 {
    margin-top: 0;
}

.badge {
    font-size: 1rem;
    margin-left: 0.5rem;
}

.feature-detail ul,
.feature-detail ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.feature-detail li {
    margin: 0.5rem 0;
}

/* Steps */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--yellow);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-dark);
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.step-content ul,
.step-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    color: var(--text-gray);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--sage);
    box-shadow: 0 5px 15px rgba(148, 163, 120, 0.1);
}

.faq-item h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--yellow);
    font-size: 1.1rem;
}

.faq-item p {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Limits Grid */
.limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.limit-item {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-gray);
}

.limit-item i {
    color: var(--yellow);
    font-size: 1.2rem;
}

.limit-item strong {
    color: var(--text-light);
    margin-right: 0.5rem;
}

/* Privacy Section */
.privacy-section {
    margin-bottom: 2rem;
}

.privacy-section h3 {
    margin-bottom: 1rem;
    color: var(--yellow);
}

.check-list,
.cross-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.check-list li,
.cross-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 8px;
    color: var(--text-gray);
    line-height: 1.6;
}

.check-list i {
    color: var(--sage);
    margin-top: 0.25rem;
}

.cross-list i {
    color: var(--orange);
    margin-top: 0.25rem;
}

.privacy-warning {
    background: rgba(209, 133, 92, 0.1);
    border: 1px solid rgba(209, 133, 92, 0.3);
    border-left: 4px solid var(--orange);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.privacy-warning i {
    color: var(--orange);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.privacy-warning p {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.7;
}

/* CTA Buttons */
.docs-cta {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 120, 0.1);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
    color: var(--navy-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(229, 186, 65, 0.3);
}

.btn-secondary {
    background: rgba(229, 186, 65, 0.1);
    color: var(--yellow);
    border: 2px solid var(--yellow);
}

.btn-secondary:hover {
    background: rgba(229, 186, 65, 0.2);
    transform: translateY(-2px);
}

/* Mobile Sidebar Toggle Button */
.mobile-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
    border: none;
    border-radius: 50%;
    color: var(--navy-dark);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(229, 186, 65, 0.4);
    z-index: 998;
    transition: all 0.3s ease;
}

.mobile-sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(229, 186, 65, 0.6);
}

/* Not Found */
.docs-not-found {
    text-align: center;
    padding: 4rem 2rem;
}

.docs-not-found i {
    font-size: 4rem;
    color: var(--orange);
    margin-bottom: 1.5rem;
}

.docs-not-found h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.docs-not-found p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .documentation-layout {
        grid-template-columns: 250px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .documentation-hero h1 {
        font-size: 2rem;
    }

    .documentation-hero p {
        font-size: 1rem;
    }

    .documentation-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    .docs-sidebar {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        z-index: 999;
        transition: left 0.3s ease;
        overflow-y: auto;
        border-radius: 0;
        border-left: none;
    }

    .docs-sidebar.active {
        left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .mobile-sidebar-toggle {
        display: block;
    }

    .docs-content {
        padding: 1.5rem;
    }

    .docs-article-header h1 {
        font-size: 2rem;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .limits-grid {
        grid-template-columns: 1fr;
    }

    .docs-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .documentation-hero {
        padding: 2rem 0;
    }

    .docs-content {
        padding: 1rem;
    }

    .docs-article-header h1 {
        font-size: 1.75rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .use-cases-list {
        grid-template-columns: 1fr;
    }

    .feature-detail {
        padding: 1rem;
    }
}

