/**
 * Fiction Flock — Community Reads CSS
 * ff-community-reads.css
 */
.ff-cr-upload-wrap { max-width: 520px; margin: 0 auto; font-family: 'Lato', sans-serif; }
.ff-cr-notice { padding: 16px; background: #FAF8F4; border-radius: 10px; font-size: 15px; color: #5a6a6a; }
.ff-cr-notice a { color: #174B4C; font-weight: 700; }
.ff-cr-form-title { font-family: 'Playfair Display', serif; font-size: 22px; color: #174B4C; margin-bottom: 6px; }
.ff-cr-form-sub { font-size: 14px; color: #5a6a6a; margin-bottom: 24px; line-height: 1.65; }
.ff-cr-field { margin-bottom: 20px; }
.ff-cr-label { display: block; font-weight: 700; font-size: 13px; color: #1a2e2e; margin-bottom: 7px; }
.ff-cr-input { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px 14px; font-size: 14px; font-family: 'Lato', sans-serif; color: #1a2e2e; }
.ff-cr-input:focus { outline: none; border-color: #174B4C; }
.ff-cr-select { width: 100%; border: 1.5px solid #d5d0c8; border-radius: 8px; padding: 10px 14px; font-size: 14px; font-family: 'Lato', sans-serif; color: #1a2e2e; background: #fff; }
.ff-cr-already { font-size: 13px; color: #E89528; font-weight: 700; margin-top: 6px; }
.ff-cr-dropzone { border: 2px dashed #c4a882; border-radius: 12px; background: #FAF8F4; cursor: pointer; overflow: hidden; min-height: 140px; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s; }
.ff-cr-dropzone:hover { border-color: #174B4C; }
.ff-cr-dropzone-inner { text-align: center; padding: 32px 24px; }
.ff-cr-dropzone-icon { font-size: 36px; margin-bottom: 10px; display: block; }
.ff-cr-dropzone-text { font-size: 15px; color: #1a2e2e; font-weight: 500; margin-bottom: 4px; }
.ff-cr-dropzone-hint { font-size: 12px; color: #5a6a6a; }
.ff-cr-preview-img { width: 100%; max-height: 300px; object-fit: contain; }
.ff-cr-submit-btn { width: 100%; background: #174B4C; color: #fff; font-family: 'Lato', sans-serif; font-weight: 700; font-size: 15px; padding: 14px; border-radius: 10px; border: none; cursor: pointer; transition: background 0.2s; margin-top: 8px; }
.ff-cr-submit-btn:hover:not(:disabled) { background: #1d6364; }
.ff-cr-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ff-cr-msg { font-size: 13px; margin-top: 10px; text-align: center; }
.ff-cr-msg.error { color: #a32d2d; }
.ff-cr-msg.success { color: #0f6e56; }
.ff-cr-success { text-align: center; padding: 48px 24px; }
.ff-cr-success-icon { font-size: 48px; margin-bottom: 12px; }
.ff-cr-success h3 { font-family: 'Playfair Display', serif; font-size: 24px; color: #174B4C; margin-bottom: 8px; }
.ff-cr-success p { font-size: 15px; color: #5a6a6a; }

/* Search */
.ff-cr-search-wrap { display: flex; gap: 8px; }
.ff-cr-search-wrap .ff-cr-input { flex: 1; }
.ff-cr-search-btn { background: #174B4C; color: #fff; border: none; border-radius: 8px; padding: 10px 20px; font-family: 'Lato', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.ff-cr-search-btn:hover { background: #1d6364; }
.ff-cr-search-results { max-height: 300px; overflow-y: auto; border: 1px solid #e0ddd8; border-radius: 8px; margin-top: 8px; margin-bottom: 10px; background: #fff; position: relative; }
.ff-cr-results-list { padding: 8px; }
.ff-cr-result-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 6px; cursor: pointer; border-bottom: 1px solid #f0ede6; }
.ff-cr-result-item:last-child { border-bottom: none; }
.ff-cr-result-item:hover { background: #f0f6f5; }
.ff-cr-result-cover { width: 36px; height: 52px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.ff-cr-result-cover-placeholder { width: 36px; height: 52px; background: #FAF8F4; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.ff-cr-result-title { font-size: 14px; font-weight: 700; color: #174B4C; margin-bottom: 2px; }
.ff-cr-result-author { font-size: 12px; color: #5a6a6a; font-style: italic; }
.ff-cr-no-results { font-size: 13px; color: #5a6a6a; padding: 12px; font-style: italic; }

/* Selected book */
.ff-cr-selected-book { background: #f0f6f5; border: 1px solid #9FE1CB; border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.ff-cr-selected-inner { display: flex; gap: 14px; align-items: center; }
.ff-cr-selected-cover-img { width: 48px; height: 68px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.ff-cr-selected-title { font-size: 14px; font-weight: 700; color: #174B4C; margin-bottom: 2px; }
.ff-cr-selected-author { font-size: 13px; color: #5a6a6a; font-style: italic; margin-bottom: 8px; }
.ff-cr-change-btn { font-size: 12px; color: #174B4C; border: 1px solid #174B4C; background: transparent; padding: 4px 10px; border-radius: 4px; cursor: pointer; }
.ff-cr-cant-find-btn { background: transparent; border: none; color: #5a6a6a; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0; margin-bottom: 16px; display: block; }
.ff-cr-manual-note { font-size: 13px; color: #5a6a6a; font-style: italic; margin-bottom: 12px; }

/* Mobile: stack the search input/button and keep the results box short so it
   never crowds or covers the controls beneath it. */
@media (max-width: 600px) {
    .ff-cr-search-wrap { flex-direction: column; }
    .ff-cr-search-wrap .ff-cr-search-btn { width: 100%; }
    .ff-cr-search-results { max-height: 46vh; margin-bottom: 14px; }
}

/* ---- Polish: brand buttons (beat theme) ---- */
.ff-cr-submit-btn, .ff-cr-search-btn { -webkit-appearance: none !important; appearance: none !important; background: #174B4C !important; color: #fff !important; border: none !important; }
