/* ==========================================================================
   FEATURED PAGE (UITGELICHT) STYLES
   Used on: /featured page
   Components: Pages/Featured/Index.razor
   ========================================================================== */

.featured-page {
    min-height: 100vh;
    background: #f9fafb;
}

.featured-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 0;
}

.featured-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.featured-hero .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 0;
    color: white;
}

.featured-intro {
    margin-top: 2rem;
}

.featured-intro .lead {
    color: #6b7280;
    line-height: 1.8;
}

/* Person Section */
.person-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.person-card {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #e5e7eb;
}

.person-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid #667eea;
}

.person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-image-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.person-image-placeholder i {
    font-size: 5rem;
    color: white;
    opacity: 0.8;
}

.person-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.person-role {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.person-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.verified-badge i {
    font-size: 1rem;
}

/* Recommendations */
.recommendations-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.recommendations-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.recommendations-header i {
    color: #667eea;
}

.list-description {
    color: #6b7280;
    font-size: 0.9375rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Featured Books Grid - Similar to /books page */
.featured-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.featured-book-card {
    position: relative;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.featured-book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.featured-book-card:hover .featured-book-overlay {
    opacity: 1;
}

.featured-book-card:hover .featured-book-info {
    opacity: 0;
}

.featured-book-card:hover .featured-book-actions {
    opacity: 1;
    transform: translateY(0);
}

.featured-book-rank {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.featured-book-cover {
    position: relative;
    width: 100%;
    padding-top: 150%;
    overflow: hidden;
    background: #f9fafb;
}

.featured-book-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-book-card:hover .featured-book-cover img {
    transform: scale(1.05);
}

.featured-book-cover-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.featured-book-cover-placeholder i {
    font-size: 3rem;
    opacity: 0.5;
}

.featured-book-rating {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.featured-book-rating i {
    color: #fbbf24;
    font-size: 0.75rem;
}

.featured-book-rating span {
    color: #1f2937;
    font-size: 0.75rem;
}

.featured-book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
    pointer-events: none;
}

.featured-book-info {
    padding: 0.75rem;
    transition: opacity 0.3s;
}

.featured-book-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 2.3em;
}

.featured-book-author {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-book-note {
    position: absolute;
    bottom: 3.5rem;
    left: 0;
    right: 0;
    padding: 0.5rem 0.75rem;
    background: rgba(102, 126, 234, 0.95);
    color: white;
    font-size: 0.75rem;
    line-height: 1.3;
    display: flex;
    align-items: start;
    gap: 0.25rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 2;
}

.featured-book-card:hover .featured-book-note {
    opacity: 1;
    transform: translateY(0);
}

.featured-book-note i {
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.featured-book-note span {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-book-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    display: flex;
    gap: 0.25rem;
    z-index: 3;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.featured-book-actions .btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.featured-book-actions .btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.featured-book-actions .btn i {
    font-size: 1rem;
}

/* Legacy styles - kept for backward compatibility but unused */
.books-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.book-rank-badge {
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.book-cover-small {
    position: relative;
    width: 100px;
    aspect-ratio: 2/3;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.book-cover-small:hover {
    transform: scale(1.05);
}

.book-cover-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-cover-placeholder-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover-placeholder-small i {
    font-size: 2rem;
    color: white;
    opacity: 0.6;
}

.book-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.book-title:hover {
    color: #667eea;
}

.book-author {
    color: #6b7280;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.recommendation-quote {
    background: white;
    border-left: 4px solid #667eea;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    position: relative;
}

.recommendation-quote i {
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    font-size: 2rem;
    color: #667eea;
    opacity: 0.3;
}

.recommendation-quote p {
    font-style: italic;
    color: #374151;
    margin: 0 0 0.5rem 0;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.recommendation-quote .recommender {
    display: block;
    color: #667eea;
    font-weight: 600;
    font-size: 0.875rem;
    padding-left: 1.5rem;
}

.book-rating-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.book-rating-small i {
    color: #fbbf24;
}

.book-rating-small span {
    font-weight: 600;
    color: #1f2937;
}

.book-rating-small .review-count {
    color: #9ca3af;
    font-weight: 400;
}

/* Empty State */
.empty-state {
    background: white;
    border-radius: 1rem;
    padding: 4rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.empty-state h3 {
    color: #1f2937;
    font-weight: 600;
}

.empty-state p {
    color: #6b7280;
    font-size: 1.125rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .person-card {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .featured-hero h1 {
        font-size: 2rem;
    }

    .featured-hero .lead {
        font-size: 1.125rem;
    }

    .person-section {
        padding: 1.5rem;
    }

    .person-image,
    .person-image-placeholder {
        width: 120px;
        height: 120px;
    }

    .person-image-placeholder i {
        font-size: 4rem;
    }

    /* Featured books grid mobile */
    .featured-books-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .featured-book-card {
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        border-radius: 0.5rem;
    }

    .featured-book-overlay {
        opacity: 0.6;
    }

    .featured-book-card:hover .featured-book-overlay {
        opacity: 0.8;
    }

    .featured-book-info {
        padding: 0.5rem;
    }

    .featured-book-title {
        font-size: 0.8125rem;
        height: 2.1em;
    }

    .featured-book-author {
        font-size: 0.6875rem;
    }

    .featured-book-actions {
        opacity: 1;
        transform: translateY(0);
        bottom: 0;
        padding: 0.375rem;
        gap: 0.25rem;
    }

    .featured-book-actions .btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.25rem;
        backdrop-filter: blur(8px);
        background: rgba(37, 99, 235, 0.95); /* Solid blue background */
        border: 1px solid #2563eb;
        color: white;
    }

    .featured-book-actions .btn:hover {
        background: rgba(29, 78, 216, 0.95);
        border-color: #1d4ed8;
    }

    .featured-book-actions .btn i {
        font-size: 0.875rem;
    }

    .featured-book-rank {
        top: 0.375rem;
        left: 0.375rem;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .featured-book-rating {
        top: 0.375rem;
        right: 0.375rem;
        padding: 0.25rem 0.375rem;
    }

    .featured-book-rating i,
    .featured-book-rating span {
        font-size: 0.6875rem;
    }

    .featured-book-note {
        bottom: 3rem;
        padding: 0.375rem 0.5rem;
        font-size: 0.6875rem;
        opacity: 0;
    }

    .featured-book-card:hover .featured-book-note {
        opacity: 1;
    }

    .recommendations-header h4 {
        font-size: 1.125rem;
    }
}
