/* ════════════════════════════════════════════════════════════
 * GBI Slawi — forum-compose.css
 * Form compose diskusi forum
 * ════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════
   FORUM COMPOSE — Two-panel card (mirip psukses)
   Tambahkan ke style.css (sebelum tutup atau di bagian forum)
   ════════════════════════════════════════════════════════════ */

/* ── Wrapper dua panel ─────────────────────────────────────── */
.fcompose-wrap {
    display: flex;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px var(--gold-border);
    animation: gcAuthSlideUp .28s ease;
}

/* ── Panel Kiri ─────────────────────────────────────────────── */
.fcompose-left {
    width: 36%;
    flex-shrink: 0;
    background: linear-gradient(165deg, var(--bg2) 0%, #110e06 100%);
    border-right: 1px solid var(--gold-border);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.fcompose-left-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 200, 66, .1) 0%, transparent 70%);
    top: -60px;
    right: -80px;
    pointer-events: none;
}

.fcompose-left-glow--b {
    width: 160px;
    height: 160px;
    top: auto;
    right: auto;
    bottom: -30px;
    left: -50px;
    background: radial-gradient(circle, rgba(245, 200, 66, .06) 0%, transparent 70%);
}

/* Brand */
.fcompose-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fcompose-brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #c9a200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #000;
    font-weight: 700;
    flex-shrink: 0;
}

.fcompose-brand-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

/* Body tengah panel kiri */
.fcompose-left-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 20px 0;
}

/* Ikon ring */
.fcompose-icon-ring {
    position: relative;
    width: 78px;
    height: 78px;
    flex-shrink: 0;
}

.fcompose-icon-ring__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--gold-border);
    animation: psuksesRingPulse 2.6s ease-in-out infinite;
}

.fcompose-icon-ring__pulse--2 {
    inset: -10px;
    opacity: .4;
    animation-delay: .7s;
}

.fcompose-icon-emoji {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 200, 66, .2), rgba(245, 200, 66, .06));
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    animation: psuksesIconPop .45s cubic-bezier(0.34, 1.56, 0.64, 1) .05s both;
}

.fcompose-left-title {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--text);
}

.fcompose-left-sub {
    font-size: 12.5px;
    color: var(--text2);
    line-height: 1.6;
}

/* Ayat */
.fcompose-verse {
    font-size: 12.5px;
    font-style: italic;
    color: var(--text2);
    line-height: 1.7;
    border-left: 2px solid var(--gold-border);
    padding-left: 12px;
    margin: 0;
}

.fcompose-verse cite {
    display: block;
    font-style: normal;
    font-size: 11px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: .04em;
    margin-top: 6px;
}

/* ── Panel Kanan ─────────────────────────────────────────────── */
.fcompose-right {
    flex: 1;
    background: var(--bg3);
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

/* Sapaan */
.fcompose-greet {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fcompose-greet-chip {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
}

.fcompose-greet-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
    margin: 0;
}

.fcompose-greet-name span {
    color: var(--gold);
}

.fcompose-greet-sub {
    font-size: 12.5px;
    color: var(--text2);
    line-height: 1.6;
    margin: 0;
}

/* Field */
.fcompose-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fcompose-field-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text3);
}

.fcompose-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg2);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.fcompose-input:focus {
    border-color: var(--gold-border);
    box-shadow: 0 0 0 3px rgba(245, 200, 66, .08);
}

.fcompose-textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg2);
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    line-height: 1.65;
    resize: vertical;
    min-height: 100px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.fcompose-textarea:focus {
    border-color: var(--gold-border);
    box-shadow: 0 0 0 3px rgba(245, 200, 66, .08);
}

.fcompose-count-row {
    text-align: right;
    font-size: 11px;
    color: var(--text3);
}

/* Alert */
.fcompose-alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid transparent;
    animation: gcAuthSlideUp .2s ease;
}

