/* miao-lang — pink theme overrides */

body {
    background: linear-gradient(160deg, #fce4ec 0%, #f8d0dc 30%, #fdf2f5 60%, #f8d0dc 100%);
    background-attachment: fixed;
}

h1 { color: #ad1457; }

.divider { background: linear-gradient(90deg, #f48fb1, #e91e63, #f48fb1); }

.greeting { color: #c9708a; margin-bottom: 1.5rem; }

/* Converter */
.converter {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Mode bar */
.mode-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.mode-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ad1457;
    min-width: 2.5rem;
    text-align: center;
}

.mode-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: 2px solid #f48fb1;
    border-radius: 50%;
    background: #fff;
    color: #e91e63;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
}

.mode-switch:hover {
    background: #fce4ec;
    border-color: #e91e63;
    transform: rotate(180deg);
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.2);
}

.mode-switch:active { transform: rotate(180deg) scale(0.93); }

/* Textareas */
.converter textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4a2030;
    background: #fff;
    border: 2px solid #f8bbd0;
    border-radius: 10px;
    resize: vertical;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.converter textarea:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.converter textarea::placeholder { color: #d4a0b0; }

.converter textarea[readonly] {
    background: #fef5f8;
    color: #6b3a4a;
    cursor: default;
}

.converter textarea.error {
    background: #fff5f5;
    border-color: #e53935;
    color: #b71c1c;
}

/* Action bar */
.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* Real-time toggle */
.realtime-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.82rem;
    color: #ad5a72;
    user-select: none;
    transition: color 0.2s ease;
}

.realtime-toggle:hover { color: #e91e63; }
.realtime-toggle input[type="checkbox"] { display: none; }

.toggle-track {
    position: relative;
    width: 40px; height: 22px;
    background: #f8bbd0;
    border-radius: 11px;
    transition: background 0.25s ease;
    flex-shrink: 0;
}

.toggle-track::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.realtime-toggle input:checked + .toggle-track { background: #e91e63; }
.realtime-toggle input:checked + .toggle-track::after { transform: translateX(18px); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 1rem;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-translate {
    background: linear-gradient(135deg, #ec407a, #e91e63);
    color: #fff;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.25);
}

.btn-translate:hover {
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.4);
    transform: translateY(-1px);
}

.btn-translate:active { transform: translateY(0) scale(0.97); }

.btn-copy {
    background: #fff;
    color: #e91e63;
    border: 1.5px solid #f48fb1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.btn-copy:hover { background: #fce4ec; border-color: #e91e63; }
.btn-copy:active { background: #f8bbd0; }

.btn-clear {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    box-shadow: 0 2px 10px rgba(229, 57, 53, 0.25);
}

.btn-clear:hover {
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.4);
    transform: translateY(-1px);
}

.btn-clear:active { transform: translateY(0) scale(0.97); }

.btn-copy.copied {
    background: #e8f5e9;
    border-color: #66bb6a;
    color: #2e7d32;
}

.btn-group { display: flex; gap: 0.5rem; }

/* Toast */
.toast {
    position: fixed;
    top: 2rem; left: 50%;
    transform: translateX(-50%) translateY(-120px);
    padding: 0.6rem 1.4rem;
    background: #333;
    color: #fff;
    font-size: 0.85rem;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Footer */
footer a { color: #c9708a; }
footer a:hover { color: #ad1457; }
.footer-sep { margin: 0 0.5rem; color: #e0b0c0; }

/* Responsive */
@media (max-width: 480px) {
    .converter { gap: 0.65rem; }
    .converter textarea { font-size: 0.85rem; padding: 0.7rem 0.85rem; }
    .action-bar { flex-direction: column; align-items: stretch; }
    .action-bar .btn-group { justify-content: flex-end; }
    .btn { font-size: 0.8rem; padding: 0.4rem 0.85rem; }
}
