/* 모달이 에디터 너비를 충분히 사용할 수 있도록 */
#postModal .modal-dialog {
    max-width: none; /* Bootstrap 기본 max-width 해제 */
    width: auto;     /* JS에서 정확한 px를 넣어줌 */
}
/* 여백 제거: 에디터가 꽉 차게 */
#postModal .modal-body {
    padding: 0;
}
/* 스크롤바가 모달 바깥에 생기지 않도록 */
#postModal .modal-content {
    overflow: hidden;
}


.post_step1 .emotions {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 0 10px;
}

.post_step1 .emotions .btn {
    width: 44px;
    height: 44px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% auto;
    outline: none;
    border-radius: 50%;
}
.post_step1 .emotions .btn.natural {
    background-image: url("../images/emotion/natural.png");
}
.post_step1 .emotions .btn.natural.active {
    background-image: url("../images/emotion/natural_active.png");
}

.post_step1 .emotions .btn.happy {
    background-image: url("../images/emotion/happy.png");
}
.post_step1 .emotions .btn.happy.active {
    background-image: url("../images/emotion/happy_active.png");
}

.post_step1 .emotions .btn.love {
    background-image: url("../images/emotion/love.png");
}
.post_step1 .emotions .btn.love.active {
    background-image: url("../images/emotion/love_active.png");
}

.post_step1 .emotions .btn.sad {
    background-image: url("../images/emotion/sad.png");
}
.post_step1 .emotions .btn.sad.active {
    background-image: url("../images/emotion/sad_active.png");
}

.post_step1 .emotions .btn.angry {
    background-image: url("../images/emotion/angry.png");
}
.post_step1 .emotions .btn.angry.active {
    background-image: url("../images/emotion/angry_active.png");
}

.post_step1 .emotions .btn.tire {
    background-image: url("../images/emotion/tire.png");
}
.post_step1 .emotions .btn.tire.active {
    background-image: url("../images/emotion/tire_active.png");
}


/* 모달 전체 */
#postModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: #ffffff;
    overflow: hidden;
}

/* 헤더 */
#postModal .modal-header {
    background: linear-gradient(135deg, #6366f1, #3b82f6); /* 퍼플 → 블루 */
    color: #fff;
    border-bottom: none;
}
#postModal .modal-title {
    font-weight: bold;
}
#postModal .close span {
    color: #fff;
    font-size: 1.5rem;
}

/* 버튼 */
#postModal .btn-primary {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    padding: 8px 18px;
    transition: 0.3s;
}
#postModal .btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #1e40af);
}
#postModal .btn-secondary {
    background: linear-gradient(135deg, #4f46e5, #1e40af);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    padding: 8px 18px;
    transition: 0.3s;
}

#postModal #btnBeforeStep2 {
    background: linear-gradient(135deg, indianred, firebrick);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    padding: 8px 18px;
    transition: 0.3s;
}

#postModal #btnBeforeStep2:hover {
    transform: scale(1.1);
    border-color: rosybrown;
    box-shadow: 0 0 10px rgba(221,160,105,0.4);
}

#postModal #btnBeforeStep2:active {
    border-color: indianred;
    box-shadow: 0 0 12px firebrick;
}

#postModal #btnBeforeStep3 {
    background: linear-gradient(135deg, indianred, firebrick);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    padding: 8px 18px;
    transition: 0.3s;
}

#postModal #btnBeforeStep3:hover {
    transform: scale(1.1);
    border-color: rosybrown;
    box-shadow: 0 0 10px rgba(221,160,105,0.4);
}

#postModal .btn-success:hover {
    background: linear-gradient(135deg, #4f46e5, #1e40af);
}

#postModal .btn-success:hover {
    background: linear-gradient(135deg, #4f46e5, #1e40af);
}

/* 감정 버튼 */
.post_step1 .emotions .btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.post_step1 .emotions .btn:hover {
    transform: scale(1.1);
    border-color: #6366f1;
    box-shadow: 0 0 10px rgba(99,102,241,0.4);
}
.post_step1 .emotions .btn.active {
    border-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59,130,246,0.6);
}

/* 입력 textarea */
#postModal textarea {
    border-radius: 12px;
    border: 1.5px solid #d1d5db;
    transition: all 0.2s;
}
#postModal textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 6px rgba(99,102,241,0.3);
}


