/* Стили для главной страницы (index.html) */

:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --accent: #8B5CF6;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --bg-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-gray: #64748B;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo h1 {
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.logo p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.user-info {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
}

.user-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ОБНОВЛЕННЫЕ СТИЛИ МЕНЮ - с описаниями */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-card {
    background: var(--white);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.action-card:hover {
    background: #EFF6FF;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    transition: all 0.3s ease;
}

.action-card:hover .action-icon {
    transform: scale(1.1);
}

.action-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.action-description {
    font-size: 0.75rem;
    color: var(--text-gray);
    line-height: 1.3;
    max-width: 120px;
}

/* Стили для кнопки "Перейти в бота" */
.telegram-integration {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.telegram-integration p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-telegram:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Адаптивность - улучшенная */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .logo h1 {
        font-size: 2rem;
    }

    /* Сохраняем 2 колонки на телефонах, но уменьшаем отступы */
    .actions-grid {
        gap: 0.75rem;
    }

    .action-card {
        padding: 1.25rem 0.75rem;
        min-height: 130px;
    }

    .action-icon {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .action-label {
        font-size: 0.85rem;
    }

    .action-description {
        font-size: 0.7rem;
        max-width: 110px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 320px) {
    .actions-grid {
        grid-template-columns: 1fr;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }
}