/* 마음 세탁소 스타일 */
.wash-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    min-height: 100vh;
    padding-bottom: calc(50px + 20px); /* 스크롤버튼 + 띠배너1번 + 띠배너여백 + 고정배너 + 여백 */
}

.wash-header {
    text-align: center;
    margin-bottom: 40px;
}

.wash-title {
    font-size: 42px;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 182, 193, 0.5);
}

.wash-subtitle {
    font-size: 18px;
    color: #5A5A5A;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 입력 영역 */
.input-section {
    animation: fadeInUp 0.6s ease;
}

.input-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 182, 193, 0.2);
}

.input-header {
    text-align: center;
    margin-bottom: 30px;
}

.input-icon {
    font-size: 60px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.input-title {
    font-size: 24px;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 8px;
}

.input-subtitle {
    font-size: 14px;
    color: #8A8A8A;
}

.input-area {
    margin-bottom: 24px;
    position: relative;
}

.worry-input {
    width: 100%;
    padding: 20px;
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: 'Pretendard', sans-serif;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    background: rgba(255, 182, 193, 0.05);
    box-sizing: border-box;
}

.worry-input:focus {
    outline: none;
    border-color: var(--primary-pink);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.1);
}

.worry-input::placeholder {
    color: #B0B0B0;
}

.char-count {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 12px;
    color: #8A8A8A;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
}

.submit-btn {
    width: 100%;
    padding: 18px 32px;
    background: var(--primary-gradient);
    color: #2D2D2D;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Pretendard', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-icon {
    font-size: 20px;
}

/* 결과 영역 */
.result-section {
    animation: fadeInUp 0.6s ease;
}

.result-section.hidden {
    display: none;
}

.result-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF0F5 50%, #F0E6FF 100%);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 182, 193, 0.3);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.15) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.character-area {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.character {
    display: inline-block;
    position: relative;
    animation: bounce 2s ease-in-out infinite;
}

.character-icon {
    font-size: 100px;
    filter: drop-shadow(0 4px 12px rgba(255, 182, 193, 0.4));
    display: inline-block;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    font-size: 24px;
    animation: floatBubble 3s ease-in-out infinite;
    opacity: 0.7;
}

.bubble-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.bubble-2 {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.bubble-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }
}

.message-area {
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.message-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: 0 4px 16px rgba(255, 182, 193, 0.2);
    border: 2px solid rgba(255, 182, 193, 0.3);
    text-align: center;
    position: relative;
    animation: slideIn 0.6s ease;
}

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

.message-icon {
    font-size: 40px;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.message-text {
    font-size: 20px;
    line-height: 1.8;
    color: #2D2D2D;
    font-weight: 500;
    margin: 0;
}

.action-buttons {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.new-worry-btn {
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.9);
    color: #5A5A5A;
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Pretendard', sans-serif;
}

.new-worry-btn:hover {
    background: white;
    border-color: var(--primary-pink);
    color: var(--primary-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.3);
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .wash-container {
        padding: 30px 15px 70px;
    }

    .wash-title {
        font-size: 32px;
    }

    .wash-subtitle {
        font-size: 16px;
    }

    .input-card {
        padding: 30px 20px;
    }

    .input-icon {
        font-size: 50px;
    }

    .input-title {
        font-size: 20px;
    }

    .worry-input {
        font-size: 15px;
        padding: 16px;
    }

    .submit-btn {
        padding: 16px 24px;
        font-size: 16px;
    }

    .result-card {
        padding: 30px 20px;
    }

    .character-icon {
        font-size: 80px;
    }

    .message-card {
        padding: 24px 20px;
    }

    .message-text {
        font-size: 18px;
    }
}
