@tailwind base;
@tailwind components;
@tailwind utilities;

/* Настройка скроллбара */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #666;
}

body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

/* Стили для Hero изображения */
.hero-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.5s ease;
    position: relative;
}

/* Затемнение Hero в светлой теме */
.light .hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1);
    border-radius: inherit;
}

/* Затемнение Hero в темной теме */
.dark .hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    border-radius: inherit;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Инпуты */
.input-field {
    transition: all 0.3s ease;
}
.input-field:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Кнопки */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary:active {
    transform: scale(0.98);
}

/* Основные настройки */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Градиентный фон */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Паттерн точек для фона */
.pattern-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Герой-изображение (локальное) */
.hero-image {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)),
                url('/assets/img/hero.jpg') center/cover no-repeat;
    transition: all 0.5s ease;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

/* Инпуты */
.input-focus:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}
.input-focus {
    transition: all 0.2s ease;
}

/* Кнопка отправки */
.btn-submit {
    position: relative;
    overflow: hidden;
}
.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn-submit:hover::before {
    left: 100%;
}
.no-select { user-select: none; -webkit-user-select: none; }