/* ========================================
   DOCUMENTATION ARCHIVE PAGE STYLES
   Based on: https://houtini.ai/docs-index.html
   ======================================== */

/* Documentation Archive Main Container */
.houtini-docs-archive {
    background: var(--houtini-background-light, #fafafa);
    min-height: 100vh;
    padding-top: 0;
}

/* Documentation Hero Section */
.docs-hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(0, 102, 255, 0.02) 0%, 
        rgba(0, 204, 136, 0.02) 100%);
}

.docs-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.docs-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem 0;
    background: linear-gradient(135deg, 
        var(--houtini-primary, #0066FF) 0%, 
        var(--houtini-secondary, #00CC88) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback */
}

.docs-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--bs-secondary-color, #666666);
    margin: 0 auto;
    max-width: 600px;
}

/* Pathway Section */
.pathway-section {
    padding: 0 0 80px;
}

.pathway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Pathway Card Base Styling */
.pathway-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.pathway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 102, 255, 0.02) 0%, 
        rgba(0, 204, 136, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.pathway-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 102, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 102, 255, 0.2);
}

.pathway-card:hover::before {
    opacity: 1;
}

/* Pathway Card Header */
.pathway-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.pathway-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        var(--houtini-primary, #0066FF) 0%, 
        var(--houtini-secondary, #00CC88) 50%,
        var(--houtini-cyan, #00CCFF) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.25);
    transition: all 0.3s ease;
}

.pathway-card:hover .pathway-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.35);
}

.pathway-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bs-dark, #212529);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.pathway-count {
    display: inline-block;
    background: linear-gradient(135deg, 
        rgba(0, 102, 255, 0.1) 0%, 
        rgba(0, 204, 136, 0.1) 100%);
    color: var(--houtini-primary, #0066FF);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

/* Pathway Content */
.pathway-content {
    text-align: left;
}

.pathway-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--bs-secondary-color, #666666);
    margin-bottom: 1.5rem;
}

.pathway-features {
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--bs-body-color, #333333);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-item {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace;
    background: rgba(0, 102, 255, 0.1);
    color: var(--houtini-primary, #0066FF);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.75rem;
    white-space: nowrap;
}

/* Pathway Footer */
.pathway-footer {
    margin-top: auto;
}

.pathway-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, 
        var(--houtini-primary, #0066FF) 0%, 
        var(--houtini-secondary, #00CC88) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
    width: 100%;
    justify-content: center;
}

.pathway-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.35);
    color: white;
    text-decoration: none;
}

.pathway-btn:hover i {
    transform: translateX(4px);
}

.pathway-btn i {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

/* Category-Specific Icon Colors */
.pathway-card[data-category="analysis"] .pathway-icon {
    background: linear-gradient(135deg, #0066FF 0%, #4A90E2 100%);
}

.pathway-card[data-category="generation"] .pathway-icon {
    background: linear-gradient(135deg, #00CC88 0%, #2ECC71 100%);
}

.pathway-card[data-category="creative"] .pathway-icon {
    background: linear-gradient(135deg, #FF69B4 0%, #E91E63 100%);
}

.pathway-card[data-category="system"] .pathway-icon {
    background: linear-gradient(135deg, #8A2BE2 0%, #9B59B6 100%);
}

/* Recent Documentation Section */
.recent-docs {
    padding: 60px 0 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--bs-dark, #212529);
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--bs-secondary-color, #666666);
    max-width: 600px;
    margin: 0 auto;
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.recent-post-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.recent-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 102, 255, 0.2);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.post-category {
    background: linear-gradient(135deg, 
        var(--houtini-primary, #0066FF) 0%, 
        var(--houtini-secondary, #00CC88) 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-date {
    color: var(--bs-secondary-color, #666666);
    font-weight: 500;
}

.post-title {
    margin-bottom: 0.75rem;
}

.post-title a {
    color: var(--bs-dark, #212529);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--houtini-primary, #0066FF);
}

.post-excerpt {
    color: var(--bs-secondary-color, #666666);
    line-height: 1.6;
    margin: 0;
}

/* Dark Theme Support */
.dark-theme .houtini-docs-archive {
    background: var(--houtini-background-dark, #0A0A0A);
}

.dark-theme .pathway-card,
.dark-theme .recent-post-card {
    background: rgba(26, 26, 26, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .docs-title,
.dark-theme .pathway-title,
.dark-theme .section-header h2,
.dark-theme .post-title a {
    color: var(--houtini-text-primary-dark, #FFFFFF);
}

.dark-theme .docs-subtitle,
.dark-theme .pathway-description,
.dark-theme .section-header p,
.dark-theme .post-excerpt,
.dark-theme .post-date {
    color: var(--houtini-text-secondary-dark, #999999);
}

/* Responsive Design */
@media (max-width: 768px) {
    .docs-hero {
        padding: 80px 0 60px;
    }
    
    .docs-title {
        font-size: 2.5rem;
    }
    
    .pathway-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .pathway-card {
        padding: 1.5rem;
    }
    
    .pathway-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .pathway-title {
        font-size: 1.25rem;
    }
    
    .recent-posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .recent-post-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .pathway-card {
        padding: 1.25rem;
    }
    
    .pathway-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .feature-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .feature-item {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
}

/* Animation Enhancements */
@keyframes pathwayFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(1deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(-1px) rotate(-1deg); }
}

.pathway-card {
    animation: pathwayFloat 6s ease-in-out infinite;
}

.pathway-card:nth-child(2) {
    animation-delay: -1.5s;
}

.pathway-card:nth-child(3) {
    animation-delay: -3s;
}

.pathway-card:nth-child(4) {
    animation-delay: -4.5s;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .pathway-card {
        animation: none;
    }
    
    .pathway-card:hover {
        transform: none;
    }
    
    .pathway-card:hover .pathway-icon {
        transform: none;
    }
}

/* Focus States */
.pathway-btn:focus,
.post-title a:focus {
    outline: 2px solid var(--houtini-primary, #0066FF);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .pathway-card {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
    }
    
    .pathway-btn {
        display: none;
    }
}

/* Getting Started Section */
.getting-started-section {
    padding: 60px 0 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.getting-started-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.getting-started-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.getting-started-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 102, 255, 0.02) 0%, 
        rgba(0, 204, 136, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.getting-started-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 102, 255, 0.2);
}

.getting-started-card:hover::before {
    opacity: 1;
}

.getting-started-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, 
        var(--houtini-secondary, #00CC88) 0%, 
        var(--houtini-primary, #0066FF) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.getting-started-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.25);
}

.getting-started-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bs-dark, #212529);
    margin-bottom: 1rem;
}

.getting-started-card p {
    color: var(--bs-secondary-color, #666666);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--houtini-primary, #0066FF);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--houtini-secondary, #00CC88);
    text-decoration: none;
    gap: 0.75rem;
}

.card-link i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.card-link:hover i {
    transform: translateX(4px);
}

/* Dark theme overrides for getting started section */
.dark-theme .getting-started-card {
    background: rgba(26, 26, 26, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .getting-started-card h3 {
    color: var(--houtini-text-primary-dark, #FFFFFF);
}

.dark-theme .getting-started-card p {
    color: var(--houtini-text-secondary-dark, #999999);
}

/* Responsive adjustments for getting started */
@media (max-width: 768px) {
    .getting-started-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .getting-started-card {
        padding: 1.5rem;
    }
    
    .getting-started-card .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}
