/* Tab Styles */
.readingTabs {
    margin-bottom: 2rem;
}

/* Filter Styles - inheriting from catalogue */
.reading-filters {
    margin-bottom: 1.5rem;
}

/* Stats Grid */
.statsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.statCard {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s ease;
}

.statCard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.statCard h4 {
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.statNumber {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
    margin: 0;
}

/* Language Stats */
.language-stats {
    margin-top: 3rem;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.language-breakdown {
    margin-top: 1rem;
}

.language-stat {
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

/* Filter state for items */
.filterable-item {
    transition: opacity 0.3s ease;
}

.filterable-item.hidden {
    display: none !important;
}

/* Results summary */
.results-summary {
    margin-bottom: 1rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .statsGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .statNumber {
        font-size: 2rem;

    }
}

/* Tab Content Visibility */
.profileContentInnerContent {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.profileContentInnerContent.active {
    display: block;
}

/* Tab Navigation Styling */
.readingTabs li {
    cursor: pointer;
    transition: all 0.3s ease;
}

.readingTabs li:hover {
    background: #e9ecef;
}

.readingTabs li.active {
    background: #007bff;
    color: white;
}

/* Animation for tab switch */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-style: italic;
}

/* Reading header specific */
.reading-header {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('/images/bookshelf.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 50vh;
}