/* sheslab — 전역 (+) 플로팅 글쓰기 CTA + 모달 */

/* ── 플로팅 버튼 ───────────────────────────── */
.sl-fab {
    position: fixed;
    right: 22px;
    bottom: 92px; /* 하단 탭바 위 */
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark, #8E5878), var(--secondary, #E8A4B8));
    color: #FFF;
    border: none;
    box-shadow: 0 6px 22px rgba(142, 88, 120, 0.34), 0 2px 8px rgba(142, 88, 120, 0.18);
    cursor: pointer;
    z-index: 920;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 300;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sl-fab:hover  { transform: scale(1.06); box-shadow: 0 8px 28px rgba(142, 88, 120, 0.42); }
.sl-fab:active { transform: scale(0.96); }
@media (max-width: 480px) {
    .sl-fab { right: 16px; bottom: 80px; width: 54px; height: 54px; font-size: 1.7rem; }
}

/* ── 모달 ───────────────────────────────── */
.sl-modal-back {
    position: fixed;
    inset: 0;
    background: rgba(58, 32, 50, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 930;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.sl-modal-back.open { display: flex; }
@media (min-width: 720px) {
    .sl-modal-back { align-items: center; }
}

.sl-modal {
    background: #FEFCFA;
    border-radius: 22px 22px 0 0;
    width: 100%;
    max-width: 540px;
    padding: 22px 22px 26px;
    box-shadow: 0 -10px 40px rgba(142, 88, 120, 0.22);
    animation: sl-modal-up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (min-width: 720px) {
    .sl-modal { border-radius: 22px; max-width: 520px; }
}
@keyframes sl-modal-up {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.sl-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.sl-modal-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--primary-dark, #8E5878);
    margin: 0;
    letter-spacing: 0.01em;
}
.sl-modal-close {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--text-muted, #999);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
}
.sl-modal-close:hover { color: var(--text, #333); background: rgba(0,0,0,0.04); }

.sl-modal-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 14px;
    border: 1px solid rgba(181, 115, 158, 0.22);
    border-radius: 14px;
    background: #FFF;
    font-family: 'Pretendard', sans-serif;
    font-size: 0.96rem;
    line-height: 1.5;
    color: var(--text, #333);
    resize: vertical;
    min-height: 120px;
    max-height: 240px;
}
.sl-modal-textarea:focus {
    outline: none;
    border-color: var(--secondary, #E8A4B8);
    box-shadow: 0 0 0 3px rgba(232, 164, 184, 0.18);
}

.sl-modal-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.sl-modal-nick {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(181, 115, 158, 0.22);
    border-radius: 999px;
    background: #FFF;
    font-family: 'Pretendard', sans-serif;
    font-size: 0.88rem;
    color: var(--text, #333);
}
.sl-modal-nick:focus {
    outline: none;
    border-color: var(--secondary, #E8A4B8);
}
.sl-modal-counter {
    font-family: 'Pretendard', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted, #999);
    white-space: nowrap;
}
.sl-modal-counter.over { color: #C0392B; }

.sl-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}
.sl-modal-cancel {
    appearance: none;
    background: transparent;
    border: 1px solid rgba(181, 115, 158, 0.28);
    padding: 8px 16px;
    border-radius: 999px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 0.84rem;
    color: var(--text-muted, #777);
    cursor: pointer;
}
.sl-modal-submit {
    appearance: none;
    background: linear-gradient(135deg, var(--primary-dark, #8E5878), var(--secondary, #E8A4B8));
    border: none;
    color: #FFF;
    padding: 8px 22px;
    border-radius: 999px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(142, 88, 120, 0.22);
    transition: opacity 0.2s, transform 0.15s;
}
.sl-modal-submit:hover { transform: translateY(-1px); }
.sl-modal-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.sl-modal-msg {
    margin-top: 10px;
    font-family: 'Pretendard', sans-serif;
    font-size: 0.84rem;
    text-align: center;
    color: var(--text-muted, #999);
    min-height: 1.2em;
}
.sl-modal-msg.error   { color: #C0392B; }
.sl-modal-msg.success { color: #2E8B57; }
