/**
 * Astrobility Educational Pages Stylesheet
 * Shared styles for all philosophy, hub, and educational content pages
 * Version: 1.0
 */

/* ============================================================================
   BASE PAGE STRUCTURE
   ========================================================================== */

.educational-page {
    background: linear-gradient(135deg, var(--astro-deep-space) 0%, #1e1b4b 50%, #312e81 100%);
    min-height: 100vh;
    color: var(--text-secondary);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ============================================================================
   HERO SECTIONS
   ========================================================================== */

.hero-section {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: white;
    margin-bottom: 25px;
    font-weight: 800;
    font-family: 'Cinzel', serif;
}

.hero-section p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: #c4b5fd;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================================
   TYPOGRAPHY
   ========================================================================== */

.section-title {
    font-size: clamp(1.8rem, 4vw, 2rem);
    color: var(--astro-cosmic-purple-light);
    margin: 60px 0 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(167, 139, 250, 0.3);
    font-family: 'Cinzel', serif;
}

.prose {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 2;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose strong {
    color: var(--astro-gold);
    font-weight: 600;
}

.prose em {
    color: var(--astro-cosmic-purple-light);
}

/* ============================================================================
   QUOTE BLOCKS
   ========================================================================== */

.quote-block {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(124, 58, 237, 0.1));
    border-left: 4px solid var(--astro-cosmic-purple);
    padding: 2rem;
    margin: 3rem 0;
    font-size: 1.3rem;
    font-style: italic;
    color: #e2e8f0;
    border-radius: 0 8px 8px 0;
}

/* ============================================================================
   PILLAR VISUAL SYSTEM
   ========================================================================== */

.pillar-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-top: 50px;
}

.pillar {
    width: 60px;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 5px 5px 0 0;
    text-align: center;
    padding-top: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.pillar-1 { height: 100px; }
.pillar-2 { height: 100px; }
.pillar-3 { height: 100px; }
.pillar-4 { height: 100px; }
.pillar-5 { 
    height: 140px; 
    background: linear-gradient(180deg, var(--astro-cosmic-purple-light) 0%, #7c3aed 100%);
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.5);
}

/* ============================================================================
   CARD GRIDS
   ========================================================================== */

.pillar-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pillar-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.pillar-card:hover {
    border-color: rgba(167, 139, 250, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(167, 139, 250, 0.2);
}

.pillar-card.fifth {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(167, 139, 250, 0.1));
    border: 2px solid var(--astro-cosmic-purple);
}

.pillar-card h3 {
    color: var(--astro-gold);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.pillar-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================================================
   FEATURE/SYSTEM CARDS
   ========================================================================== */

.feature-grid,
.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card,
.system-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover,
.system-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.feature-icon,
.system-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3,
.system-card h3 {
    color: var(--astro-nebula);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p,
.system-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================================
   PRINCIPLE/LIST STYLES
   ========================================================================== */

.principle-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.principle-list li {
    background: rgba(30, 41, 59, 0.4);
    border-left: 4px solid var(--astro-cosmic-purple);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.principle-list strong {
    display: block;
    color: var(--astro-gold);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.principle-list span {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================================================
   CTA SECTIONS
   ========================================================================== */

.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(167, 139, 250, 0.1));
    border-radius: 16px;
    margin: 4rem 0;
    border: 2px solid rgba(167, 139, 250, 0.3);
}

.cta-section h2 {
    color: var(--astro-gold);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(167, 139, 250, 0.4);
}

.cta-button-secondary {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

/* ============================================================================
   COMPARISON/TABLE SECTIONS
   ========================================================================== */

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.comparison-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 12px;
    padding: 2rem;
}

.comparison-card h3 {
    color: var(--astro-gold);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Cinzel', serif;
}

.comparison-list {
    list-style: none;
    padding: 0;
}

.comparison-list li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-list li::before {
    content: '✓';
    color: var(--astro-emerald);
    margin-right: 0.75rem;
    font-weight: bold;
}

/* ============================================================================
   PHILOSOPHY BOX
   ========================================================================== */

.philosophy-box {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(167, 139, 250, 0.15));
    border: 2px solid var(--astro-cosmic-purple);
    border-radius: 16px;
    padding: 3rem;
    margin: 4rem 0;
    text-align: center;
}

.philosophy-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.philosophy-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--astro-gold);
    margin-bottom: 2rem;
}

.philosophy-text {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 2;
}

.philosophy-text p {
    margin-bottom: 1.5rem;
}

.philosophy-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ============================================================================
   RESEARCH/BLOG CARDS
   ========================================================================== */

.research-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.research-card,
.blog-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.research-card:hover,
.blog-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.research-icon,
.blog-thumbnail {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.research-title,
.blog-title {
    color: var(--astro-nebula);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.research-desc,
.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.research-link,
.blog-link {
    color: var(--astro-cosmic-purple-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.research-link:hover,
.blog-link:hover {
    color: var(--astro-gold);
}

/* ============================================================================
   INTRO/HIGHLIGHT SECTIONS
   ========================================================================== */

.intro-section,
.highlight-section {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.1));
    border-left: 4px solid var(--astro-gold);
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.intro-section p,
.highlight-section p {
    color: #fef3c7;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.intro-section p:last-child,
.highlight-section p:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   FOOTER SECTIONS
   ========================================================================== */

.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(167, 139, 250, 0.2);
    text-align: center;
    color: var(--text-muted);
}

.footer p {
    margin: 0.5rem 0;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 40px 15px;
    }
    
    .pillar-breakdown {
        grid-template-columns: 1fr;
    }
    
    .pillar-card.fifth {
        grid-column: 1;
    }
    
    .philosophy-box {
        padding: 2rem 1.5rem;
    }
    
    .philosophy-links {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .pillar-visual {
        gap: 10px;
    }
    
    .pillar {
        width: 45px;
        font-size: 1.2rem;
    }
    
    .prose {
        font-size: 1rem;
    }
    
    .quote-block {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--astro-gold);
}

.text-purple {
    color: var(--astro-cosmic-purple-light);
}

.text-blue {
    color: var(--astro-nebula);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.mt-xl {
    margin-top: var(--space-xl);
}