/**
 * Стили модального окна «О программе».
 * Анимация появления + backdrop blur.
 */

/* ─── Оверлей (фон) ──────────────────────────────────────────────────────── */
.about-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Видимое состояние */
.about-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ─── Модальное окно ──────────────────────────────────────────────────────── */
.about-modal {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border-secondary);
    border-radius: 20px;
    padding: 48px 40px 40px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Анимация появления модалки */
.about-overlay.visible .about-modal {
    transform: scale(1) translateY(0);
}

/* ─── Кнопка закрытия ─────────────────────────────────────────────────────── */
.about-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-tertiary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.about-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.about-close svg {
    width: 16px;
    height: 16px;
}

/* ─── Иконка приложения ───────────────────────────────────────────────────── */
.about-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow:
        0 8px 24px rgba(249, 115, 22, 0.3),
        0 0 0 4px rgba(249, 115, 22, 0.1);
    animation: aboutIconPulse 2s ease-in-out infinite;
}

@keyframes aboutIconPulse {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3), 0 0 0 4px rgba(249, 115, 22, 0.1);
    }

    50% {
        box-shadow: 0 8px 32px rgba(249, 115, 22, 0.4), 0 0 0 8px rgba(249, 115, 22, 0.05);
    }
}

.about-icon svg {
    width: 32px;
    height: 32px;
}

/* ─── Заголовок ───────────────────────────────────────────────────────────── */
.about-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

/* ─── Подзаголовок ────────────────────────────────────────────────────────── */
.about-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 20px;
    font-weight: 500;
}

/* ─── Разделитель ─────────────────────────────────────────────────────────── */
.about-divider {
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--border-secondary),
            transparent);
    margin: 0 0 20px;
}

/* ─── Информация ──────────────────────────────────────────────────────────── */
.about-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-version {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.about-copyright {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
    line-height: 1.5;
}

.about-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
    margin-top: 4px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--accent-primary-glow);
    transition: all 0.2s ease;
}

.about-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}