/**
 * Fiction Flock — Reader Dashboard CSS
 */

.ff-dash-wrap { max-width: 800px; margin: 0 auto; padding: 20px; font-family: 'Lato', sans-serif; color: #1a2e2e; }
.ff-dash-loading { text-align: center; padding: 60px 20px; color: #5a6a6a; }
.ff-dash-spinner { width: 36px; height: 36px; border: 3px solid #e0ede6; border-top-color: #174B4C; border-radius: 50%; animation: ff-spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes ff-spin { to { transform: rotate(360deg); } }
.ff-dash-login-prompt { text-align: center; padding: 40px; color: #5a6a6a; }
.ff-dash-login-prompt a { color: #174B4C; font-weight: 700; }

/* HEADER */
.ff-dash-header { display: flex; align-items: center; gap: 20px; background: #FAF8F4; border-radius: 16px; padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 12px rgba(23,75,76,0.08); flex-wrap: wrap; }
.ff-dash-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #174B4C; }
.ff-dash-avatar-wrap { flex-shrink: 0; }
.ff-dash-user-info { flex: 1; min-width: 150px; }
.ff-dash-welcome { font-family: 'Playfair Display', serif; font-size: 22px; color: #174B4C; margin-bottom: 4px; }
.ff-dash-identity { font-size: 14px; color: #E89528; font-weight: 700; font-style: italic; margin: 0; }
.ff-dash-feathers-wrap { text-align: center; background: #174B4C; color: #fff; border-radius: 12px; padding: 12px 20px; }
.ff-dash-feathers-count { font-size: 28px; font-weight: 700; line-height: 1; }
.ff-dash-feathers-label { font-size: 12px; opacity: 0.85; margin-top: 2px; }

/* SECTIONS */
.ff-dash-section { background: #fff; border-radius: 16px; padding: 24px; margin-bottom: 20px; border: 1px solid #e5e0d8; }
.ff-dash-section-title { font-family: 'Playfair Display', serif; font-size: 18px; color: #174B4C; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #e5e0d8; }

/* QUEST PROGRESS */
.ff-dash-quest-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0ede6; }
.ff-dash-quest-item:last-child { border-bottom: none; padding-bottom: 0; }
.ff-dash-quest-check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #e0ddd8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.ff-dash-quest-check.complete { background: #174B4C; border-color: #174B4C; color: #fff; }
.ff-dash-quest-label { flex: 1; font-size: 14px; color: #1a2e2e; }
.ff-dash-quest-label.complete { color: #5a6a6a; text-decoration: line-through; }
.ff-dash-adventure-progress { font-size: 13px; color: #5a6a6a; margin-bottom: 16px; font-style: italic; }

/* TBR */
.ff-dash-tbr-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #f0ede6; }
.ff-dash-tbr-item:last-child { border-bottom: none; }
.ff-dash-tbr-cover { width: 48px; height: 68px; object-fit: cover; border-radius: 4px; box-shadow: 1px 2px 6px rgba(0,0,0,0.12); flex-shrink: 0; }
.ff-dash-tbr-cover-placeholder { width: 48px; height: 68px; background: #e0ede6; border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.ff-dash-tbr-info { flex: 1; }
.ff-dash-tbr-title { font-weight: 700; font-size: 14px; color: #174B4C; margin-bottom: 2px; }
.ff-dash-tbr-author { font-size: 13px; color: #5a6a6a; font-style: italic; margin-bottom: 8px; }
.ff-dash-tbr-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ff-dash-tbr-btn { font-size: 12px; color: #174B4C; border: 1px solid #174B4C; padding: 4px 10px; border-radius: 5px; text-decoration: none; font-weight: 700; }
.ff-dash-tbr-btn:hover { background: #174B4C; color: #fff; }
.ff-dash-tbr-empty { font-size: 14px; color: #5a6a6a; font-style: italic; text-align: center; padding: 20px; }

/* BADGES */
.ff-dash-badges-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.ff-dash-badge-item { text-align: center; width: 80px; }
.ff-dash-badge-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #E89528; margin-bottom: 6px; }
.ff-dash-badge-placeholder { width: 64px; height: 64px; border-radius: 50%; background: #FAF8F4; border: 2px solid #E89528; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 6px; }
.ff-dash-badge-title { font-size: 11px; color: #5a6a6a; line-height: 1.3; }
.ff-dash-badges-empty { font-size: 14px; color: #5a6a6a; font-style: italic; text-align: center; padding: 20px; }

/* FOOTER */
.ff-dash-footer { text-align: center; padding: 20px 0; }
.ff-dash-btn-ghost { font-size: 13px; color: #5a6a6a; border: 1px solid #e0ddd8; padding: 8px 20px; border-radius: 20px; text-decoration: none; font-family: 'Lato', sans-serif; }
.ff-dash-btn-ghost:hover { border-color: #174B4C; color: #174B4C; }

@media (max-width: 480px) {
    .ff-dash-header { flex-direction: column; text-align: center; }
    .ff-dash-feathers-wrap { width: 100%; }
}
