/* Documentation Page Styles */
.documentation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.docs-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.docs-icon img {
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.3));
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #8B5CF6 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #9CA3AF;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Documentation Controls */
.docs-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Search Container */
.search-container {
    display: flex;
    justify-content: center;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 0.75rem;
    color: #ffffff;
    font-size: 1rem;
    backdrop-filter: blur(20px);
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.search-input::placeholder {
    color: #9CA3AF;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 9999px;
    color: #9CA3AF;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(20px);
}

.category-btn:hover {
    color: #ffffff;
    border-color: rgba(139, 92, 246, 0.5);
}

.category-btn.active {
    background: #10B981;
    color: #ffffff;
    border-color: #10B981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Documentation Grid */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.doc-card {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #8B5CF6 0%, #10B981 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doc-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.doc-card:hover::before {
    opacity: 1;
}

.doc-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.doc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.5rem;
    color: #10B981;
}

.doc-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 1;
}

.doc-arrow {
    color: #9CA3AF;
    transition: all 0.2s ease;
}

.doc-card:hover .doc-arrow {
    color: #10B981;
    transform: translateX(4px);
}

.doc-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.doc-description {
    color: #9CA3AF;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.doc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-time {
    font-size: 0.875rem;
    color: #10B981;
    font-weight: 500;
}

/* Quick Links */
.quick-links {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(20px);
}

.quick-links h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-link:hover {
    border-color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.quick-link span {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .documentation-container {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .docs-controls {
        gap: 1rem;
    }
    
    .category-filters {
        gap: 0.25rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .docs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .doc-card {
        padding: 1rem;
    }
    
    .doc-header {
        gap: 0.75rem;
    }
    
    .doc-icon {
        width: 32px;
        height: 32px;
    }
    
    .doc-title {
        font-size: 1.125rem;
    }
    
    .quick-links {
        padding: 1.5rem;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .search-input-wrapper {
        max-width: 100%;
    }
    
    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .category-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Animation for doc cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doc-card {
    animation: fadeInUp 0.6s ease forwards;
}

.doc-card:nth-child(1) { animation-delay: 0.1s; }
.doc-card:nth-child(2) { animation-delay: 0.2s; }
.doc-card:nth-child(3) { animation-delay: 0.3s; }
.doc-card:nth-child(4) { animation-delay: 0.4s; }
.doc-card:nth-child(5) { animation-delay: 0.5s; }
.doc-card:nth-child(6) { animation-delay: 0.6s; }
.doc-card:nth-child(7) { animation-delay: 0.7s; }

/* Category-specific styling */
.doc-card[data-category="legal"] .doc-icon {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #8B5CF6;
}

.doc-card[data-category="security"] .doc-icon {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.doc-card[data-category="guide"] .doc-icon {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3B82F6;
}

.doc-card[data-category="trading"] .doc-icon {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #F59E0B;
}

.doc-card[data-category="privacy"] .doc-icon {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10B981;
}