/* Geçici renk skalası önizleme aracı — landing page tasarımını değiştirmez,
   sadece --pub-* renk değişkenlerini canlı olarak değiştirir. */

.palette-switcher {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1080;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.palette-switcher-toggle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background: var(--pub-primary, #17324b);
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.4rem 1.25rem rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.palette-switcher-toggle:hover {
    transform: scale(1.06);
}

.palette-switcher-panel {
    position: absolute;
    bottom: 3.75rem;
    right: 0;
    width: 15.5rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    max-height: 70vh;
    overflow-y: auto;
    display: none;
}

.palette-switcher-panel.is-open {
    display: block;
}

.palette-switcher-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5c6b76;
    margin: 0 0 0.5rem;
    padding: 0 0.25rem;
}

.palette-switcher-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid #e8e0d2;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.45rem 0.6rem;
    margin-bottom: 0.4rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.palette-switcher-option:last-child {
    margin-bottom: 0;
}

.palette-switcher-option:hover {
    background: #faf7f2;
}

.palette-switcher-option.is-active {
    border-color: var(--pub-accent, #c9a15a);
    background: #faf7f2;
}

.palette-switcher-swatch {
    display: flex;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.palette-switcher-swatch span {
    flex: 1;
}

.palette-switcher-option-name {
    font-size: 0.8rem;
    color: #1c2733;
    line-height: 1.2;
}

.palette-switcher-check {
    margin-left: auto;
    color: var(--pub-accent, #c9a15a);
    font-size: 0.9rem;
    visibility: hidden;
}

.palette-switcher-option.is-active .palette-switcher-check {
    visibility: visible;
}