.fcompose-alert.error {
    background: rgba(220, 60, 60, .1);
    border-color: rgba(220, 60, 60, .3);
    color: #ff6b6b;
}

.fcompose-alert.success {
    background: rgba(46, 213, 115, .1);
    border-color: rgba(46, 213, 115, .3);
    color: #2ed573;
}

/* Aksi */
.fcompose-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}

.fcompose-btn-primary {
    flex: 1;
    padding: 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), #c9a200);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    border: none;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    font-family: inherit;
}

.fcompose-btn-primary:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.fcompose-btn-primary:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.fcompose-btn-outline {
    padding: 11px 22px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}

.fcompose-btn-outline:hover {
    border-color: var(--gold-border);
    color: var(--gold);
    background: var(--gold-dim);
}

/* ── Responsif ───────────────────────────────────────────────── */
@media (max-width: 680px) {
    .fcompose-left {
        display: none;
    }

    .fcompose-right {
        padding: 22px 18px 20px;
    }
}

/* ════════════════════════════════════════════════════════════
   FORUM COMPOSE (fcp-*) — struktur & gaya identik detail view
   Tambahkan ke style.css setelah bagian .forum-detail-card
   ════════════════════════════════════════════════════════════ */

/* Card — radius penuh (tidak disambung replies-wrap) */
.fcp-card {
    padding: 22px 22px 20px;
    border-radius: 16px;
}

/* Avatar khusus "kamu" — gold ring seperti reply highlight */
.fcp-avatar-you {
    background: linear-gradient(135deg,
            rgba(245, 200, 66, .18),
            rgba(245, 200, 66, .04)) !important;
    border-color: var(--gold-border) !important;
    box-shadow: 0 0 0 3px var(--gold-dim);
}

/* Alert validasi — muncul di antara meta dan title input */
.fcp-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 12px;
    animation: forumReplyIn .2s ease;
    border: 1px solid transparent;
}

.fcp-alert.error {
    background: rgba(220, 60, 60, .08);
    border-color: rgba(220, 60, 60, .25);
    color: #ff7070;
}

.fcp-alert.success {
    background: rgba(46, 213, 115, .08);
    border-color: rgba(46, 213, 115, .25);
    color: #2ed573;
}

/* Input judul — gaya & ukuran sama dengan .forum-detail-title */
.fcp-title-input {
    display: block;
    width: 100%;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin-bottom: 4px;
    font-family: inherit;
    box-sizing: border-box;
    caret-color: var(--gold);
}

.fcp-title-input::placeholder {
    color: var(--text3);
    font-weight: 600;
}

/* Textarea isi — gaya & ukuran sama dengan .forum-detail-body */
.fcp-body-input {
    display: block;
    width: 100%;
    font-size: 14px;
    color: var(--text2);
    line-height: 1.72;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin-bottom: 4px;
    font-family: inherit;
    resize: none;
    min-height: 120px;
    box-sizing: border-box;
    caret-color: var(--gold);
}

.fcp-body-input::placeholder {
    color: var(--text3);
}

/* Counter karakter */
.fcp-count {
    text-align: right;
    font-size: 11px;
    color: var(--text3);
    margin-bottom: 6px;
}

/* Divider tipis antara judul dan isi */
.fcp-divider {
    border: none;
    border-top: 1px dashed var(--border);
    margin: 10px 0 14px;
}

/* Label section (Kategori) */
.fcp-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text3);
    margin-bottom: 10px;
}

/* Tombol Posting — lebih menonjol dari reaction-btn biasa */
.fcp-post-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--gold), #c9a200);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: .02em;
    transition: opacity .2s, transform .15s;
    box-shadow: 0 4px 14px rgba(245, 200, 66, .25);
}

.fcp-post-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.fcp-post-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

/* Pratinjau judul di modal sukses */
.fdiskusi-judul-preview {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
}

/* ── Responsif ───────────────────────────────────────────────── */
@media (max-width: 480px) {
    .fcp-title-input {
        font-size: 17px;
    }
}

