/* ========================================
   Blog Styles
   ======================================== */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    padding: 140px 0 60px;
    text-align: center;
}

.blog-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 15px;
}

.blog-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Blog Section */
.blog-section {
    padding: 60px 0;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Blog Card */
.blog-card {
    background: var(--dark-light);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.blog-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card.featured {
    grid-column: span 2;
}

.blog-card.featured .blog-image {
    height: 300px;
}

/* Blog Image */
.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

/* Placeholder for images */
.blog-image::before {
    content: '📺';
    font-size: 4rem;
    position: absolute;
    opacity: 0.3;
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Blog Content */
.blog-content {
    padding: 25px;
}

.blog-content h2,
.blog-content h3 {
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-content h2 {
    font-size: 1.5rem;
}

.blog-content h3 {
    font-size: 1.15rem;
}

.blog-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   Single Blog Post Styles
   ======================================== */

.blog-post-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    padding: 140px 0 60px;
}

.blog-post-header .container {
    max-width: 800px;
}

.blog-post-header .category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.blog-post-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-post-header .post-meta {
    display: flex;
    gap: 25px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

/* Blog Post Content */
.blog-post-content {
    padding: 60px 0;
}

.blog-post-content .container {
    max-width: 800px;
}

.blog-post-content h2 {
    font-size: 1.6rem;
    margin: 40px 0 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
}

.blog-post-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-post-content li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--text-muted);
}

.blog-post-content strong {
    color: var(--text);
}

/* Step Box */
.step-box {
    background: var(--dark-light);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    border-left: 4px solid var(--primary);
}

.step-box h4 {
    color: var(--primary-light);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Info Box */
.info-box {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 20px 25px;
    margin: 25px 0;
}

.info-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.info-box.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

/* Table of Contents */
.toc {
    background: var(--dark-light);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.toc h4 {
    margin-bottom: 15px;
    font-size: 1rem;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s;
}

.toc a:hover {
    color: var(--primary);
}

/* Related Posts */
.related-posts {
    padding: 60px 0;
    background: var(--dark-light);
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary-light);
}

.breadcrumbs span {
    color: var(--text-muted);
    margin: 0 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured {
        grid-column: span 1;
    }
    
    .blog-card.featured .blog-image {
        height: 200px;
    }
    
    .blog-post-header .post-meta {
        flex-direction: column;
        gap: 10px;
    }
}
