/* Конструктор поздравлений (11.09.2026).
   Полагаемся на существующие токены проекта (glass-effect, text-blue,
   btn-primary) и добавляем только сами шаги и карточки результата. */

.greeting-widget {
    max-width: 720px;
    margin: 0 auto;
}

/* Фиксированная высота шагов: при переходах «Назад»/«Далее» виджет
   не дёргается по вертикали, даже если шаг короче. */
.greeting-step {
    min-height: 360px;
}

/* Кнопки навигации одинаковой ширины и в одном лейауте на всех шагах. */
.greeting-nav {
    align-items: center;
}

.greeting-nav .btn {
    min-width: 150px;
}

.greeting-nav-spacer {
    min-width: 150px;
}

.greeting-step-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding: 0;
    color: #eafcff;
    text-shadow: 0 0 14px rgba(142, 232, 255, 0.35);
}

.greeting-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.greeting-chip {
    cursor: pointer;
}

.greeting-chip-label {
    display: inline-block;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(79, 172, 254, 0.35);
    border-radius: 999px;
    background: rgba(16, 17, 30, 0.7);
    color: #d4ebff;
    transition: all 0.18s ease;
    user-select: none;
}

.greeting-chip:hover .greeting-chip-label {
    border-color: #89ecff;
    color: #fff;
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.25);
}

.greeting-chip input:checked + .greeting-chip-label {
    background: rgba(0, 234, 255, 0.14);
    border-color: rgba(0, 234, 255, 0.85);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 18px rgba(0, 234, 255, 0.4);
}

.greeting-chip input:focus-visible + .greeting-chip-label {
    outline: 2px solid #89ecff;
    outline-offset: 2px;
}

.greeting-widget .form-label {
    color: #d4ebff;
}

.greeting-widget .form-text {
    color: #b5c0df;
}

.greeting-widget .form-control::placeholder {
    color: rgba(181, 192, 223, 0.7);
}

.greeting-generate-btn {
    max-width: 720px;
    margin: 0 auto;
}

/* Карточки вариантов результата */
.greeting-variant-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.greeting-variant-text {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.65;
    min-height: 150px;
    flex: 1 1 auto;
    font-size: 0.95rem;
}

.greeting-variant-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.greeting-song-btn {
    position: relative;
    overflow: hidden;
}

.greeting-song-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: skewX(-20deg);
    animation: greeting-shine 2.6s ease-in-out infinite;
}

@keyframes greeting-shine {
    0% { left: -60%; }
    55% { left: 120%; }
    100% { left: 120%; }
}

@media (max-width: 575px) {
    .greeting-widget {
        padding: 0;
    }
}