/* PulseChain Blog Styles - Dark Cosmic Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: #0a0e1a;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    opacity: 0.3;
    z-index: -1;
    animation: twinkle 20s linear infinite;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.blog-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: relative;
    text-align: center;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 119, 198, 0.5), transparent);
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #f8fafc;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.blog-header h1 a {
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, #f00, #e619e6, #8000ff, #0080ff, #00eaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.blog-header h1 a:hover {
    transform: scale(1.02);
}

.blog-header p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.blog-header nav a {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 500;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: inline-block;
}

.blog-header nav a:hover {
    color: #f8fafc;
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}

/* Tab Navigation */
.blog-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 0 auto 2rem auto;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    max-width: 1200px;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
}

.blog-tab:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.blog-tab.active {
    color: #f8fafc;
    background: linear-gradient(135deg, #f00, #e619e6, #8000ff, #0080ff, #00eaff);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}


/* Main Content */
main {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.article-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f00, #e619e6, #8000ff, #0080ff, #00eaff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 119, 198, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.article-card h3 {
    margin-bottom: 1rem;
    color: #f8fafc;
    font-size: 1.3rem;
    font-weight: 600;
}

.article-card h3 a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.article-card h3 a:hover {
    color: #06b6d4;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.article-meta {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta::before {
    content: '📅';
    font-size: 0.8rem;
}

.article-description {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-card .read-more {
    align-self: center;
    margin-top: auto;
}

.read-more {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.1);
    margin: 0 auto;
    text-align: center;
}

.read-more:hover {
    color: #f8fafc;
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateX(5px);
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* Section Headings */
.featured-articles h2 {
    text-align: center;
    margin-bottom: 1rem;
}

/* Section Descriptions */
.section-description {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
    text-align: center;
}

/* Blog Info */
.blog-info {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    margin: 0 auto 2rem auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
}

.blog-info h2 {
    color: #f8fafc;
    margin-bottom: 1rem;
    font-size: 2rem;
    text-align: center;
}

.blog-info h3 {
    color: #cbd5e1;
    margin: 1.5rem 0 1rem 0;
    text-align: center;
}

.blog-info p {
    color: #94a3b8;
    line-height: 1.6;
    text-align: center;
}


/* Blog Post */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.post-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.post-meta {
    color: #cbd5e1;
    font-size: 1rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e2e8f0;
    margin-bottom: 3rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: #e2e8f0;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.post-content h2 {
    font-size: 1.8rem;
    color: #ffffff;
}

.post-content h3 {
    font-size: 1.5rem;
    color: #ffffff;
}

.post-content h4 {
    font-size: 1.3rem;
    color: #ffffff;
}

.post-content h5,
.post-content h6 {
    font-size: 1.1rem;
    color: #ffffff;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.post-content strong {
    color: #ffffff;
    font-weight: 600;
}

.post-content a {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: #0891b2;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.post-footer {
    padding-top: 2rem;
    padding-bottom: 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-navigation a {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 2px solid #06b6d4;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(6, 182, 212, 0.1);
    flex: 1;
    min-width: 160px;
    text-align: center;
    white-space: nowrap;
}

.post-navigation a:hover {
    background: rgba(6, 182, 212, 0.2);
    color: #ffffff;
    border-color: #0891b2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

/* Footer */
.blog-footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    padding: 2rem 0;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

.blog-footer .disclaimer {
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.blog-footer .disclaimer strong {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.blog-footer a {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.blog-footer a:hover {
    color: #f8fafc;
    background: rgba(6, 182, 212, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-tabs {
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0.5rem;
        margin: 0 1rem 1.5rem 1rem;
    }
    
    .blog-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-card {
        padding: 1.25rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-navigation a {
        min-width: auto;
        width: 100%;
    }
    
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .blog-footer .disclaimer {
        font-size: 10px;
        line-height: 1.3;
        padding: 0 1rem;
    }
}

/* SEO Optimizations */
h1, h2, h3 {
    font-weight: 600;
}

.article-card h3 {
    font-size: 1.3rem;
}

/* Focus states for accessibility */
a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(255, 119, 198, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(255, 119, 198, 0.2);
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem auto;
    text-align: center;
    backdrop-filter: blur(10px);
    max-width: 600px;
}

.cta-section h3 {
    color: #f8fafc;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.cta-section p {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.cta-button {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button.primary {
    background: linear-gradient(135deg, #f00, #e619e6, #8000ff, #0080ff, #00eaff);
    color: white;
    border: none;
    box-shadow: none;
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: #06b6d4;
    border: 2px solid #06b6d4;
}

.cta-button.secondary:hover {
    background: rgba(6, 182, 212, 0.1);
    color: #f8fafc;
}

/* Loading and Empty States */
.loading-message,
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #94a3b8;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.loading-message p::before {
    content: '⏳ ';
}

.empty-state p::before {
    content: '📝 ';
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .blog-header, .blog-footer {
        background: white;
    }
    
    main {
        background: white;
        box-shadow: none;
    }
}
