/* Books Directory Grid - Premium Styles */
.fcom-books-grid-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}

.fcom-books-empty {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px dashed #e2e8f0;
    border-radius: 16px;
    color: #64748b;
}
.fcom-books-empty svg {
    margin-bottom: 15px;
    color: #94a3b8;
}
.fcom-books-empty p {
    font-size: 16px;
    font-weight: 500;
}

/* Grid Layout */
.fcom-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Book Card */
.fcom-book-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fcom-book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

/* Gated/Locked Card State */
.fcom-book-card.gated .fcom-book-card-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
}

/* Cover Container */
.fcom-book-card-cover {
    position: relative;
    width: 100%;
    height: 220px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.fcom-book-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.fcom-book-card:hover .fcom-book-card-cover img {
    transform: scale(1.05);
}

/* Fallback Cover */
.fcom-book-cover-fallback {
    color: #94a3b8;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lock Badge */
.fcom-book-card-lock {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.fcom-book-card-lock svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Card Information Block */
.fcom-book-card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fcom-book-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 6px;
}

.fcom-book-card-author {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 15px;
    display: block;
}

/* Book Stats Meta */
.fcom-book-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}
.fcom-book-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Progress Indicator */
.fcom-book-progress-bar-wrapper {
    margin-bottom: 20px;
}
.fcom-book-progress-bar {
    height: 6px;
    background: #4f46e5;
    border-radius: 3px;
    margin-bottom: 6px;
}
.fcom-book-progress-bar-wrapper::before {
    content: '';
    display: block;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    position: absolute;
    z-index: 0;
}
.fcom-book-progress-bar {
    position: relative;
    z-index: 1;
}
.fcom-book-progress-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #4f46e5;
    letter-spacing: 0.02em;
}

/* Button CTA */
.fcom-book-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.fcom-book-btn:not(.locked, .completed) {
    background: #4f46e5;
    color: #ffffff;
}
.fcom-book-btn:not(.locked, .completed):hover {
    background: #4338ca;
}
.fcom-book-btn.completed {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}
.fcom-book-btn.completed:hover {
    background: #e2e8f0;
}
.fcom-book-btn.locked {
    background: #f8fafc;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    cursor: not-allowed;
}
