/* ---------------------------------------------
 * BASE & LAYOUT
 * --------------------------------------------- */
#kk-forum-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
    padding-bottom: 100px; /* Space for FAB */
}

.forum-post {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 6px solid #4CAF50;
}

.post-title { font-size: 1.4rem; color: #333; margin: 0 0 5px 0; }
.forum-user { font-size: 0.85rem; color: #888; margin-bottom: 10px; }
.post-crop { display: inline-block; background: #e8f5e9; padding: 5px 12px; border-radius: 20px; font-weight: bold; font-size: 0.9rem; margin-bottom: 15px; }

/* ---------------------------------------------
 * REPLIES
 * --------------------------------------------- */
.forum-replies { margin-top: 15px; border-top: 1px solid #eee; padding-top: 10px; }
.single-reply { background: #f9f9f9; padding: 10px; border-radius: 8px; margin-bottom: 5px; font-size: 0.9rem; }
.single-reply strong { color: #4CAF50; }
.reply-btn { background: #eee; border: none; padding: 8px 15px; border-radius: 20px; cursor: pointer; font-weight: 600; margin-top: 10px; }

.reply-form { display: none; margin-top: 15px; background: #f0f0f0; padding: 15px; border-radius: 10px; }
.reply-form input, .reply-form textarea { width: 100%; margin-bottom: 10px; border: 1px solid #ddd; padding: 10px; border-radius: 5px; }

/* ---------------------------------------------
 * MODERN FLOATING ACTION BUTTON (FAB)
 * --------------------------------------------- */
.kk-forum-floating-wrap {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kk-floating-label {
    background: #2c3e50;
    color: white;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 8px;
    white-space: nowrap;
    animation: kk-bounce 2s infinite;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#kk-forum-form-btn {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(230,126,34,0.4);
    cursor: pointer;
    transition: 0.3s;
}

#kk-forum-form-btn .kk-button-text { display: none; } /* Mobile hidden */
#kk-forum-form-btn .dashicons { font-size: 28px; width: 28px; height: 28px; }

@keyframes kk-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Desktop FAB Update */
@media (min-width: 768px) {
    .kk-floating-label { display: none; }
    #kk-forum-form-btn {
        width: auto;
        height: 50px;
        padding: 0 25px;
        border-radius: 30px;
    }
    #kk-forum-form-btn .kk-button-text { display: inline; margin-left: 8px; font-weight: bold; font-size: 1rem; }
}

/* ---------------------------------------------
 * MODAL FORM
 * --------------------------------------------- */
#kk-forum-form {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
}

#kk-forum-form form {
    background: #fff;
    width: 90%;
    max-width: 450px;
    padding: 25px;
    border-radius: 15px;
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
}

#kk-forum-form input, #kk-forum-form select, #kk-forum-form textarea {
    width: 100%; padding: 12px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px;
}

#kk-forum-form button[type="submit"] {
    background: #4CAF50; color: white; border: none; width: 100%; padding: 12px; border-radius: 8px; font-weight: bold; cursor: pointer;
}

#kk-forum-form-close {
    background: #f44336; color: white; border: none; width: 100%; padding: 10px; border-radius: 8px; margin-top: 10px; cursor: pointer;
}