/* ==========================================
   GENEL VE SAYFA DÜZENİ STİLLERİ
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0d0d0d;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Google Translate Box */
.translate-box {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1000;
}

/* Üst Bar & Ortalanmış Başlık */
.detail-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background-color: #1a1a1a;
    border-bottom: 2px solid #2a2a2a;
}

.back-btn {
    color: #4caf50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
    z-index: 2;
}

.back-btn:hover {
    color: #81c784;
}

.main-map-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    letter-spacing: 1px;
    margin: 0;
    text-align: center;
}

/* Ana Konteyner Grid Yapısı */
.detail-container {
    display: grid;
    grid-template-columns: 1.1fr 2fr 1.1fr;
    gap: 24px;
    padding: 20px;
    max-width: 1650px;
    margin: 0 auto;
}

/* Sol Taraf Yapısı (Aşağıya Çekildi) */
.left-side {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 25px;
}

/* Büyütülen Video Alanı */
.video-container {
    position: relative;
    padding-bottom: 60%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Büyütülen Map Information Alanı */
.info-section {
    background-color: #121212;
    padding: 24px;
    border-radius: 10px;
    border: 1px solid #222;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.info-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #4caf50;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 12px;
    font-size: 15px;
    color: #ccc;
}

.info-list li strong {
    color: #fff;
}

/* Orta Kısım */
.center-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================
   STEAM TARZI GALERİ STİLLERİ
   ========================================== */
.steam-gallery {
    width: 100%;
    background-color: #121212;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    border: 1px solid #222;
}

.main-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #333;
    background-color: #000;
}

.main-gallery-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.main-gallery-img.fade-out {
    opacity: 0;
}

/* Küçük Fotoğraflar */
.thumbnails-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 6px;
}

.thumb-container {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.thumb {
    width: 100%;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.thumb-container:hover .thumb {
    opacity: 0.8;
}

.thumb-container.active .thumb {
    opacity: 1;
    border-color: #0088ff;
}

/* YÜKLENME BARLARI */
.progress-bar-bg {
    display: none;
    width: 100%;
    height: 3px;
    background-color: #222;
    border-radius: 2px;
    overflow: hidden;
}

.thumb-container.active .progress-bar-bg {
    display: block;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: #0088ff;
    border-radius: 2px;
}

.thumb-container.active .progress-bar-fill {
    animation: fillProgress 5s linear forwards;
}

@keyframes fillProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* ==========================================
   İNDİRME ALANI VE BAYRAK TOOLTİP STİLLERİ
   ========================================== */
.download-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-download-btn {
    width: 100%;
    padding: 15px;
    background-color: #4caf50;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.main-download-btn:hover {
    background-color: #45a049;
}

.main-download-btn:active {
    transform: scale(0.99);
}

.language-options {
    display: none;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    width: 100%;
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #333;
}

.language-options.show {
    display: flex;
}

.flag-btn {
    position: relative;
    display: inline-block;
}

.flag-btn img {
    width: 50px;
    height: auto;
    border-radius: 4px;
    transition: transform 0.2s;
}

.flag-btn:hover img {
    transform: scale(1.1);
}

/* Bayrak Üstünde Çıkan İpucu Metni (Tooltip) */
.flag-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    border: 1px solid #333;
    z-index: 10;
}

.flag-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   SAĞ TARAF VE YORUM ALANI STİLLERİ (Aşağıya Çekildi ve Büyütüldü)
   ========================================== */
.right-side {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
}

.comment-section {
    background-color: #121212;
    padding: 24px;
    border-radius: 10px;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Yorum Listeleme Alanı */
.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-right: 5px;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.comment-item {
    background-color: #1a1a1a;
    padding: 14px;
    border-radius: 6px;
    border-left: 4px solid #4caf50;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
    color: #4caf50;
}

.comment-date {
    color: #888;
    font-size: 12px;
}

.comment-body {
    margin: 0;
    font-size: 14px;
    color: #ddd;
    word-break: break-word;
}

/* Yorum Formu */
.comment-form-wrapper {
    border-top: 1px solid #222;
    padding-top: 18px;
}

.form-sub-title {
    margin: 0 0 12px 0;
    color: #ffffff;
    font-size: 18px;
}

.comment-input, 
.comment-textarea {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    color: #fff;
    padding: 12px;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 14px;
}

.comment-input:focus, 
.comment-textarea:focus {
    outline: none;
    border-color: #4caf50;
}

.comment-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.comment-submit-btn:hover {
    background-color: #45a049;
}

.comment-submit-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.comment-status {
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 1024px) {
    .detail-container {
        grid-template-columns: 1fr;
    }
    .left-side, .right-side {
        margin-top: 0;
    }
    .main-map-title {
        position: static;
        transform: none;
    }
}