.guitar-tuner-root {
    background-color: #05080c;
    color: #f8f9fa;
    border-radius: 1rem;
    padding: 0.75rem 0.5rem 0.5rem;
}

/* Üst tuner alanı (grid + gauge) */
.tuner-top {
    background: radial-gradient(circle at top, #1b2735, #05080c 55%);
    border-radius: 1.2rem;
    padding-left: 1rem;
    padding-right: 1.2rem;
    padding-top: 0.3rem;
    position: relative;
    overflow: hidden;
}

.tuner-top-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(#151922 1px, transparent 1px),
        linear-gradient(90deg, #151922 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.5;
    pointer-events: none;
}

.tuner-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    margin-bottom: 0.7rem;
}

.tuner-brand {
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.tuner-brand span {
    color: #f8f9fa;
}


.tuner-mode-toggle-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0.25rem;
    /* Auto toggle ve Hz arası mesafe */
}


/* Custom toggle (AUTO / MANUAL) */
.tuner-switch {
    position: relative;
    width: 42px;
    height: 22px;
}

.tuner-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tuner-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #343a40;
    border-radius: 999px;
    transition: background-color 0.15s;
}

.tuner-switch-slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background-color: #f8f9fa;
    transition: transform 0.15s;
}

.tuner-switch input:checked+.tuner-switch-slider {
    background-color: #00d084;
}

.tuner-switch input:checked+.tuner-switch-slider::before {
    transform: translateX(18px);
}

/* Gauge alanı */
.tuner-gauge {
    position: relative;
    z-index: 1;
    margin-top: 0.8rem;
    padding-top: 1.2rem;
    margin-bottom: 145px;
}

.tuner-gauge-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0.3rem;
    width: 2px;
    background: linear-gradient(to bottom, #555, #999, #555);
    opacity: 0.6;
    transform: translateX(-50%);
}

.tuner-gauge-pointer {
    position: absolute;
    top: -0.4rem;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.08s linear;
}

.tuner-gauge-pointer-line {
    width: 2px;
    height: 40px;
    background: #ff5b5b;
    border-radius: 999px;
}

.tuner-gauge-badge {
    position: absolute;
    left: 50%;
    top: -22px;
    transform: translateX(-50%);
    background: rgba(255, 90, 90, 0.95);
    color: #fff;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(255, 90, 90, 0.7);
}

.tuner-gauge-badge.near {
    background: #00d084;
    box-shadow: 0 0 12px rgba(0, 208, 132, 0.7);
}


.tuner-bottom {
    margin-top: -2.8rem;
    display: flex;
    justify-content: center;
    gap: 1.6rem;
    align-items: center;
    flex-wrap: wrap;
}




.tuner-string-column {
    margin-top: -3.5rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.tuner-string-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: #11161d;
    color: #f8f9fa;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.14s, transform 0.1s, box-shadow 0.1s;
}

.tuner-string-btn span {
    pointer-events: none;
}

.tuner-string-btn:hover {
    background: #181f29;
    transform: translateY(-1px);
}

.tuner-string-btn.active-manual {
    background: #00d084;
    color: #051015;
    box-shadow: 0 0 12px rgba(0, 208, 132, 0.85);
}

.tuner-string-btn.active-auto {
    background: #1f8f64;
    color: #e9fdf6;
    box-shadow: 0 0 6px rgba(0, 208, 132, 0.7);
}

/* Headstock PNG alanı */
.tuner-headstock-wrapper {
    position: relative;
    width: 190px;
    max-width: 60vw;
    left: -1.5px;
}

.tuner-headstock-img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}


/* Start/Stop küçük kontrol alanı */
/* BUNU EKLE */
.tuner-controls {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.3rem;
}


.tuner-controls .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.7rem;
}

/* BUNU EKLE */
.tuner-status-text {
    text-align: center;
    font-size: 0.82rem;
    color: #aeb4ba;
    margin-top: 0.3rem;
}

.tuner-small-freq {
    text-align: left;
    font-size: 0.72rem;
    color: #9aa1a7;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
    padding-right: 0.2rem;
    opacity: 0.85;
}

.tuner-auto-note-bubble {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    z-index: 4;
}


@media (max-width: 576px) {
    .tuner-top {
        padding: 1rem 1rem 1.1rem;
    }

    .tuner-bottom {
        gap: 1rem;
    }

}

@media (max-width: 400px) {

    .guitar-tuner-root {
        transform: scale(0.7);
        width: 150%;
        margin-left: -25%;
    }

    .tuner-bottom {
        margin-top: -3rem;
    }
}

@media (max-width: 300px) {
    .guitar-tuner-root {
        transform: scale(0.5);
        width: 200%;
        margin-left: -50%;
    }

    .tuner-bottom {
        margin-top: -0rem;
    }
}
