/* =============================================
   BLOG PAGE STYLES
   Place this file in: css/blog-page.css
   ============================================= */

/* Blog Container */
.blog-container {
    max-width: 900px;
    margin: 100px auto 50px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(45deg, var(--primary-gold), var(--cyan-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Blog Meta Information */
.blog-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--text-light);
    opacity: 0.8;
}

.blog-date, .blog-reading-time, .blog-category {
    position: relative;
    padding: 0 1rem;
}

.blog-date::before,
.blog-reading-time::before {
    content: '•';
    position: absolute;
    left: -0.5rem;
    color: var(--cyan-glow);
}

.blog-date:first-child::before {
    display: none;
}

.blog-category {
    color: var(--cyan-glow);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Blog Hero Image */
.blog-hero {
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.blog-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Blog Content */
.blog-content {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Typography */
.blog-content h2 {
    font-size: 2rem;
    color: var(--primary-gold);
    margin: 3rem 0 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.blog-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan-glow), transparent);
}

.blog-content h3 {
    font-size: 1.5rem;
    color: var(--cyan-glow);
    margin: 2rem 0 1rem;
}

.blog-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.blog-intro {
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(57, 62, 70, 0.3);
    border-left: 4px solid var(--cyan-glow);
    border-radius: 10px;
}

/* Blog Figure */
.blog-figure {
    margin: 2rem 0;
    text-align: center;
}

.blog-figure img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.blog-figure figcaption {
    margin-top: 1rem;
    font-style: italic;
    color: var(--text-light);
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Blog Lists */
.blog-list {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-list li {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
    position: relative;
}

.blog-list li::before {
    content: '▶';
    position: absolute;
    left: -1.5rem;
    color: var(--cyan-glow);
    font-size: 0.8rem;
}

/* Blog Quote */
.blog-quote {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(155, 89, 182, 0.1);
    border-left: 4px solid var(--purple-glow);
    border-radius: 10px;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    position: relative;
}

.blog-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--purple-glow);
    text-align: right;
    font-style: normal;
}

/* Code Block */
.code-block {
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: var(--cyan-glow);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Video Embed */
.video-embed {
    margin: 2rem 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Blog Tags */
.blog-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.blog-tag {
    padding: 0.5rem 1rem;
    background: rgba(155, 89, 182, 0.2);
    border: 1px solid var(--purple-glow);
    border-radius: 20px;
    color: var(--purple-glow);
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
}

.blog-tag:hover {
    background: var(--purple-glow);
    color: var(--dark-metal);
    transform: translateY(-2px);
}

/* Share Buttons */
.blog-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
}

.blog-share p {
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(57, 62, 70, 0.5);
    border: 1px solid var(--cyan-glow);
    border-radius: 25px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
}

.share-btn:hover {
    background: var(--cyan-glow);
    color: var(--dark-metal);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 240, 0.4);
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(57, 62, 70, 0.3);
    border-radius: 15px;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-gold);
}

.author-info h3 {
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

/* Blog Navigation */
.blog-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

/* Related Posts */
.related-posts {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.related-posts h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 240, 0.3);
    border-color: var(--cyan-glow);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-card h3 {
    color: var(--primary-gold);
    padding: 1.5rem 1.5rem 0.5rem;
}

.related-card p {
    padding: 0 1.5rem 1.5rem;
    opacity: 0.8;
}

/* Blog Footer */
.blog-footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-light);
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        padding: 0 1rem;
    }
    
    .blog-content {
        padding: 2rem 1.5rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-date::before,
    .blog-reading-time::before {
        display: none;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .blog-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}