/* static/css/components/wind_seeds.css - Стили Стихии Ветра (Семена мыслей) */

/* ==========================================================================
   1. ВИДЖЕТ В ПРАВОЙ КОЛОНКЕ
   ========================================================================== */
.wind_seeds_widget {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    background: var(--bg_light_02);
    border: 1px solid var(--border_color);
    border-radius: 16px;
    padding: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

/* Шапка виджета */
.wind_seeds_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.wind_seeds_title_group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wind_seeds_svg_icon {
    color: var(--accent);
    flex-shrink: 0;
    display: block;
}

.wind_seeds_widget .wind_seeds_title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text_dim);
    margin: 0;
}

/* Бейдж суточного лимита */
.seeds_daily_badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text_dim);
    background: var(--bg_light_01);
    border: 1px solid var(--border_color);
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   2. КАРТОЧКА ПОЙМАННОЙ МЫСЛИ И ЗАГЛУШКА
   ========================================================================== */
.wind_seeds_content {
    display: flex;
    flex-direction: column;
}

.caught_seed_box,
.empty_seeds_box {
    background: var(--bg_light_01);
    border: 1px dashed var(--border_color);
    border-radius: 12px;
    padding: 12px;
    box-sizing: border-box;
}

/* Состояние А: Пойманная мысль */
.caught_seed_box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.caught_seed_text {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text_main);
    font-style: italic;
    word-break: break-word;
    margin: 0;
}

.caught_seed_meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid var(--border_color);
    gap: 8px;
}

.caught_seed_author {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text_dim);
}

.caught_seed_actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn_seed_action {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.btn_seed_action:hover {
    opacity: 0.75;
}

.btn_seed_release {
    color: var(--text_dim);
}

.btn_seed_reply {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Состояние Б: Пустое состояние */
.empty_seeds_box {
    text-align: center;
    padding: 14px 10px;
}

.empty_seeds_note {
    font-size: 0.78rem;
    color: var(--text_dim);
    line-height: 1.35;
    display: block;
}

/* ==========================================================================
   3. КНОПКА ЗАПУСКА МЫСЛИ
   ========================================================================== */
.btn_launch_seed {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn_launch_seed:hover {
    opacity: 0.92;
}

.btn_launch_seed:active {
    transform: scale(0.98);
}

.seed_price_badge {
    background: rgba(0, 0, 0, 0.15);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1;
}

/* ==========================================================================
   4. МОДАЛЬНОЕ ОКНО
   ========================================================================== */
.seed_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
    box-sizing: border-box;
}

.seed_modal_dialog {
    background: var(--bg_base, #ffffff);
    border: 1px solid var(--border_color);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.seed_modal_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.seed_modal_title_group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.seed_modal_title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text_main);
}

.seed_modal_close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text_dim);
    cursor: pointer;
    padding: 0;
}

.seed_modal_close:hover {
    color: var(--text_main);
}

.seed_modal_body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seed_textarea {
    width: 100%;
    height: 110px;
    padding: 12px;
    background: var(--bg_light_01);
    border: 1px solid var(--border_color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text_main);
    resize: none;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

.seed_textarea:focus {
    border-color: var(--accent);
}

.seed_modal_counter {
    display: flex;
    justify-content: flex-end;
    font-size: 0.75rem;
    color: var(--text_dim);
}

.seed_modal_footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.btn_seed_cancel {
    background: transparent;
    border: 1px solid var(--border_color);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text_dim);
    cursor: pointer;
}

.btn_seed_cancel:hover {
    background: var(--bg_light_01);
}

.btn_seed_submit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn_seed_submit:hover {
    opacity: 0.92;
}

/* ==========================================================================
   5. АНИМАЦИЯ ОТЛЕТАЮЩЕГО ПЁРЫШКА И ПУЛЬС КОШЕЛЬКА
   ========================================================================== */
.wind_feather_fly_fx {
    position: fixed;
    z-index: 100005;
    pointer-events: none;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent);
    animation: windFeatherFly 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.wind_feather_fly_fx .feather_symbol {
    font-size: 1.15rem;
    display: inline-block;
}

@keyframes windFeatherFly {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.6) rotate(0deg);
    }
    15% {
        opacity: 1;
        transform: translate(calc(-50% + 10px), -20px) scale(1.15) rotate(12deg);
    }
    45% {
        opacity: 0.95;
        transform: translate(calc(-50% - 10px), -55px) scale(1) rotate(-14deg);
    }
    75% {
        opacity: 0.65;
        transform: translate(calc(-50% + 6px), -90px) scale(0.9) rotate(8deg);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% - 4px), -130px) scale(0.7) rotate(-4deg);
        filter: blur(1px);
    }
}

.feather_wallet_pulse {
    animation: featherPulse 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes featherPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.28); color: var(--accent); }
    100% { transform: scale(1); }
}
