/* 글쓰기 모달 오버레이 */
.write-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
}

.write-modal-overlay.active {
    display: flex;
}

/* 글쓰기 카드 */
.write-card {
    background: white;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.3s ease-out;
}

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

/* 장식 */
.write-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.write-card-decoration {
    font-size: 20px;
    color: #4A90E2;
    letter-spacing: 10px;
    margin-bottom: 15px;
}

.write-card-title {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
}

/* 감정 선택 영역 */
.emotion-selector {
    margin-bottom: 20px;
}

.emotion-selector-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

.emotion-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.emotion-option {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.emotion-option:hover {
    background: #e8e8e8;
}

.emotion-option.selected {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

/* 글쓰기 영역 */
.write-textarea-container {
    margin-bottom: 20px;
}

.write-textarea {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    font-size: 15px;
    color: #333;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
    background: #fafafa;
}

.write-textarea::placeholder {
    color: #aaa;
}

.write-textarea:focus {
    outline: none;
    border-color: #4A90E2;
    background: white;
}

/* 하단 버튼 영역 */
.write-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.write-cancel-btn {
    color: #999;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 20px;
    transition: color 0.2s;
}

.write-cancel-btn:hover {
    color: #666;
}

.write-submit-btn {
    background: transparent;
    color: #333;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 24px;
}

.write-submit-btn:hover {
    background: #357ABD;
    transform: scale(1.05);
}

.write-submit-btn:active {
    transform: scale(0.95);
}

/* + 버튼 스타일 강화 */
#writeBtn {
    font-size: 28px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    display: inline-block;
    transition: transform 0.2s;
}

#writeBtn:hover {
    transform: scale(1.2);
}

/* 세부 감정 선택 영역 */
.detailed-emotions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.detailed-emotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.detailed-emotion-btn {
    padding: 10px 12px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.detailed-emotion-btn:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

.detailed-emotion-btn.selected {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

/* 음악 선택 영역 */
.music-selector {
    padding: 20px 0;
}

.music-selector-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: block;
}

.music-input-container {
    margin-top: 15px;
}

.music-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: all 0.2s;
}

.music-input:focus {
    outline: none;
    border-color: #4A90E2;
    background: white;
}

.music-input::placeholder {
    color: #aaa;
}

/* 결과 화면 */
.result-container {
    padding: 20px 0;
}

.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 10px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.result-date {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 15px;
    text-align: center;
}

.result-emotion-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.result-content-text {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    min-height: 80px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
}

.result-music {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.result-music-icon {
    font-size: 20px;
}

.result-music-text {
    font-size: 14px;
    opacity: 0.95;
}

/* 단계 전환 애니메이션 */
.step-content {
    animation: fadeIn 0.3s ease-in;
}

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

