/* Frontend Post Composer styles */

.fpc-floating-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99998;
    background: #1e7e34;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fpc-floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.3);
}

.fpc-inline-btn {
    background: #1e7e34;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.fpc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.fpc-modal-overlay.fpc-active {
    display: flex;
}

.fpc-modal {
    background: #fff;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fpc-pop 0.18s ease-out;
}

@keyframes fpc-pop {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.fpc-modal h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 20px;
}

.fpc-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}
.fpc-modal-close:hover {
    color: #000;
}

#fpc-post-form label {
    display: block;
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

#fpc-post-form input[type="text"],
#fpc-post-form input[type="email"],
#fpc-post-form select,
#fpc-post-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    box-sizing: border-box;
    font-family: inherit;
}

#fpc-post-form textarea {
    resize: vertical;
}

.fpc-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.fpc-submit-btn {
    background: #1e7e34;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.fpc-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fpc-spinner {
    font-size: 13px;
    color: #666;
}

.fpc-form-message {
    margin-top: 14px;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    display: none;
}
.fpc-form-message.fpc-success {
    display: block;
    background: #e6f4ea;
    color: #1e7e34;
    border: 1px solid #b7e0c2;
}
.fpc-form-message.fpc-error {
    display: block;
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f3b9b3;
}

.fpc-login-notice {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
}

@media (max-width: 480px) {
    .fpc-floating-btn {
        right: 16px;
        bottom: 16px;
        padding: 12px 18px;
        font-size: 14px;
    }
    .fpc-modal {
        padding: 20px;
    }
}
