/* =========================================================================
   FLOP TECH CORE v2.0 — CUSTOM STYLES (css/style.css)
   Дополнительные стили, кастомные анимации и переопределения для Tailwind CSS
   ========================================================================= */

/* --- 1. ГЛОБАЛЬНЫЕ СБРОСЫ И КАСТОМНЫЙ СКРОЛЛБАР СТРАНИЦЫ --- */
html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    background-color: #0B0C10;
    color: #F1F5F9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Выделение текста на сайте в цветах платформы */
::selection {
    background-color: rgba(212, 175, 55, 0.3);
    color: #FFFFFF;
}

/* Кастомный скроллбар для всей страницы (WebKit) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0B0C10;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

/* --- 2. ЭФФЕКТ СВЕТОВОГО БЛИКА ДЛЯ КНОПОК (SHIMMER BUTTON) --- */
.shimmer-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shimmer-btn:hover {
    transform: translateY(-1px);
}

.shimmer-btn:active {
    transform: translateY(1px);
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(30deg);
    animation: shimmer 4s infinite linear;
}

@keyframes shimmer {
    0% {
        left: -60%;
    }
    30% {
        left: 130%;
    }
    100% {
        left: 130%;
    }
}

/* --- 3. ФОРМЫ, ИНПУТЫ И ИХ ФОКУСИРОВКА --- */
/* Убираем стрелки переключения у полей ввода чисел */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Переопределение автозаполнения браузера (чтобы инпуты не становились белыми) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #FFFFFF !important;
    -webkit-box-shadow: 0 0 0px 1000px #020617 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* --- 4. ШРИФТОВЫЕ И ТЕКСТОВЫЕ СТИЛИ ДЛЯ PROXY-ЧАТА --- */
.telegram-ui-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- 5. КАСТОМНЫЕ СКРОЛЛБАРЫ ДЛЯ МОДАЛОК И ПРЕВЬЮ --- */
#modalDocContent::-webkit-scrollbar,
#raw1cTextPreview::-webkit-scrollbar,
#uapiAutocompleteResponseBox::-webkit-scrollbar {
    width: 6px;
}

#modalDocContent::-webkit-scrollbar-track,
#raw1cTextPreview::-webkit-scrollbar-track,
#uapiAutocompleteResponseBox::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

#modalDocContent::-webkit-scrollbar-thumb,
#raw1cTextPreview::-webkit-scrollbar-thumb,
#uapiAutocompleteResponseBox::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 8px;
}

#modalDocContent::-webkit-scrollbar-thumb:hover,
#raw1cTextPreview::-webkit-scrollbar-thumb:hover,
#uapiAutocompleteResponseBox::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}

/* --- 6. АНИМАЦИИ ДЛЯ МОДАЛЬНЫХ ОКНО И ШАГОВ --- */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#documentModal:not(.hidden) > div,
#fomoLockoutModal:not(.hidden) > div {
    animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Плавный импульс для пульсирующих индикаторов */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
    }
}

.pulse-emerald {
    animation: pulseGlow 2s infinite ease-in-out;
}

/* --- 7. РЕСПОНСИВНЫЕ ПОПРАВКИ И СТЕЛС-ЭФФЕКТЫ --- */
@media (max-width: 640px) {
    #auth-block {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
