/* Article Page Styles - Redesigned */

.article-page {
    min-height: 100vh;
    background: var(--dark-bg);
    padding: 120px 20px 60px;
    /* More top padding since no Hero */
}

/* Article Container ( The Card ) */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: var(--light-bg);
    /* Use the card background color */
    border: 1px solid rgba(255, 105, 180, 0.2);
    /* Subtle pink border */
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    /* Deep shadow */
    position: relative;
    z-index: 10;
}

/* Loading & Error States */
.loading-state,
.error-state {
    text-align: center;
    padding: 100px 20px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--primary-pink);
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

/* Featured Image inside Container */
.article-featured-image-container {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    max-height: 400px;
    /* Limit height */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.article-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Header */
.article-header-page {
    margin-bottom: 30px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.article-header-page h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

.article-subtitle-page {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 20px;
    font-style: italic;
}

/* Metadata Bar */
.article-meta-bar-page {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
}

/* Content */
.article-content-page {
    font-size: 18px;
    line-height: 1.8;
    color: #e0e0e0;
    /* Slightly brighter text */
}

.article-content-page h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 40px 0 20px 0;
    padding-left: 15px;
    border-left: 4px solid var(--primary-pink);
}

.article-content-page h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 30px 0 15px 0;
}

.article-content-page p {
    margin: 0 0 20px 0;
}

.article-content-page ul,
.article-content-page ol {
    margin: 20px 0;
    padding-left: 20px;
}

.article-content-page li {
    margin: 8px 0;
}

.article-content-page blockquote {
    border-left: 4px solid var(--accent-violet);
    padding: 15px 25px;
    margin: 30px 0;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-primary);
}

.article-content-page img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Tags Section */
.article-tags-section {
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tag {
    display: inline-block;
    background: rgba(255, 105, 180, 0.1);
    color: var(--primary-pink);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    margin: 0 10px 10px 0;
    transition: all 0.3s;
    text-decoration: none;
}

.tag:hover {
    background: var(--primary-pink);
    color: var(--light-bg);
}

/* Share Buttons */
.article-share {
    margin-top: 40px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    text-align: center;
}

.article-share h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 18px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.facebook {
    background: #4267B2;
}

.share-btn.copy {
    background: var(--primary-pink);
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Related Articles */
.related-articles-section {
    margin-top: 60px;
}

.related-articles-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-card-link {
    text-decoration: none;
}

.related-card {
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-pink);
}

.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-card h4 {
    color: var(--text-primary);
    padding: 15px;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .article-container {
        padding: 20px;
        width: 100%;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .article-page {
        padding-top: 80px;
        padding-left: 0;
        padding-right: 0;
    }

    .article-header-page h1 {
        font-size: 32px;
    }
}
/* Game Version Badge - ACF Field */
.game-version-badge {
    display: inline-block;
    background: rgba(138, 43, 226, 0.15); /* Violet transparent bg */
    border: 1px solid var(--accent-violet);
    color: var(--accent-violet);
    font-weight: 700;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    margin-top: 10px;
    vertical-align: middle;
    transition: all 0.3s;
}

/* Hover effect for fun */
.game-version-badge:hover {
    background: var(--accent-violet);
    color: #fff;
    cursor: default;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.4);
}

/* Patch Importance Badges */
.game-version-badge.patch-type-minor {
    border-color: #00BFFF;
    color: #00BFFF;
    background: rgba(0, 191, 255, 0.15);
    box-shadow: 0 0 5px rgba(0, 191, 255, 0.2);
}

.game-version-badge.patch-type-major {
    border-color: #FFD700;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
}

.game-version-badge.patch-type-hotfix {
    border-color: #FF4500;
    color: #FF4500;
    background: rgba(255, 69, 0, 0.15);
    animation: hotfix-pulse 1.5s infinite;
    text-transform: uppercase;
    font-weight: 800;
}

@keyframes hotfix-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 69, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 69, 0, 0);
    }
}
