/* =============================================
   SETTINGS.CSS — Поп-ап настроек и конструктор ссылок
   ============================================= */

/* --- ПОП-АП НАСТРОЕК --- */

.settings-modal-show {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.btn-save-inline {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 0 14px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-save-inline:hover {
    background: #27ae60;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.btn-save-inline:active {
    background: #219653;
    transform: scale(0.93);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-close-modal {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-close-modal:hover {
    background: #c0392b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.btn-close-modal:active {
    background: #962d22;
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* --- КОНСТРУКТОР ССЫЛОК --- */

.generated-link-item {
    background: #2c3e50;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    border: 1px solid #34495e;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.generated-link-item:hover {
    background: #34495e;
    border-color: #3498db;
}

.generated-link-item:active {
    background: #1a252f;
}

#btnCreateChannel {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

#btnCreateChannel:hover {
    background: #2980b9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

#btnCreateChannel:active {
    background: #1f618d;
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* --- ОСНОВНАЯ ССЫЛКА (slugStatus) --- */

#slugStatus {
    cursor: pointer;
    transition: opacity 0.25s ease;
    height: 25px;
}

#slugStatus:hover {
    opacity: 0.8;
}

#slugStatus.is-fading {
    opacity: 0;
    pointer-events: none;
}

/* --- ПОЛЯ ВВОДА В ПОП-АПЕ НАСТРОЕК --- */

#settingsModal input[type="text"] {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

#settingsModal input[type="text"]:hover {
    border-color: #3498db !important;
    background-color: #3d566e !important;
}

#settingsModal input[type="text"]:focus {
    border-color: #2ecc71 !important;
    background-color: #1a252f !important;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.5) !important;
}

/* Блокировка белого фона при автозаполнении браузера */
#settingsModal input:-webkit-autofill,
#settingsModal input:-webkit-autofill:hover,
#settingsModal input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 0px 1000px #34495e inset !important;
    transition: background-color 5000s ease-in-out 0s;
}
