/* ===== GAME PAGE STYLES =====
   Oluşturulan tüm oyun sayfaları bu CSS'i kullanır.
   darker.html'deki inline stiller buraya taşındı.
   ============================================ */

/* Thread Header */
.thread-header-bar {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 10px 10px 0 0; padding: 14px 20px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.thread-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.thread-tag {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px;
    border-radius: 4px; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.thread-title-text { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.thread-meta-bar {
    display: flex; align-items: center; gap: 14px; font-size: 0.78rem; color: var(--text-muted);
}
.thread-meta-bar a { color: var(--red-light); text-decoration: none; font-weight: 600; }
.thread-meta-bar a:hover { text-decoration: underline; }

/* Thread Info Bar */
.thread-info-bar {
    background: rgba(220,38,38,0.06); border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color); padding: 10px 20px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 8px; font-size: 0.8rem; color: var(--text-muted);
}
.thread-version { color: var(--red-light); font-weight: 600; }

/* Post Container */
.post-container {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-top: none; display: flex; min-height: 400px;
}
.post-author {
    width: 160px; flex-shrink: 0; padding: 20px 12px; text-align: center;
    border-right: 1px solid var(--border-color); background: rgba(0,0,0,0.15);
}
.post-avatar {
    width: 100px; height: 100px; border-radius: 8px; overflow: hidden;
    margin: 0 auto 10px; border: 3px solid var(--red-primary);
    box-shadow: 0 0 15px rgba(220,38,38,0.2); position: relative;
}
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-avatar-status {
    position: absolute; bottom: -2px; right: -2px; width: 16px; height: 16px;
    background: #22c55e; border-radius: 50%; border: 3px solid var(--bg-card);
}
.post-author-name { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; }
.post-author-name a { color: var(--red-light); text-decoration: none; }
.post-author-name a:hover { text-decoration: underline; }
.post-author-icons { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; }
.post-author-icons i { font-size: 0.75rem; color: var(--text-muted); }
.post-role-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: linear-gradient(135deg, var(--red-primary), #991b1b); color: #fff;
    padding: 3px 10px; border-radius: 4px; font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.post-role-badge i { font-size: 0.6rem; }

/* Post Content */
.post-content { flex: 1; padding: 0; }
.post-content-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px; border-bottom: 1px solid var(--border-subtle);
    font-size: 0.78rem; color: var(--text-muted);
}
.post-date i { margin-right: 5px; }
.post-actions-top { display: flex; align-items: center; gap: 10px; }
.post-action-icon {
    color: var(--text-muted); font-size: 0.85rem; cursor: pointer; transition: color 0.2s;
}
.post-action-icon:hover { color: var(--red-light); }
.post-body { padding: 24px 24px 30px; }

/* Banner */
.post-banner {
    width: 100%; border-radius: 10px; overflow: hidden; margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.post-banner img { width: 100%; display: block; }

/* Section Headers */
.post-section-title {
    font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700;
    color: var(--text-primary); text-align: center; text-transform: uppercase;
    letter-spacing: 2px; margin: 30px 0 18px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.post-section-title:first-of-type { margin-top: 0; }

/* Description */
.post-desc {
    font-size: 0.88rem; line-height: 1.8; color: var(--text-secondary);
    text-align: center; margin-bottom: 10px;
}

/* Warning */
.post-warning {
    text-align: center; padding: 14px 18px; margin: 20px auto; max-width: 700px;
    background: rgba(220,38,38,0.06); border: 1px solid rgba(220,38,38,0.15);
    border-radius: 8px; font-size: 0.82rem; line-height: 1.6;
    color: var(--red-light); font-weight: 500;
}
.post-warning strong { color: #ef4444; }

/* Game Specs Table */
.game-specs { width: 100%; max-width: 550px; margin: 0 auto; border-collapse: collapse; }
.game-specs tr { border-bottom: 1px solid var(--border-subtle); }
.game-specs td { padding: 8px 12px; font-size: 0.84rem; }
.game-specs td:first-child { font-weight: 700; color: var(--text-primary); width: 200px; }
.game-specs td:last-child { color: var(--red-light); }

/* Downloads */
.post-downloads { text-align: center; margin: 10px 0; }
.post-dl-platform { margin-bottom: 16px; }
.post-dl-platform-title {
    font-family: 'Orbitron', sans-serif; font-size: 0.88rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px;
}
.post-dl-platform-title--pc { color: var(--red-light); }
.post-dl-platform-title--android { color: #22c55e; }
.post-dl-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.post-dl-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px;
    border-radius: 6px; font-size: 0.8rem; font-weight: 700; text-decoration: none;
    text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.25s ease;
}
.post-dl-link--pc { background: linear-gradient(135deg, #dc2626, #991b1b); color: #fff; }
.post-dl-link--pc:hover { background: linear-gradient(135deg, #ef4444, #dc2626); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(220,38,38,0.4); }
.post-dl-link--android { background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; }
.post-dl-link--android:hover { background: linear-gradient(135deg, #4ade80, #22c55e); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(34,197,94,0.4); }

/* Gallery */
.post-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.post-gallery-item {
    position: relative; border-radius: 8px; overflow: hidden;
    aspect-ratio: 16/9; cursor: pointer; border: 2px solid transparent; transition: all 0.3s ease;
}
.post-gallery-item:hover { border-color: var(--red-primary); transform: scale(1.04); box-shadow: 0 4px 15px rgba(220,38,38,0.3); }
.post-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-gallery-item:hover img { transform: scale(1.1); }

/* Post Footer */
.post-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; border-top: 1px solid var(--border-color); background: rgba(0,0,0,0.1);
}
.post-footer-actions { display: flex; gap: 6px; }
.post-footer-btn {
    display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px;
    background: var(--bg-input); border: 1px solid var(--border-color); border-radius: 5px;
    color: var(--text-secondary); font-size: 0.75rem; font-weight: 600;
    cursor: pointer; text-decoration: none; transition: all 0.2s ease;
}
.post-footer-btn:hover { border-color: var(--red-primary); color: var(--red-light); background: rgba(220,38,38,0.08); }
.post-container-bottom { border-radius: 0 0 10px 10px; }

/* Reply */
.reply-section {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 10px; overflow: hidden; margin-top: 20px;
}
.reply-header {
    display: flex; align-items: center; gap: 8px; padding: 14px 20px;
    border-bottom: 1px solid var(--border-color); font-size: 0.92rem;
    font-weight: 700; color: var(--text-primary); background: rgba(0,0,0,0.15);
}
.reply-header i { color: var(--red-primary); }
.reply-body { padding: 16px 20px 20px; }
.reply-textarea {
    width: 100%; min-height: 140px; padding: 14px 16px; background: var(--bg-input);
    border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary);
    font-family: 'Inter', sans-serif; font-size: 0.88rem; line-height: 1.6;
    resize: vertical; outline: none; transition: border-color 0.2s ease;
}
.reply-textarea::placeholder { color: var(--text-muted); }
.reply-textarea:focus { border-color: var(--red-primary); box-shadow: 0 0 0 2px rgba(220,38,38,0.1); }
.reply-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 14px; flex-wrap: wrap; gap: 10px;
}
.reply-footer-right { display: flex; gap: 8px; }
.reply-submit-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 24px;
    background: linear-gradient(135deg, var(--red-primary), #991b1b); border: none;
    border-radius: 6px; color: #fff; font-size: 0.82rem; font-weight: 700;
    cursor: pointer; transition: all 0.25s ease; text-transform: uppercase; letter-spacing: 0.3px;
}
.reply-submit-btn:hover { background: linear-gradient(135deg, #ef4444, var(--red-primary)); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(220,38,38,0.4); }

/* Lightbox */
.lb-overlay {
    display: none; position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.95); backdrop-filter: blur(15px);
    align-items: center; justify-content: center;
}
.lb-overlay.active { display: flex; }
.lb-overlay img { max-width: 90%; max-height: 85vh; border-radius: 8px; }
.lb-close {
    position: fixed; top: 20px; right: 25px; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1); color: #fff; width: 42px; height: 42px;
    border-radius: 50%; font-size: 1.1rem; cursor: pointer; display: flex;
    align-items: center; justify-content: center; z-index: 100000; transition: all 0.2s;
}
.lb-close:hover { background: var(--red-primary); }
.lb-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    z-index: 100000; transition: all 0.2s;
}
.lb-nav:hover { background: var(--red-primary); border-color: var(--red-primary); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* Member-Only Blur */
.member-only-section { position: relative; }
.member-only-section.locked .post-dl-platform,
.member-only-section.locked .post-dl-links,
.member-only-section.locked .post-gallery-item {
    filter: blur(12px); pointer-events: none; user-select: none;
}
.member-only-overlay {
    display: none; position: absolute; inset: 0; z-index: 10;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(2px);
    border-radius: 8px; align-items: center; justify-content: center;
}
.member-only-section.locked .member-only-overlay { display: flex; }
.member-only-lock {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-align: center; padding: 24px 32px; background: rgba(15,15,15,0.85);
    border: 1px solid rgba(220,38,38,0.25); border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.member-only-lock i { font-size: 2rem; color: var(--red-primary); animation: lockPulse 2s ease-in-out infinite; }
@keyframes lockPulse { 0%,100%{opacity:0.7;transform:scale(1);} 50%{opacity:1;transform:scale(1.1);} }
.member-only-lock span { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
.member-only-lock a { color: var(--red-light); font-weight: 700; text-decoration: none; cursor: pointer; }
.member-only-lock a:hover { text-decoration: underline; color: #ef4444; }

/* Responsive */
@media (max-width: 768px) {
    .post-container { flex-direction: column; }
    .post-author {
        width: 100%; flex-direction: row; display: flex; align-items: center;
        gap: 14px; padding: 14px 16px; border-right: none;
        border-bottom: 1px solid var(--border-color); text-align: left;
    }
    .post-avatar { width: 60px; height: 60px; margin: 0; }
    .post-gallery { grid-template-columns: repeat(2, 1fr); }
    .post-body { padding: 16px; }
    .post-desc { text-align: left; }
}
