/* ==========================================================================
   HAMAM BÖCEĞİ TÜM OYUNLAR - ANA SEÇİM MENÜSÜ VE ÖLÇEKLENDİRME STİLLERİ
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

body {
    background: #0a0705;
    font-family: 'Outfit', sans-serif;
    color: #f8fafc;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Ana Ekran Çerçevesi (1080x1920 - Oransal Büyüyerek Sığar) */
.master-screen {
    width: 1080px !important;
    height: 1920px !important;
    min-width: 1080px !important;
    min-height: 1920px !important;
    max-width: 1080px !important;
    max-height: 1920px !important;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at center, #1e140f 0%, #120c0a 100%);
    border: 6px solid #b87333;
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
    overflow: hidden !important;
    position: relative;
    transform-origin: center center;
    flex-shrink: 0;
}

/* Üst Reklam Barı (Hamam Böceği Döv Şablonundan Her Yer İçin Ortak 1080x360) */
.top-ad-bar {
    width: 1080px !important;
    height: 360px !important;
    min-height: 360px !important;
    max-height: 360px !important;
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 2px solid #fbbf24;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
    overflow: hidden !important;
}

.ad-placeholder {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
    z-index: 1;
    pointer-events: none;
}

.ad-label {
    font-size: 14px;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
    margin-bottom: 4px;
}

.ad-sublabel {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
}



/* 1080x1920 Ana İçerik Konteyneri */
.main-container {
    width: 1080px !important;
    height: 1920px !important;
    min-height: 1920px !important;
    max-height: 1920px !important;
    position: relative;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* ==========================================================================
   OYUN SEÇİM MENÜSÜ EKRANI (#menu-view)
   ========================================================================== */
.menu-view {
    width: 1080px;
    height: 1920px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px 60px 40px;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.portal-title {
    font-family: 'Bangers', cursive;
    font-size: 82px;
    color: #fbbf24;
    text-shadow: 6px 6px 0 #b91c1c, -3px -3px 0 #000, 0 15px 30px rgba(0, 0, 0, 0.9);
    letter-spacing: 4px;
    margin-top: 40px;
    margin-bottom: 50px;
    text-align: center;
    animation: pulseTitle 1.5s infinite alternate;
}

@keyframes pulseTitle {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.games-grid {
    display: flex;
    flex-direction: column;
    gap: 45px;
    width: 100%;
    max-width: 900px;
}

.game-card {
    width: 100%;
    background: linear-gradient(145deg, rgba(42, 32, 27, 0.9) 0%, rgba(24, 16, 12, 0.95) 100%);
    border: 5px solid #b87333;
    border-radius: 32px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.8), inset 0 2px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: scale(1.04) translateY(-6px);
    border-color: #fbbf24;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(251, 191, 36, 0.4);
}

.game-card:active {
    transform: scale(0.98);
}

.card-logo-container {
    width: 100%;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.card-logo {
    max-width: 85%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.8));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-card:hover .card-logo {
    transform: scale(1.08) rotate(-2deg);
}

.card-title {
    font-family: 'Bangers', cursive;
    font-size: 60px;
    color: #f8fafc;
    text-shadow: 4px 4px 0 #000;
    letter-spacing: 2px;
    text-align: center;
}

.game-card:hover .card-title {
    color: #fbbf24;
}

.card-subtitle {
    font-size: 26px;
    font-weight: 800;
    color: #cbd5e1;
    text-align: center;
}

/* ==========================================================================
   OYUN OYNATMA EKRANI (#game-view)
   ========================================================================== */
.game-view {
    width: 1080px !important;
    height: 1920px !important;
    display: none;
    position: relative;
    z-index: 20;
    background: #0f0a08;
}

#game-iframe {
    width: 1080px !important;
    height: 1920px !important;
    border: none;
    display: block;
}

/* Reklamın hemen altında sol köşedeki şık geri butonu */
.back-to-menu-btn {
    position: absolute;
    top: 385px;
    left: 25px;
    z-index: 1000;
    background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
    border: 4px solid #fbbf24;
    border-radius: 18px;
    padding: 14px 28px;
    display: none;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 0 #450a0a, 0 15px 25px rgba(0, 0, 0, 0.8);
    transition: all 0.15s ease;
}

.back-to-menu-btn:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    transform: translateY(-3px);
    box-shadow: 0 11px 0 #450a0a, 0 20px 30px rgba(0, 0, 0, 0.9);
}

.back-to-menu-btn:active {
    transform: translateY(5px);
    box-shadow: 0 3px 0 #450a0a, 0 6px 12px rgba(0, 0, 0, 0.8);
}
