/* --- AYDINOLOJİ OYUN STİLLERİ --- */

#aydinoloji-game-wrapper {
    position: relative;
    width: 100%;
    height: 600px; /* Varsayılan yükseklik */
    background-color: #0f172a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    margin: 20px 0;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.aydinoloji-ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: flex; /* Flex düzeni varsayılan yaptık */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Sağ Üst Kontrol Butonları */
.aydinoloji-top-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    pointer-events: auto; /* Tıklanabilir olması için kritik */
    z-index: 100;
}

.aydinoloji-icon-btn {
    background: rgba(0, 140, 140, 0.4);
    border: 1px solid #008c8c;
    color: white;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    outline: none;
    line-height: 0; /* SVG hizalaması için */
}

.aydinoloji-icon-btn:hover {
    background: #008c8c;
    transform: scale(1.1);
}

.aydinoloji-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
    pointer-events: none; /* Tıklamayı butona geçirmek için */
}

/* Sol Alt Logo */
.aydinoloji-brand-logo {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 50px !important;
    height: auto !important;
    opacity: 0.8;
    z-index: 90;
    pointer-events: none;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
}

/* Kapak Ekranı */
#cover-screen {
    background: rgba(15, 23, 42, 0.95);
    z-index: 50;
    pointer-events: auto;
}

.aydinoloji-cover-logo {
    width: 120px !important;
    height: auto !important;
    margin-bottom: 20px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.aydinoloji-game-title {
    font-size: 2rem;
    color: #008c8c;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 140, 140, 0.5);
    text-align: center;
    line-height: 1.2;
}

.aydinoloji-btn-primary {
    background: #008c8c;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    margin: 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    text-decoration: none;
}

.aydinoloji-btn-primary:hover {
    background: #00a3a3;
    transform: scale(1.05);
    color: white;
}

/* Modallar */
#info-modal, #win-modal {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 60;
    pointer-events: auto;
}

.aydinoloji-modal-content {
    background: #1e293b;
    border: 2px solid #008c8c;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    color: #e2e8f0;
}

.aydinoloji-modal-content h2 {
    color: #008c8c;
    margin-top: 0;
    font-size: 1.8rem;
}

.aydinoloji-level-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 140, 140, 0.3);
    border: 1px solid #008c8c;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    pointer-events: none;
    display: block; /* Badge görünür olmalı */
}

/* Yardımcı Sınıflar */
.aydinoloji-hidden {
    display: none !important;
}
