/* TeamPlay Blog Post Styles */
/* Extends main styles.css with blog-specific styling */
/* Reuses patterns from /games/detail/game.css */

/* ============================================
   Blog Hero Section
   ============================================ */

.blog-hero {
    position: relative;
    width: 100%;
    margin-top: 80px;
    background: var(--color-white);
}

.blog-hero-image-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 500px;
    overflow: hidden;
}

.blog-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 5, 0.3) 0%,
        rgba(5, 5, 5, 0.7) 100%
    );
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
}

.blog-hero-content {
    text-align: left;
}

.blog-badge {
    display: inline-block;
    background: var(--color-orange-light);
    color: var(--color-black);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.blog-hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 16px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta-separator {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

/* ============================================
   Blog Content Section
   ============================================ */

.blog-content-section {
    padding: 80px 0;
    background: var(--color-white);
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-black);
}

.blog-content p {
    margin-bottom: 24px;
}

.blog-content h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-black);
    margin: 48px 0 20px;
}

.blog-content h3 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-black);
    margin: 40px 0 16px;
}

.blog-content h4 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-black);
    margin: 32px 0 12px;
}

.blog-content ul,
.blog-content ol {
    margin: 24px 0;
    padding-left: 32px;
}

.blog-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.blog-content a {
    color: var(--color-blue);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.blog-content a:hover {
    color: var(--color-green);
}

/* Fix for button styles inside blog content */
.blog-content .btn {
    color: var(--color-white);
    text-decoration: none;
}

.blog-content .btn:hover {
    color: var(--color-white);
}

.blog-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background: var(--color-gray-50);
    border-left: 4px solid var(--color-blue);
    font-style: italic;
    color: var(--color-gray-600);
}

.blog-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
}

.blog-content code {
    background: var(--color-gray-100);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.blog-content pre {
    background: var(--color-gray-100);
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 32px 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
}

.blog-content strong {
    font-weight: 600;
}

.blog-content em {
    font-style: italic;
}

/* ============================================
   Related Posts Section
   ============================================ */

.blog-related-section {
    padding: 80px 0;
    background: var(--color-gray-50);
}

.blog-related-section .section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 48px;
    color: var(--color-black);
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-gray-600);
    margin-bottom: 16px;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--color-gray-600);
}

/* ============================================
   CTA Section
   ============================================ */

.blog-cta-section {
    padding: 80px 0;
    background: var(--color-gray-50);
}

.blog-cta-content {
    text-align: center;
}

.blog-cta-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-black);
    margin-bottom: 16px;
}

.blog-cta-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-gray-600);
    margin-bottom: 40px;
}

.blog-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Error State
   ============================================ */

.error-state {
    padding: 120px 20px;
    text-align: center;
}

.error-state h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 16px;
}

.error-state p {
    font-size: 18px;
    color: var(--color-gray-600);
    margin-bottom: 32px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .blog-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero-image-container {
        height: 400px;
    }

    .blog-hero-title {
        font-size: 40px;
    }

    .blog-hero-overlay {
        padding-bottom: 40px;
    }

    .blog-content {
        font-size: 17px;
    }

    .blog-content h2 {
        font-size: 30px;
    }

    .blog-content h3 {
        font-size: 24px;
    }

    .blog-related-grid {
        grid-template-columns: 1fr;
    }

    .blog-cta-title {
        font-size: 36px;
    }

    .blog-cta-subtitle {
        font-size: 18px;
    }

    .blog-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-hero-image-container {
        height: 300px;
    }

    .blog-hero-title {
        font-size: 32px;
    }

    .blog-content {
        font-size: 16px;
    }

    .blog-content h2 {
        font-size: 26px;
    }

    .blog-content h3 {
        font-size: 22px;
    }

    .blog-cta-title {
        font-size: 28px;
    }
}
