/* ============================================ */
/* 🎨 MODERN MINIMAL DESIGN 2026 */
/* ============================================ */

/* Плавные transitions везде */
* {
    scroll-behavior: smooth;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================ */
/* ✨ SUBTLE ANIMATIONS */
/* ============================================ */

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Применяем к карточкам */
.card {
    animation: fadeIn 0.3s ease-out;
    transition: all 0.25s ease;
}

.modal-overlay {
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    animation: fadeInScale 0.3s ease-out;
}

/* Stagger для списков (более тонкий) */
.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.03s; }
.card:nth-child(3) { animation-delay: 0.06s; }
.card:nth-child(4) { animation-delay: 0.09s; }
.card:nth-child(5) { animation-delay: 0.12s; }
.card:nth-child(6) { animation-delay: 0.15s; }

/* ============================================ */
/* 🎭 SUBTLE HOVER EFFECTS */
/* ============================================ */

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn {
    transition: all 0.2s ease;
}

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

.btn:active {
    transform: translateY(0);
}

.nav-item {
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.nav-item .nav-icon {
    transition: transform 0.2s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.05);
}

/* ============================================ */
/* 🌫️ LIGHT BLUR EFFECTS */
/* ============================================ */

.app-header {
    background: rgba(28, 28, 30, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bottom-nav {
    background: rgba(28, 28, 30, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-overlay {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ============================================ */
/* 🌈 MINIMAL GRADIENTS */
/* ============================================ */

.btn-primary {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(142, 142, 147, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(142, 142, 147, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.12);
}

/* ============================================ */
/* 💫 MICRO INTERACTIONS */
/* ============================================ */

input:focus, textarea:focus, select:focus {
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    transition: all 0.2s ease;
}

/* Активная навигация */
.nav-item.active {
    background: rgba(0, 122, 255, 0.12) !important;
    border-left: 3px solid #007AFF;
}

/* ============================================ */
/* 📏 SPACIOUS LAYOUT */
/* ============================================ */

.card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Более воздушные отступы на desktop */
@media (min-width: 1200px) {
    .app-content {
        padding: 40px !important;
    }
    
    .card {
        margin-bottom: 16px;
    }
}

/* ============================================ */
/* 🎯 ACCENT COLORS (subtle) */
/* ============================================ */

.accent-blue {
    color: #007AFF;
}

.accent-green {
    color: #34C759;
}

.accent-red {
    color: #FF3B30;
}

/* ============================================ */
/* 🧼 CLEAN CARDS */
/* ============================================ */

.card {
    border-radius: 12px;
    background: rgba(28, 28, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================ */
/* ⚡ PERFORMANCE */
/* ============================================ */

.card, .btn, .nav-item {
    will-change: transform;
}

/* Отключаем анимации на слабых устройствах */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
