/*
 * Guides Page Styling
 * Complete styling for the Houtini Guides page with hero section, learning pathways, and content cards
 * Matches the Houtini design system with gradients, glass morphism, and responsive design
 */

/* =============================================================================
   GUIDES HERO SECTION
   ============================================================================= */

.guides-hero {
    background: linear-gradient(135deg, 
        var(--houtini-dark-bg) 0%, 
        var(--houtini-darker-bg) 50%, 
        var(--houtini-darkest-bg) 100%);
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.guides-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, 
        rgba(0, 102, 255, 0.15) 0%, 
        transparent 50%),
        radial-gradient(circle at 70% 80%, 
        rgba(0, 204, 255, 0.1) 0%, 
        transparent 50%);
    z-index: 1;
}

.guides-hero .container {
    position: relative;
    z-index: 2;
}

.guides-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.guides-title {
    font-family: var(--houtini-font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, 
        var(--houtini-primary) 0%, 
        var(--houtini-secondary) 50%, 
        var(--houtini-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.guides-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================================================
   CALL-TO-ACTION BUTTONS
   ============================================================================= */

.guides-cta-section {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-guides-primary,
.btn-guides-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
}

.btn-guides-primary {
    background: linear-gradient(135deg, var(--houtini-primary), var(--houtini-secondary));
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.3);
}

.btn-guides-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.4);
    color: white;
}

.btn-guides-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-guides-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
}

.btn-guides-primary i,
.btn-guides-secondary i {
    transition: transform 0.3s ease;
}

.btn-guides-primary:hover i,
.btn-guides-secondary:hover i {
    transform: translateX(4px);
}

/* =============================================================================
   STATISTICS SECTION
   ============================================================================= */

.guides-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--houtini-primary), var(--houtini-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
}

/* =============================================================================
   LEARNING PATHWAYS SECTION
   ============================================================================= */

.learning-pathways {
    padding: 100px 0;
    background: var(--houtini-light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-family: var(--houtini-font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--houtini-text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--houtini-text-secondary);
    line-height: 1.6;
}

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

/* =============================================================================
   PATHWAY CARDS
   ============================================================================= */

.pathway-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.pathway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--houtini-primary), var(--houtini-secondary));
}

.pathway-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.pathway-card.pathway-quickstart::before {
    background: linear-gradient(90deg, #10B981, #059669);
}

.pathway-card.pathway-analysis::before {
    background: linear-gradient(90deg, var(--houtini-primary), var(--houtini-secondary));
}

.pathway-card.pathway-generation::before {
    background: linear-gradient(90deg, #8B5CF6, #A855F7);
}

.pathway-card.pathway-creative::before {
    background: linear-gradient(90deg, #F59E0B, #EF4444);
}

.pathway-card.pathway-wordpress::before {
    background: linear-gradient(90deg, #0073AA, #005A87);
}

.pathway-card.pathway-workflows::before {
    background: linear-gradient(90deg, #6366F1, #8B5CF6);
}

.pathway-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.pathway-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--houtini-primary), var(--houtini-secondary));
    color: white;
    font-size: 1.5rem;
}

.pathway-quickstart .pathway-icon {
    background: linear-gradient(135deg, #10B981, #059669);
}

.pathway-generation .pathway-icon {
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
}

.pathway-creative .pathway-icon {
    background: linear-gradient(135deg, #F59E0B, #EF4444);
}

.pathway-wordpress .pathway-icon {
    background: linear-gradient(135deg, #0073AA, #005A87);
}

.pathway-workflows .pathway-icon {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
}

.pathway-badge {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pathway-title {
    font-family: var(--houtini-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--houtini-text-primary);
    margin-bottom: 1rem;
}

.pathway-description {
    color: var(--houtini-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.pathway-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.difficulty-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.difficulty-beginner {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.difficulty-intermediate {
    background: rgba(0, 102, 255, 0.1);
    color: var(--houtini-primary);
}

.difficulty-advanced {
    background: rgba(249, 115, 22, 0.1);
    color: #EA580C;
}

.difficulty-expert {
    background: rgba(139, 92, 246, 0.1);
    color: #7C3AED;
}

.time-estimate {
    color: var(--houtini-text-secondary);
    font-size: 0.9rem;
}

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

.pathway-link:hover {
    color: var(--houtini-secondary);
    transform: translateX(4px);
}

.pathway-link i {
    transition: transform 0.3s ease;
}

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

/* =============================================================================
   LATEST GUIDES SECTION
   ============================================================================= */

.latest-guides-section {
    padding: 100px 0;
    background: var(--houtini-darker-bg);
}

.latest-guides-section .section-header h2 {
    color: white;
}

.latest-guides-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

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

.guide-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.guide-title a {
    font-family: var(--houtini-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
}

.guide-title a:hover {
    color: var(--houtini-secondary);
}

.guide-excerpt p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.guide-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--houtini-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.guide-read-more:hover {
    color: white;
    transform: translateX(4px);
}

.guide-read-more i {
    transition: transform 0.3s ease;
}

.guide-read-more:hover i {
    transform: translateX(4px);
}

/* =============================================================================
   DARK MODE COMPATIBILITY
   ============================================================================= */

body.dark .learning-pathways {
    background: var(--houtini-darker-bg);
}

body.dark .pathway-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

body.dark .pathway-title {
    color: white;
}

body.dark .pathway-description {
    color: rgba(255, 255, 255, 0.8);
}

body.dark .section-header h2 {
    color: white;
}

body.dark .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
    .guides-hero {
        padding: 80px 0 60px;
        min-height: 50vh;
    }
    
    .guides-title {
        font-size: 2.5rem;
    }
    
    .guides-subtitle {
        font-size: 1.1rem;
    }
    
    .guides-cta-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-guides-primary,
    .btn-guides-secondary {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .guides-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .learning-pathways {
        padding: 60px 0;
    }
    
    .pathways-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pathway-card {
        padding: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .latest-guides-section {
        padding: 60px 0;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .guides-hero {
        padding: 60px 0 40px;
    }
    
    .guides-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .pathway-visual {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* =============================================================================
   PERFORMANCE OPTIMIZATIONS
   ============================================================================= */

.guides-hero,
.pathway-card,
.guide-card {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .pathway-card,
    .guide-card,
    .btn-guides-primary,
    .btn-guides-secondary,
    .pathway-link,
    .guide-read-more {
        transition: none;
    }
    
    .guides-hero::before {
        animation: none;
    }
}