/* index.css — стили для главной страницы CRM Hair */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

/* Фоновые декоративные элементы */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 10%;
    animation-delay: 10s;
}

.circle-4 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    right: -80px;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Контейнер */
.container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 48px 40px;
    width: 100%;
    max-width: 900px;
    text-align: center;
    animation: slideUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Логотип */
.logo-icon {
    margin-bottom: 24px;
}

.logo-icon i {
    font-size: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Заголовки */
h1 {
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #64748b;
    margin-bottom: 48px;
    font-size: 1rem;
    font-weight: 500;
}

/* Сетка функций */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

/* Общие стили для иконок */
.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
}

.feature-card:hover .feature-icon i {
    color: white !important;
}

/* ===== УНИКАЛЬНЫЕ ЦВЕТА ДЛЯ КАЖДОЙ ИКОНКИ ===== */

/* 1. Кошелек - золотой */
.wallet-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.wallet-icon i {
    color: #f59e0b;
}

.feature-card:hover .wallet-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* 2. Каталог волос - розовый */
.catalog-icon {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.catalog-icon i {
    color: #ec4899;
}

.feature-card:hover .catalog-icon {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

/* 3. Создать продукт - зеленый */
.create-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.create-icon i {
    color: #10b981;
}

.feature-card:hover .create-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* 4. Заказы - синий */
.orders-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.orders-icon i {
    color: #3b82f6;
}

.feature-card:hover .orders-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* 5. Статистика - фиолетовый */
.stats-icon {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

.stats-icon i {
    color: #8b5cf6;
}

.feature-card:hover .stats-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Стиль для баланса в кошельке */
.wallet-balance {
    font-weight: 700;
    color: #f59e0b;
    font-size: 1.1em;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* Сообщение */
.demo-message {
    margin-top: 24px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    color: #92400e;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.demo-message i {
    font-size: 18px;
}

.demo-message.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

/* Футер */
.footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer i {
    font-size: 14px;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 32px 24px;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 32px;
    }

    .logo-icon i {
        font-size: 48px;
    }

    .feature-grid {
        gap: 16px;
        margin-bottom: 24px;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .feature-card {
        padding: 20px 16px;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 16px;
    }

    .feature-icon i {
        font-size: 24px;
    }

    .feature-card h3 {
        font-size: 16px;
    }

    .feature-card p {
        font-size: 11px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 20px 16px;
    }

    .container {
        padding: 24px 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 16px 12px;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
        border-radius: 14px;
    }

    .feature-icon i {
        font-size: 20px;
    }

    .feature-card h3 {
        font-size: 14px;
    }

    .feature-card p {
        font-size: 10px;
    }

    .footer {
        font-size: 0.7rem;
    }
}

@media (max-width: 420px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}