/* ============================================
   年収の壁 固有スタイル
   ============================================ */

/* Slider */
.form-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #34d399, #fbbf24, #f87171);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    margin-top: var(--space-2);
}

.form-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    border: 3px solid #6366f1;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

/* Wall Status */
.wall-status {
    margin-bottom: var(--space-5);
}

.wall-status__current {
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    text-align: center;
    animation: fadeInUp 0.3s ease-out;
}

.wall-status__current--safe {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(52, 211, 153, 0.05));
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.wall-status__current--warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.wall-status__current--danger {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15), rgba(248, 113, 113, 0.05));
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.wall-status__label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.wall-status__value {
    font-size: var(--text-lg);
    font-weight: 800;
}

/* Wall chart */
.wall-chart {
    position: relative;
    height: 220px;
    padding: var(--space-2) 0;
}

.wall-chart__line {
    position: absolute;
    bottom: 30px;
    width: 100%;
    height: 0;
    border-top: 2px dashed;
    opacity: 0.5;
    z-index: 2;
}

.wall-chart__line-label {
    position: absolute;
    right: 0;
    top: -18px;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.wall-chart__bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 180px;
    padding-bottom: 30px;
}

.wall-chart__bar {
    flex: 1;
    min-width: 0;
    position: relative;
    border-radius: 3px 3px 0 0;
    transition: height 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.wall-chart__bar--safe {
    background: linear-gradient(180deg, #6ee7b7, #34d399);
}

.wall-chart__bar--warning {
    background: linear-gradient(180deg, #fde68a, #fbbf24);
}

.wall-chart__bar--danger {
    background: linear-gradient(180deg, #fca5a5, #f87171);
}

.wall-chart__bar--current {
    box-shadow: 0 0 0 2px #6366f1, 0 0 12px rgba(99, 102, 241, 0.4);
}

.wall-chart__bar-tooltip {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 3px 6px;
    font-size: 10px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.wall-chart__bar:hover .wall-chart__bar-tooltip {
    opacity: 1;
}

.wall-chart__bar-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* Wall list */
.wall-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.wall-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s;
}

.wall-item--active {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.08);
}

.wall-item__amount {
    flex-shrink: 0;
    min-width: 70px;
    font-size: var(--text-sm);
    font-weight: 800;
    color: var(--color-text-primary);
}

.wall-item__desc {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.wall-item__tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    margin-left: var(--space-2);
}

.wall-item__tag--safe { background: rgba(52, 211, 153, 0.2); color: #34d399; }
.wall-item__tag--warning { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.wall-item__tag--danger { background: rgba(248, 113, 113, 0.2); color: #f87171; }

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

@media (max-width: 640px) {
    .wall-chart {
        height: 180px;
    }
    .wall-chart__bars {
        height: 140px;
    }
}
