/* GENEL STİL */
body {
    /* INTER FONTU UYGULAMASI */
    font-family: 'Inter', sans-serif !important; 
    
    background: linear-gradient(135deg, #1f2833 0%, #3a4750 100%);
    color: #e0e0e0;
    display: flex;
    flex-direction: column; 
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding-bottom: 50px;
    padding-top: 30px;
}

/* KRİTİK ELEMENTLERE FONT UYGULAMASINI ZORLA */
h1, #score-area, .message, #controls button, .key, 
#user-sequence, .sequence-note, footer, footer a {
    font-family: 'Inter', sans-serif !important; 
}

.game-container {
    background-color: #2c3e50;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
    max-width: 700px;
    width: 90%;
    border: 3px solid #3498db;
}

h1 { 
    color: #f39c12; 
    margin-bottom: 20px; 
    font-weight: 800 !important; 
}
#score-area { 
    font-size: 1.4em; 
    color: #e74c3c; 
    margin-bottom: 15px; 
    font-weight: 600 !important; 
}
.message { color: #f39c12; font-weight: 500 !important; }

/* KONTROL BUTONLARI */
#controls { margin-bottom: 20px; }
#controls button {
    padding: 10px 20px;
    margin: 5px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 600 !important;
}
#controls button:hover:not(:disabled) { 
    background-color: #2980b9; 
    transform: translateY(-1px);
}
#controls button:disabled {
    background-color: #5d758f;
    cursor: not-allowed;
}

/* NOTA SIRASINI GÖSTERME ALANI */
#user-sequence {
    min-height: 40px;
    margin: 20px 0;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.sequence-note {
    padding: 5px 10px;
    background-color: #f39c12;
    color: #2c3e50;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 700 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* PİYANO KLAVYESİ STİLİ */
#piano-keyboard {
    display: flex;
    justify-content: center; 
    position: relative;
    margin-top: 20px;
    background: #1f2833;
    border-radius: 10px;
    padding: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.key {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.1s;
    font-size: 0.8em;
    font-weight: 600 !important;
    border-radius: 0 0 5px 5px;
}

.key.white {
    width: 65px; 
    height: 200px;
    background-color: #ffffff;
    color: #2c3e50;
    border: 1px solid #c0c0c0;
    margin-right: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Basıldığında Görsel Geri Bildirim */
.key.active {
    background-color: #2ecc71 !important; 
    color: #1f2833 !important;
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* GERİ BİLDİRİM VE ANİMASYONLAR */
.feedback.correct { color: #2ecc71; animation: pulse 0.5s; }
.feedback.wrong { color: #e74c3c; animation: shake 0.5s; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }


/* FOOTER STİLİ */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #1f2833;
    font-size: 0.9em;
    color: #95a5a6;
    border-top: 1px solid #3a4750;
    z-index: 1000;
}

footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    margin-right: 10px;
}
footer a:hover { text-decoration: underline; }