/* =====================================================
   Dashboard Header Band
   ===================================================== */

.ff-dashboard-header {
    background: #f2f3f0;
    padding: 20px 32px;
    border-radius: 18px;
    margin-bottom: 48px;
}

/* =====================================================
   Header Blocks
   ===================================================== */

.ff-header-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* =====================================================
   Header Titles / Labels
   ===================================================== */

.ff-header-title,
.ff-header-label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
}

/* =====================================================
   Header Stats
   ===================================================== */

.ff-header-stat {
    font-size: 44px;
    font-weight: 600;
    line-height: 1;
    color: #000;
}

.ff-header-sub {
    font-size: 13px;
    color: #666;
}

/* =====================================================
   Header Buttons
   ===================================================== */

.ff-dashboard-header .ff-btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 999px;
    background: #ffffff;
    color: #3f5d4f;
    border: 1px solid #d6ddd8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.ff-dashboard-header .ff-btn:hover {
    background: #eef2ef;
    transform: translateY(-1px);
}

/* =====================================================
   Currently Reading – IMAGE POLISH ONLY
   (Elementor owns the card shell)
   ===================================================== */

.ff-currently-reading img {
    display: block;
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

/* Title beside cover */
.ff-currently-reading-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}

/* Pages / meta text */
.ff-currently-reading-pages {
    font-size: 13px;
    color: #666;
}

/* =====================================================
   Dashboard Tabs
   ===================================================== */

.ff-tab-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
}

.ff-tab-button {
    background: transparent;
    border: none;
    padding: 6px 0;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    color: #777;
}

.ff-tab-button:hover {
    color: #333;
}

.ff-tab-button.is-active {
    color: #000;
}

.ff-tab-button.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #000;
}

/* =====================================================
   Tab Panels
   ===================================================== */

.ff-tab-panel {
    display: none;
}

.ff-tab-panel.is-active {
    display: block;
}

/* Reviews grid – cover sizing */
.ff-tab-panel[data-tab="reviews"] .ff-book img {
    max-width: 140px;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* =====================================================
   Book Grid
   ===================================================== */

.ff-book-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px 24px;
}

@media (max-width: 1280px) {
    .ff-book-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1024px) {
    .ff-book-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .ff-book-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .ff-book-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   Book Items
   ===================================================== */

.ff-book {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

}

.ff-book img {
    max-width: 120px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 10px 0;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* =====================================================
   Star Rating
   ===================================================== */

.ff-book-stars {
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom:6px;
    color: #d4a574;
}

/* =====================================================
   Edit / View Links
   ===================================================== */

.ff-book-links {
    font-size: 13px;
    opacity:.75;
    letter-spacing: 0.02em;
    margin-top: 4px;
    color: #555;
}

.ff-book-links a {
    color: inherit;
    text-decoration: none;
}

.ff-book-links a:hover {
    text-decoration: underline;
}

/* =====================================================
   Empty State
   ===================================================== */

.ff-empty-state {
    font-size: 16px;
    color: #666;
    margin-top: 24px;
    text-align: center;
}
/* ===========================
   Dashboard Button Hierarchy
   =========================== */

/* Primary action */
.ff-btn.ff-primary {
    background: #6f8f79;
    color: #ffffff;
    border: none;
}

/* Secondary actions */
.ff-btn.ff-secondary {
    background: #ffffff;
    color: #3f5d4f;
    border: 1px solid #d6ddd8;
}

/* Calm hover */
.ff-btn.ff-primary:hover {
    background: #5f7f6a;
}

.ff-btn.ff-secondary:hover {
    background: #eef2ef;
}
