/* ================================
   Documentation PAGE COMPLETE STYLES
   ================================ */

/* CSS Variables */
:root {
    --xw-blue: #003366;
    --xw-accent: #FF6B00;
    --xw-dark: #001a33;
    --xw-light: #f8f9fa;
}


.docs-nav-section {
    background: var(--xw-light);
    padding: 2rem 0;
}

.docs-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.docs-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--xw-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.docs-nav-item:hover {
    background: var(--xw-accent);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
    border-color: var(--xw-accent);
}

.docs-nav-item i {
    color: var(--xw-accent);
    transition: color 0.3s ease;
}

.docs-nav-item:hover i {
    color: white;
}


.docs-section {
    padding: 5rem 0;
}

.steps-container {
    margin-top: 2rem;
}

.step-item {
    display: flex;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--xw-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--xw-blue);
    margin-bottom: 1rem;
}

.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.language-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--xw-accent);
    color: white;
    border-color: var(--xw-accent);
}

.docs-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 2rem;
}

.docs-menu {
    list-style: none;
    padding: 0;
}

.docs-menu li {
    border-bottom: 1px solid #eee;
}

.docs-menu li:last-child {
    border-bottom: none;
}

.docs-menu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--xw-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.docs-menu a:hover {
    color: var(--xw-accent);
    text-decoration: none;
}

.help-box {
    background: var(--xw-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}

.api-sections {
    display: grid;
    gap: 2rem;
}

.api-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.endpoint {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.endpoint-header {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.method {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.method.post {
    background: #28a745;
    color: white;
}

.method.get {
    background: #007bff;
    color: white;
}

.url {
    font-family: monospace;
    background: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.endpoint-details {
    padding: 1.5rem;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.params-table th,
.params-table td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}

.params-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.params-table code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: var(--xw-blue);
}

.status-list {
    list-style: none;
    padding: 0;
}

.status-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.status {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-right: 1rem;
    min-width: 80px;
    text-align: center;
}

.status.queued {
    background: #6c757d;
    color: white;
}

.status.running {
    background: #007bff;
    color: white;
}

.status.completed {
    background: #28a745;
    color: white;
}

.status.failed {
    background: #dc3545;
    color: white;
}

.implementation-content h3 {
    color: var(--xw-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.optimization-list {
    list-style: none;
    padding: 0;
}

.optimization-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--xw-light);
    border-radius: 8px;
    border-left: 4px solid var(--xw-accent);
}

.implementation-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 2rem;
}

.pattern-cards {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pattern-card {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.pattern-card:hover {
    border-color: var(--xw-accent);
    transform: translateY(-2px);
}

.pattern-card i {
    font-size: 2rem;
    color: var(--xw-accent);
    margin-bottom: 1rem;
}

.pattern-card h4 {
    margin-bottom: 0.5rem;
    color: var(--xw-blue);
}

.download-list {
    list-style: none;
    padding: 0;
}

.download-list li {
    border-bottom: 1px solid #eee;
}

.download-list li:last-child {
    border-bottom: none;
}

.download-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--xw-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.download-list a:hover {
    color: var(--xw-accent);
    text-decoration: none;
}

.download-list i {
    font-size: 1.2rem;
    width: 20px;
}

.papers-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.paper-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.paper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.paper-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.journal {
    background: var(--xw-accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.year {
    color: var(--xw-dark);
    opacity: 0.7;
    font-weight: 600;
}

.paper-card h3 {
    color: var(--xw-blue);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.authors {
    color: var(--xw-dark);
    opacity: 0.8;
    font-style: italic;
    margin-bottom: 1rem;
}

.abstract {
    color: var(--xw-dark);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.paper-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.citations {
    color: var(--xw-dark);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-left: auto;
}

.examples-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.example-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.example-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.example-tab.active,
.example-tab:hover {
    background: var(--xw-accent);
    color: white;
}

.example-content {
    padding: 2rem;
}

.example-block h3 {
    color: var(--xw-blue);
    margin-bottom: 1rem;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.support-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.support-card i {
    font-size: 3rem;
    color: var(--xw-accent);
    margin-bottom: 1.5rem;
}

.support-card h3 {
    color: var(--xw-blue);
    margin-bottom: 1rem;
}

.faq-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-section h3 {
    color: var(--xw-blue);
    margin-bottom: 2rem;
    text-align: center;
}

.faq-accordion {
    display: grid;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--xw-accent);
}

.faq-item h4 {
    color: var(--xw-blue);
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.faq-item p {
    color: var(--xw-dark);
    opacity: 0.8;
    margin-bottom: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .docs-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 1rem auto;
    }
    
    .example-tabs {
        flex-direction: column;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .paper-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .citations {
        margin-left: 0;
    }
}