/* ============================================
   H0PE.AI - ENHANCED BLOG STYLES
   Emotionally Engaging Scientific Optimism
   ============================================ */

/* Aurora Borealis Animated Background */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.article-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(123, 47, 247, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 215, 0, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 45, 146, 0.05) 0%, transparent 40%);
    animation: auroraFlow 25s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes auroraFlow {
    0%, 100% { 
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
    }
    33% { 
        opacity: 1;
        transform: scale(1.1) rotate(1deg);
    }
    66% { 
        opacity: 0.8;
        transform: scale(0.95) rotate(-1deg);
    }
}

/* Article Header with Hope Gradient */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(123, 47, 247, 0.05) 100%);
    border-radius: 24px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.article-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: headerGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes headerGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #00d4ff 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.article-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Content Headings with Animation */
.article-content h2 {
    color: #00d4ff;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid;
    border-image: linear-gradient(180deg, #00d4ff, #7b2ff7) 1;
    transition: all 0.3s ease;
}

.article-content h2:hover {
    padding-left: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.article-content h3 {
    color: #ffd700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

/* Glassmorphism Key Insight Box */
.key-insight {
    background: rgba(0, 212, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-left: 4px solid #00d4ff;
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 4px 20px 20px 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.key-insight::before {
    content: '💡';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 2.5rem;
    opacity: 0.3;
    transition: all 0.4s ease;
}

.key-insight:hover {
    transform: translateX(8px);
    border-left-width: 6px;
    box-shadow: 
        0 10px 40px rgba(0, 212, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.key-insight:hover::before {
    opacity: 0.6;
    transform: scale(1.2) rotate(10deg);
}

/* Bioluminescent Research Box */
.research-box {
    background: rgba(123, 47, 247, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(123, 47, 247, 0.2);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.research-box::before {
    content: '📊';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 2rem;
    background: #0a0a0f;
    padding: 0 0.5rem;
}

.research-box:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 60px rgba(123, 47, 247, 0.2),
        0 0 0 1px rgba(123, 47, 247, 0.3);
}

/* Strategy Cards with Organic Shape */
.strategy-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px 8px 24px 8px; /* Organic asymmetry */
    padding: 2rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.strategy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #ffd700, #ff2d92);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.strategy-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.strategy-card h4 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Framework Items with Pulse Animation */
.framework-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    transition: all 0.4s ease;
    position: relative;
}

.framework-item::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, #00d4ff, #7b2ff7);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.framework-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(10px);
}

.framework-item:hover::after {
    opacity: 0.3;
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.framework-item strong {
    color: #00d4ff;
    font-size: 1.1rem;
}

/* Stat Highlights with Counter Animation */
.stat-highlight {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: statPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes statPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* CTA Section with Hope Glow */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(123, 47, 247, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    animation: ctaGlow 10s linear infinite;
}

@keyframes ctaGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

.cta-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-section p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.cta-section .btn {
    display: inline-block;
    background: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.cta-section .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

/* Back Link with Arrow Animation */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #00d4ff;
    transform: translateX(-5px);
}

/* Leader Profile Section */
.leader-framework {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

/* Quote Blocks */
blockquote {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.02) 100%);
    border-left: 4px solid #ffd700;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 16px 16px 0;
    font-style: italic;
    position: relative;
}

blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    color: rgba(255, 215, 0, 0.2);
    font-family: Georgia, serif;
}

/* Lists with Custom Bullets */
.article-content ul {
    list-style: none;
    padding-left: 0;
}

.article-content ul li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.article-content ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-size: 0.8rem;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.75rem;
    }

    .article-content h2 {
        font-size: 1.4rem;
    }

    .strategy-card,
    .key-insight,
    .research-box {
        padding: 1.5rem;
    }

    .stat-highlight {
        font-size: 2rem;
    }
}



/* ============================================
   BLOG LISTING PAGE STYLES
   Modern Card Grid with Aurora Effects
   ============================================ */

/* Blog Header Hero Section */
.blog-header {
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(123, 47, 247, 0.05) 50%, rgba(255, 215, 0, 0.03) 100%);
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 0%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(123, 47, 247, 0.1) 0%, transparent 50%);
    animation: heroAurora 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroAurora {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.blog-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 40%, #ffd700 80%, #ff2d92 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.blog-header p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Blog Grid Container */
.blog-grid {
    padding: 4rem 2rem 6rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.02) 100%);
}

.blog-grid .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Articles Grid Layout */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Individual Article Card */
.article-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #7b2ff7, #ffd700);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.article-card-content {
    padding: 2rem;
}

/* Category Badge */
.article-category {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(123, 47, 247, 0.15) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00d4ff;
    margin-bottom: 1rem;
}

/* Article Title */
.article-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.article-card h2 a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.article-card:hover h2 a {
    -webkit-text-fill-color: transparent;
}

/* Article Description */
.article-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Article Meta Info */
.article-card .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.article-card .article-meta .date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-card .article-meta .date::before {
    content: '📅';
    font-size: 0.9rem;
}

.article-card .article-meta .read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-card .article-meta .read-time::before {
    content: '⏱️';
    font-size: 0.9rem;
}

/* Featured Article (First Card) */
.articles-grid .article-card:first-child {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(123, 47, 247, 0.05) 100%);
    border-color: rgba(0, 212, 255, 0.2);
}

.articles-grid .article-card:first-child .article-card-content {
    padding: 3rem;
}

.articles-grid .article-card:first-child h2 {
    font-size: 1.75rem;
}

.articles-grid .article-card:first-child .article-category::after {
    content: ' • FEATURED';
    color: #ffd700;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-header {
        padding: 4rem 1.5rem 3rem;
    }

    .blog-header h1 {
        font-size: 2.25rem;
    }

    .blog-header p {
        font-size: 1rem;
    }

    .blog-grid {
        padding: 2rem 1rem 4rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .articles-grid .article-card:first-child {
        grid-column: 1;
    }

    .articles-grid .article-card:first-child .article-card-content {
        padding: 1.5rem;
    }

    .articles-grid .article-card:first-child h2 {
        font-size: 1.35rem;
    }

    .article-card-content {
        padding: 1.5rem;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid .article-card:first-child {
        grid-column: 1 / -1;
    }
}
