/* Documentation-specific styles */

.doc-nav {
    position: sticky;
    top: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.doc-nav h3 {
    margin-top: 0;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.doc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-nav li {
    margin: 0.5rem 0;
}

.doc-nav a {
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: block;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.doc-nav a:hover {
    color: var(--primary-blue);
    background: rgba(0, 120, 215, 0.05);
}

.doc-nav a.active {
    color: var(--primary-blue);
    background: rgba(0, 120, 215, 0.1);
    font-weight: 600;
}

.doc-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.doc-section h2 {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.doc-section h3 {
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.doc-section h4 {
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0078D7, #00BFA5);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.keyword-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.keyword-item {
    background: rgba(0, 120, 215, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
    transition: all 0.2s;
}

.keyword-item:hover {
    background: rgba(0, 120, 215, 0.1);
    transform: translateX(5px);
}

.keyword-item code {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1rem;
}

.keyword-item p {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.two-column {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.doc-card {
    background: rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s;
    display: block;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 120, 215, 0.2);
    background: rgba(255, 255, 255, 0.5);
}

.doc-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.doc-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.info-box {
    padding: 1.5rem;
    background: rgba(0, 120, 215, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    margin: 1.5rem 0;
}

.info-box.warning {
    background: rgba(255, 193, 7, 0.05);
    border-left-color: #FFC107;
}

.info-box.success {
    background: rgba(76, 175, 80, 0.05);
    border-left-color: #4CAF50;
}

.info-box h4 {
    margin-top: 0;
    color: var(--primary-blue);
}

.info-box.warning h4 {
    color: #F57C00;
}

.info-box.success h4 {
    color: #388E3C;
}

table.api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    overflow: hidden;
}

table.api-table th {
    background: linear-gradient(135deg, #0078D7, #005A9E);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
}

table.api-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: top;
}

table.api-table tr:hover {
    background: rgba(0, 120, 215, 0.05);
}

table.api-table code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.example-showcase {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.example-item {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.example-header {
    background: linear-gradient(135deg, rgba(0, 120, 215, 0.1), rgba(0, 191, 165, 0.1));
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.example-header h3 {
    margin: 0;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.example-header p {
    margin: 0.5rem 0 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.example-content {
    padding: 0;
}

@media (max-width: 968px) {
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .doc-nav {
        position: relative;
        top: 0;
        max-height: none;
    }
    
    .keyword-list {
        grid-template-columns: 1fr;
    }
    
    .doc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .doc-section h2 {
        font-size: 1.5rem;
    }
    
    .doc-section h3 {
        font-size: 1.2rem;
    }
}
