/* static/css/piano.css */

.akb-piano-wrapper {
    width: 100%;
    /* max-width sınırlamasını kaldırıyoruz */
    max-width: none;
    /* kart zaten ortalanmış durumda, burada auto margin istemiyoruz */
    margin: 0;
    position: relative;
}

.akb-orientation-hint {
    display: none;
    background: #e8f2ff;
    color: #1a3d7c;
    border: 1px solid #c9dcff;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    text-align: center;
}

/* Sadece mobil ve *dikey* durumda göster */
@media (max-width: 768px) and (orientation: portrait) {
    .akb-orientation-hint {
        display: block;
    }
}



.akb-piano-canvas-container {
    position: relative;
    width: 100%;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
}


/* loading */
.akb-piano-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e3e6ea;
    margin-bottom: 10px;
}

.akb-piano-loading-inner {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
}

/* toolbar */
.akb-piano-toolbar {
    font-size: 0.85rem;
}

.akb-toggle-btn {
    font-size: 0.8rem;
}

.akb-toggle-btn .akb-toggle-state {
    font-weight: 600;
    margin-left: 2px;
}

/* basılan nota kutusu */
.akb-note-display-wrapper {
    min-width: 120px;
}

.akb-note-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
    color: #f8fafc;
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    min-width: 80px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.akb-note-display.akb-note-visible {
    opacity: 1;
    transform: translateY(0);
}

.akb-note-display-note {
    font-weight: 600; /* SemiBold */
}

/* canvases */
#akb-piano-canvas-white,
#akb-piano-canvas-black {
    position: absolute;
    left: 0;
    top: 0;
}

/* küçük ekranlar */
@media (max-width: 768px) {
    .akb-piano-canvas-container {
        padding-bottom: 26%;
        border-radius: 8px;
    }

    .akb-note-display {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}
