/* Ana Kapsayıcı */
#aydinoloji-f1-game-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px; /* Yükseklik artırıldı */
    margin: 20px auto;
    background-color: #222;
    border: 4px solid #008c8c;
    border-radius: 15px;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    user-select: none;
    -webkit-user-select: none;
}

/* Ortak Buton Stilleri */
.aydinoloji-btn {
    background-color: #008c8c;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    margin: 5px;
    text-transform: uppercase;
}

.aydinoloji-btn:hover {
    background-color: #006f6f;
    transform: scale(1.05);
}

.aydinoloji-btn:active {
    transform: scale(0.95);
}

.aydinoloji-btn.secondary {
    background-color: transparent;
    border: 2px solid #008c8c;
}

.aydinoloji-btn.secondary:hover {
    background-color: rgba(0, 140, 140, 0.2);
}

/* Kapak Ekranı */
#f1-cover-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    transition: opacity 0.5s;
}

#f1-cover-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.game-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

#f1-cover-screen h1 {
    color: #008c8c;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
}

/* Oyun Alanı */
#f1-game-area {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #333 0%, #111 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Üstten başlasın */
    align-items: center;
    padding-top: 60px; /* Işıklar için boşluk */
    box-sizing: border-box;
}

/* Işıklar Konteyner */
.lights-container {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #000;
    border-radius: 10px;
    border-bottom: 5px solid #444;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
}

.light-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #222;
    padding: 5px;
    border-radius: 5px;
}

.light {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #333; /* Sönük */
    box-shadow: inset 0 0 10px #000;
    transition: background-color 0.05s;
}

.light.on {
    background-color: #ff0000;
    box-shadow: 0 0 20px #ff0000, inset 0 0 10px #500;
}

/* Yeni Tıklama Alanı (Refleks Pad) */
#f1-click-pad {
    width: 80%;
    height: 150px;
    background: #2c3e50;
    border: 3px dashed #34495e;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5em;
    font-weight: bold;
    color: #95a5a6;
    margin-top: 20px;
    transition: all 0.1s;
    z-index: 10;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#f1-click-pad:active {
    transform: scale(0.98);
    background: #34495e;
}

/* UI Kontrolleri (Sağ Üst) */
.game-ui-top {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 30;
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #008c8c;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-btn:hover {
    background: #008c8c;
}

/* Mesaj Alanı */
#game-message {
    font-size: 2em;
    font-weight: bold;
    color: #fff;
    text-align: center;
    z-index: 5;
    text-shadow: 0 2px 4px #000;
    min-height: 2.5em;
    margin: 10px 0;
}

#game-message.success { color: #2ecc71; }
#game-message.fail { color: #e74c3c; }

/* Filigran */
.watermark-logo {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 60px;
    opacity: 0.5;
    z-index: 10;
    pointer-events: none;
}

/* Modallar */
.game-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 50;
    display: none;
    justify-content: center;
    align-items: center;
}

.game-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    color: #333;
    padding: 30px;
    border-radius: 10px;
    max-width: 80%;
    text-align: center;
    border-top: 5px solid #008c8c;
}

.modal-content h2 {
    color: #008c8c;
    margin-top: 0;
}

#leaderboard-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    margin: 20px 0;
    border: 1px solid #ddd;
}

#leaderboard-list li {
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

#leaderboard-list li:nth-child(even) { background: #f9f9f9; }
#leaderboard-list li span.rank { font-weight: bold; color: #008c8c; margin-right: 10px; }
#leaderboard-list li span.time { font-family: monospace; font-weight: bold; }

/* Mobil Uyumluluk */
@media (max-width: 600px) {
    #aydinoloji-f1-game-wrapper { height: 500px; }
    .lights-container { gap: 5px; padding: 10px; }
    .light { width: 40px; height: 40px; }
    #f1-cover-screen h1 { font-size: 1.5em; }
    #game-message { font-size: 1.5em; }
    #f1-click-pad { height: 100px; font-size: 1.2em; }
}