/*
Theme Name: Book Review Child Theme
Description: A child theme for Telugu Booklu book review website
Template: bookreview
Version: 1.0.0
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Navigation Bar Styles */
.main-navigation {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: #f8f9fa;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background-color: #666;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Mobile Search Toggle */
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #666;
    align-items: center;
    justify-content: center;
}

.mobile-search-toggle:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
}

.mobile-search-toggle svg {
    width: 20px;
    height: 20px;
}

/* Logo Styles */
.nav-logo {
    flex: 0 0 auto;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.logo-text {
    color: #333;
}

.logo-icon {
    font-size: 28px;
    margin: 0 5px;
    color: #e74c3c;
}

/* Navigation Menu */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    list-style: none;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
}

/* Sign Up Link Special Styling */
.signup-link {
    background-color: #e74c3c;
    color: #fff !important;
    border-radius: 25px;
    padding: 10px 20px;
}

.signup-link:hover {
    background-color: #c0392b;
    color: #fff !important;
}

.nav-profile .profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 40px;
    border: 1px solid rgba(0,0,0,0.08);
}

.nav-profile .profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
}

.nav-profile .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-profile .profile-initial {
    font-size: 0.9rem;
}

.nav-profile .profile-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

/* Search Bar */
.nav-search {
    flex: 0 0 auto;
}

.search-form {
    position: relative;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    color: #999;
    z-index: 1;
}

.search-field {
    width: 250px;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 25px;
    background-color: #f8f9fa;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-field:focus {
    border-color: #e74c3c;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.nav-search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    z-index: 200;
    display: none;
}

.nav-search-suggestions.visible {
    display: block;
}

.nav-search-suggestions ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.nav-search-suggestions li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
}

.nav-search-suggestions li a:hover {
    background: #f7f7f7;
}

.nav-search-suggestions .suggestion-cover {
    width: 36px;
    height: 48px;
    border-radius: 4px;
    background: #f0f0f0;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-search-suggestions .suggestion-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-search-suggestions .suggestion-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.search-field::placeholder {
    color: #999;
}

/* Mobile Search Toggle */
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #666;
    align-items: center;
    justify-content: center;
}

.mobile-search-toggle:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
}

.mobile-search-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-search-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-search-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 20px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-search-overlay.active .mobile-search-container {
    transform: translateY(0);
}

.mobile-search-close {
    position: absolute;
    top: 20px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-search-close:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
}

.mobile-search-close svg {
    width: 24px;
    height: 24px;
}

.mobile-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.mobile-search-icon {
    position: absolute;
    left: 15px;
    font-size: 18px;
    color: #999;
    z-index: 1;
}

.mobile-search-field {
    flex: 1;
    padding: 14px 50px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    background-color: #f8f9fa;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

.mobile-search-field:focus {
    border-color: #e74c3c;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.mobile-search-submit {
    position: absolute;
    right: 5px;
    background: #e74c3c;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 25px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-search-submit:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.mobile-search-submit svg {
    width: 18px;
    height: 18px;
}

.mobile-search-suggestions {
    margin-top: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.mobile-search-suggestions.visible {
    display: block;
}

.mobile-search-suggestions ul {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.mobile-search-suggestions li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
}

.mobile-search-suggestions li a:hover {
    background: #f7f7f7;
}

.mobile-search-suggestions .suggestion-cover {
    width: 40px;
    height: 52px;
    border-radius: 4px;
    background: #f0f0f0;
    overflow: hidden;
    flex-shrink: 0;
}

.mobile-search-suggestions .suggestion-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-search-suggestions .suggestion-title {
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

.mobile-search-field::placeholder {
    color: #999;
}

/* Main Content */
.main-content {
    padding: 0;
    margin: 0;
    width: 100%;
    margin-top: -20px;
}

/* Featured Books Section */
.featured-books-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 30px 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
}

.featured-books-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #ff6b6b, #ffa8a8);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.featured-books-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.featured-books-container {
    display: flex;
    align-items: center;
    gap: 80px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.featured-books-content {
    flex: 1;
    max-width: 400px;
}

.featured-books-text {
    text-align: left;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 30px;
}

.see-more-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.see-more-btn:hover {
    background-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Book Carousel */
.featured-books-carousel {
    flex: 1;
    position: relative;
}

.books-carousel-container {
    position: relative;
    height: 220px;
    overflow: visible;
}

.books-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.book-cover-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.book-cover {
    position: relative;
    width: 140px;
    height: 190px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: none;
    cursor: pointer;
    overflow: hidden;
    display: inline-block;
    margin: 0 8px;
    vertical-align: top;
}

.book-cover-link:hover .book-cover {
    transform: scale(1.05);
    z-index: 10;
}

.book-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease, transform 0.3s ease;
    border-radius: 8px;
    display: block;
}

.book-cover:hover .book-cover-image {
    filter: blur(5px);
    transform: scale(1.05);
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    padding: 10px 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2;
    pointer-events: none;
    box-sizing: border-box;
}

.book-cover-link:hover .book-overlay,
.book-cover:hover .book-overlay {
    opacity: 1;
    visibility: visible;
}

.book-overlay .book-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #ffffff;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5), 0px 0px 2px rgba(0, 0, 0, 0.3);
    padding: 8px 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    width: calc(100% - 16px);
    display: block;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
}

.book-overlay .book-author {
    display: none; /* Hide author on hover, only show title */
}

.book-author {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.book-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #ffd700;
    font-size: 0.9rem;
}

.star:not(.filled) {
    color: #666;
}

/* Carousel Navigation Dots - Hidden since all books are visible */
.carousel-dots {
    display: none;
}

/* Genre Section */
.genre-section {
    padding: 25px 0 60px 0;
    background-color: #fff;
    position: relative;
    width: 100%;
}

.genre-container {
    width: 100%;
    margin: 0;
    padding: 0 40px;
}

.genre-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.genre-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.view-all-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #c0392b;
}

.genre-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.genre-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 25px 20px;
    text-align: left;
    width: 100%;
    max-width: 220px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: visible;
    box-shadow: none;
}

.genre-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #e74c3c;
}

.genre-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    line-height: 1;
}

.genre-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.genre-count {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 15px 0;
    font-weight: 400;
}

.genre-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.genre-link:hover {
    color: #c0392b;
}

/* Top Reviewed Books Section */
.top-reviewed-section {
    padding: 25px 0 60px 0;
    background-color: #fff;
    position: relative;
    width: 100%;
}

/* Best Selling Books Section */
.best-selling-section {
    padding: 25px 0 60px 0;
    background-color: #fff;
    position: relative;
    width: 100%;
}

/* User Recommended Books Section */
.user-recommended-section {
    padding: 25px 0 60px 0;
    background-color: #fff;
    position: relative;
    width: 100%;
}

/* Upcoming Books Section */
.upcoming-books-section {
    padding: 25px 0 60px 0;
    background-color: #fff;
    position: relative;
    width: 100%;
}

/* Highly Rated Books Section */
.highly-rated-section {
    padding: 25px 0 60px 0;
    background-color: #fff;
    position: relative;
    width: 100%;
}

/* Latest Updated Books Section */
.latest-updated-section {
    padding: 25px 0 60px 0;
    background-color: #fff;
    position: relative;
    width: 100%;
}

/* All Books Section */
.all-books-section {
    padding: 25px 0 60px 0;
    background-color: #fff;
    position: relative;
    width: 100%;
}

.reviewed-container {
    width: 100%;
    margin: 0;
    padding: 0 40px;
}

.reviewed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.reviewed-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.reviewed-books-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.book-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.book-card {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transition: none;
    cursor: pointer;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.book-card:hover {
    transform: none;
    box-shadow: none;
}

.book-card-link:hover .book-card {
    opacity: 0.9;
}

.book-cover-container {
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.book-cover-img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.book-format {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e74c3c;
    text-transform: uppercase;
    margin-bottom: 5px;
    text-align: left;
    display: none; /* Hide book format labels site-wide */
}

.book-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

.book-author {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 8px 0;
    text-align: center;
    font-weight: 400;
    width: 100%;
}

.book-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
    width: 100%;
}

.star {
    color: #ffc107;
    font-size: 1rem;
}

.star:not(.filled) {
    color: #ddd;
}

.star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-text {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* Newly Launched Books Section */
.new-launches-section {
    padding: 25px 0 60px 0;
    background-color: #fff;
    position: relative;
    width: 100%;
}

.launches-container {
    width: 100%;
    margin: 0;
    padding: 0 40px;
}

.launches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.launches-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.launches-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 60px; /* Extra space to prevent last item cutoff */
    box-sizing: border-box;
}

.carousel-nav-buttons-wrapper {
    display: none; /* Hidden on desktop, shown on mobile */
}

.authors-buttons-wrapper {
    display: none; /* Hidden on desktop, shown on mobile */
}

.mobile-nav-btn {
    display: none; /* Hidden on desktop */
}

.desktop-nav-btn {
    display: flex; /* Shown on desktop */
}

.carousel-nav-btn {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px;
    color: #666;
    flex-shrink: 0;
}

.carousel-nav-btn:hover {
    background-color: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.carousel-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-nav-btn:disabled:hover {
    background-color: #f8f9fa;
    color: #666;
    border-color: #e0e0e0;
}

.launches-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin-right: 0;
}

.launches-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
    padding-right: 20px; /* Extra padding for last item */
}

.launch-book-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.launch-book-card {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transition: none;
    cursor: pointer;
    position: relative;
    overflow: visible;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.launch-book-card-link:hover .launch-book-card {
    opacity: 0.9;
}

.launch-book-card:hover {
    transform: none;
    box-shadow: none;
}

.book-cover-wrapper {
    flex-shrink: 0;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

.launch-book-cover {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    width: 100%;
}

.book-format {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e74c3c;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: none; /* Hide book format labels site-wide */
}

.launch-book-card .book-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

.launch-book-card .book-author {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 5px 0;
    text-align: center;
    font-weight: 400;
    width: 100%;
}

.book-year {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
    font-weight: 400;
}

.launch-book-card .book-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
    width: 100%;
}

.launch-book-card .star {
    color: #ffc107;
    font-size: 1rem;
}

.launch-book-card .star:not(.filled) {
    color: #ddd;
}

.launch-book-card .star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.launch-book-card .rating-text {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .search-field {
        width: 200px;
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .featured-books-section {
        padding: 50px 0;
        min-height: 50vh;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        height: 60px;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 1;
    }
    
    .nav-logo {
        order: 2;
        flex: 1;
        text-align: center;
    }
    
    .mobile-search-toggle {
        display: flex;
        order: 3;
    }
    
    .nav-search {
        order: 4;
        display: none;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 20px;
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        text-align: center;
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: #f8f9fa;
        margin-top: 10px;
        display: none;
    }
    
    .nav-item.dropdown:hover .dropdown-menu,
    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }
    
    .logo-link {
        font-size: 18px;
    }
    
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .logo-link {
        font-size: 16px;
    }
    
    .logo-icon {
        font-size: 20px;
    }
    
    /* Ensure carousel is hidden on small mobile screens */
    .featured-books-carousel {
        display: none !important;
    }
    
    
    /* Featured Books Mobile Styles */
    .featured-books-section {
        padding: 40px 0;
        min-height: auto;
    }
    
    .featured-books-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        padding: 0 20px;
    }
    
    .featured-books-content {
        max-width: 100%;
    }
    
    .featured-books-text {
        text-align: center;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    /* Show books in grid on mobile */
    .featured-books-carousel {
        display: block;
    }
    
    .books-carousel-wrapper {
        flex-direction: column;
        gap: 15px;
        height: auto;
    }
    
    .book-cover {
        width: 100px;
        height: 140px;
        margin: 0 5px;
    }
    
    /* Genre Section Mobile */
    .genre-section {
        padding: 50px 0;
    }
    
    .genre-container {
        padding: 0 20px;
        width: 100%;
    }
    
    .genre-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .genre-title {
        font-size: 2rem;
    }
    
    .genre-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        justify-items: center;
    }
    
    .genre-card {
        max-width: 100%;
        min-height: 160px;
        padding: 20px 15px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    
    /* Make 5th card (3rd row) full width */
    .genre-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 100%;
    }
    
    .genre-icon {
        font-size: 2rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .genre-name {
        font-size: 1.1rem;
        margin-bottom: 6px;
        text-align: center;
    }
    
    .genre-count {
        font-size: 0.8rem;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .genre-link {
        font-size: 0.85rem;
        text-align: center;
        display: inline-block;
    }
    
    /* Top Reviewed Books Mobile */
    .top-reviewed-section,
    .best-selling-section,
    .user-recommended-section,
    .upcoming-books-section,
    .highly-rated-section,
    .latest-updated-section,
    .all-books-section {
        padding: 50px 0;
    }
    
    .reviewed-container {
        padding: 0 20px;
    }
    
    .reviewed-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .reviewed-title {
        font-size: 2rem;
    }
    
    .reviewed-books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .book-card {
        padding: 0;
        align-items: center;
        text-align: center;
    }
    
    .book-cover-container {
        text-align: center;
        margin: 0 auto 10px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .book-cover-img {
        width: 80px;
        height: 120px;
        margin: 0 auto;
    }
    
    .book-format {
        text-align: center;
        margin: 0 auto 5px;
        display: none; /* Hide book format labels site-wide */
    }
    
    .book-title {
        font-size: 0.95rem;
        text-align: center;
        margin: 0 auto 5px;
    }
    
    .book-author {
        font-size: 0.8rem;
        text-align: center;
        margin: 0 auto 8px;
    }
    
    .book-rating {
        gap: 3px;
        justify-content: center;
        margin: 0 auto;
    }
    
    .star {
        font-size: 0.9rem;
    }
    
    .rating-text {
        font-size: 0.8rem;
    }
    
    /* Newly Launched Books Mobile */
    .new-launches-section {
        padding: 50px 0;
    }
    
    .launches-container {
        padding: 0 20px;
    }
    
    .launches-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
    
    .launches-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .launches-header .view-all-link {
        text-align: center;
        display: inline-block;
    }
    
    .launches-carousel-wrapper {
        flex-direction: column;
        gap: 0;
    }
    
    .launches-carousel {
        width: 100%;
        overflow: visible;
        position: relative;
    }
    
    .launches-track {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        will-change: auto;
        transform: none !important;
        transition: none;
    }
    
    .launch-book-card {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        flex-shrink: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 0;
        box-sizing: border-box;
    }
    
    /* Hide all navigation buttons and indicators for newly launched books on mobile */
    .launches-carousel-wrapper .desktop-nav-btn,
    #prevNewBooks,
    #nextNewBooks,
    #nextNewBooksDesktop,
    #prevNewBooksDesktop,
    #newBooksIndicators,
    .carousel-indicators#newBooksIndicators {
        display: none !important;
    }
    
    /* Hide navigation buttons wrapper for newly launched books section */
    .new-launches-section .carousel-nav-buttons-wrapper {
        display: none !important;
    }
    
    .book-cover-wrapper {
        flex-shrink: 0;
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .launch-book-cover {
        width: 80px;
        height: 120px;
        margin: 0 auto;
    }
    
    .book-info {
        align-items: center;
        text-align: center;
    }
    
    .launch-book-card .book-format {
        text-align: center;
        margin: 0 auto 5px;
        display: none; /* Hide book format labels site-wide */
    }
    
    .launch-book-card .book-title {
        font-size: 0.95rem;
        text-align: center;
        margin: 0 auto 5px;
    }
    
    .launch-book-card .book-author {
        font-size: 0.8rem;
        text-align: center;
        margin: 0 auto 5px;
    }
    
    .book-year {
        text-align: center;
        margin: 0 auto 8px;
    }
    
    .launch-book-card .book-rating {
        gap: 3px;
        justify-content: center;
        margin: 0 auto;
    }
    
    .launch-book-card .star {
        font-size: 0.85rem;
    }
    
    .launch-book-card .rating-text {
        font-size: 0.75rem;
    }
    
    /* Hide desktop buttons on mobile */
    .desktop-nav-btn {
        display: none !important;
    }
    
    /* Show mobile buttons below carousel */
    .mobile-nav-btn {
        display: flex !important;
    }
    
    /* Better button placement on mobile - below carousel */
    .carousel-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
        position: static;
        background-color: #f8f9fa;
        border: 1px solid #e0e0e0;
    }
    
    .carousel-nav-buttons-wrapper {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 20px;
    }
    
    /* Show indicators on mobile */
    .carousel-indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
        padding: 0 20px;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #ddd;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .carousel-indicator.active {
        background-color: #e74c3c;
        width: 30px;
        border-radius: 5px;
    }
}

/* Additional mobile improvements */
@media (max-width: 768px) {
    .nav-menu.active .nav-search {
        display: block;
        order: 4;
        width: 100%;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #f0f0f0;
    }
    
    .nav-menu.active .search-field {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Featured Authors Section */
.featured-authors-section {
    padding: 25px 0 60px 0;
    background-color: #fff;
    position: relative;
    width: 100%;
}

/* Publishers Section */
.publishers-section {
    padding: 25px 0 60px 0;
    background-color: #fff;
    position: relative;
    width: 100%;
}

.authors-container {
    width: 100%;
    margin: 0;
    padding: 0 40px;
}

.authors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.authors-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.authors-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 60px; /* Extra space to prevent last item cutoff */
    box-sizing: border-box;
}

.authors-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin-right: 0;
}

.authors-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
    padding-right: 20px; /* Extra padding for last item */
}

.author-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.author-card {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-card:hover {
    transform: none;
    box-shadow: none;
}

.author-image-wrapper {
    margin-bottom: 15px;
    position: relative;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: none;
}

.author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.author-books-count {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* Responsive Design for Featured Authors */
@media (max-width: 768px) {
    .featured-authors-section,
    .publishers-section {
        padding: 60px 0;
    }
    
    .authors-container {
        padding: 0 20px;
    }
    
    .authors-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .authors-title {
        font-size: 2rem;
        text-align: center;
        width: 100%;
    }
    
    .authors-header .view-all-link {
        text-align: center;
        display: inline-block;
    }
    
    .authors-carousel-wrapper {
        flex-direction: column;
        gap: 0;
        padding-right: 0;
    }
    
    .authors-carousel {
        width: 100%;
        overflow: visible;
        position: relative;
    }
    
    .authors-track {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        will-change: auto;
        transform: none !important;
        transition: none;
        padding-right: 0;
    }
    
    .author-card {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        flex-shrink: 0;
        box-sizing: border-box;
        padding: 0;
        text-align: center;
        align-items: center;
    }
    
    .author-image-wrapper {
        margin: 0 auto 15px;
        text-align: center;
    }
    
    .author-info {
        text-align: center;
        align-items: center;
    }
    
    .author-name {
        text-align: center;
    }
    
    .author-books-count {
        text-align: center;
    }
    
    /* Hide all carousel navigation buttons on mobile */
    .authors-carousel-wrapper .desktop-nav-btn,
    .authors-buttons-wrapper,
    .publishers-buttons-wrapper,
    .carousel-indicators,
    #publishersIndicators,
    #authorsIndicators {
        display: none !important;
    }
    
    .carousel-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    /* Show indicators on mobile */
    #authorsIndicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
        padding: 0 20px;
    }
    
    .author-image {
        width: 90px;
        height: 90px;
    }
    
    .author-name {
        font-size: 1.1rem;
    }
    
    .author-books-count {
        font-size: 0.8rem;
    }
    
    /* Newly Launched Books Tablet */
    .new-launches-section {
        padding: 60px 0;
    }
    
    .launches-container {
        padding: 0 20px;
    }
    
    .launches-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .launches-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .launches-header .view-all-link {
        text-align: center;
        display: inline-block;
    }
    
    .launches-carousel-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .launch-book-card {
        min-width: 200px;
        padding: 0;
    }
    
    .launch-book-cover {
        width: 90px;
        height: 135px;
    }
    
    .launch-book-card .book-title {
        font-size: 1rem;
    }
    
    .launch-book-card .book-author {
        font-size: 0.85rem;
    }
    
    .launch-book-card .book-rating {
        gap: 3px;
    }
    
    .launch-book-card .star {
        font-size: 0.9rem;
    }
    
    .launch-book-card .rating-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .featured-authors-section,
    .publishers-section {
        padding: 50px 0;
    }
    
    .authors-track {
        gap: 12px;
    }
    
    .author-image {
        width: 80px;
        height: 80px;
    }
    
    .author-name {
        font-size: 1rem;
    }
    
    .author-books-count {
        font-size: 0.8rem;
    }
    
    .genre-section,
    .top-reviewed-section,
    .best-selling-section,
    .user-recommended-section,
    .upcoming-books-section,
    .highly-rated-section,
    .latest-updated-section,
    .all-books-section,
    .new-launches-section {
        padding: 40px 0;
    }
    
    .authors-container {
        padding: 0 15px;
    }
    
    .authors-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .authors-header {
        align-items: center;
        text-align: center;
    }
    
    .authors-header .view-all-link {
        text-align: center;
    }
    
    .authors-track {
        gap: 12px;
    }
    
    .author-card {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0;
    }
    
    .author-image {
        width: 80px;
        height: 80px;
    }
    
    .author-name {
        font-size: 1rem;
    }
    
    .author-books-count {
        font-size: 0.8rem;
    }
}

/* ========================================
   Genres Pages Styles
   ======================================== */

/* All Genres Page */
.genres-page-content {
    padding: 40px 0 80px;
    background-color: #fff;
}

.genres-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.genres-page-header {
    margin-bottom: 50px;
}

.genres-page-header .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

.all-genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.genre-card-page {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 25px 20px;
    text-align: left;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transition: all 0.3s ease;
    cursor: pointer;
}

.genre-card-page:hover {
    border-color: #e74c3c;
    transform: none;
    box-shadow: none;
}

.genre-icon-page {
    font-size: 2.5rem;
    margin-bottom: 12px;
    line-height: 1;
}

.genre-name-page {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.genre-count-page {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 15px 0;
    font-weight: 400;
}

.genre-link-page {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.genre-link-page:hover {
    color: #c0392b;
}

.no-genres {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
}

/* Genre Books Page */
.genre-books-content {
    padding: 40px 0 80px;
    background-color: #fff;
}

.genre-books-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.genre-books-header {
    margin-bottom: 40px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: #e74c3c;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #333;
}

.genre-books-header .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.genre-description {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.genre-books-results {
    margin-top: 30px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.sort-controls {
    display: flex;
    align-items: center;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-select:hover,
.sort-select:focus {
    border-color: #e74c3c;
    outline: none;
}

.genre-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.genre-book-card {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: none;
}

/* Scroll fade-up animation for book cards */
.book-fade-up {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.35s ease-out,
        transform 0.35s ease-out;
    will-change: opacity, transform;
}

.book-fade-up.book-fade-up-in-view {
    opacity: 1;
    transform: translateY(0);
}

.book-cover-wrapper-genre {
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.book-cover-genre {
    width: 100%;
    max-width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.book-cover-wrapper-genre:hover .book-cover-genre {
    transform: scale(1.02);
}

.book-info-genre {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-format-genre {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e74c3c;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: none; /* Hide book format labels site-wide */
}

.book-title-genre {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
    text-align: center;
    width: 100%;
}

.book-title-genre a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.book-title-genre a:hover {
    color: #e74c3c;
}

.book-author-genre {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 10px 0;
    text-align: center;
    width: 100%;
    font-weight: 400;
}

.book-year-genre {
    font-size: 0.85rem;
    color: #999;
    margin: 0 0 8px 0;
    text-align: center;
    font-weight: 400;
    width: 100%;
}

.book-rating-genre {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
    width: 100%;
}

.book-rating-genre .star {
    color: #ffc107;
    font-size: 0.95rem;
}

.book-rating-genre .star:not(.filled) {
    color: #ddd;
}

.book-rating-genre .star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-value {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    margin-left: 5px;
}

.no-books-found {
    text-align: center;
    padding: 60px 20px;
}

.no-books-found p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.back-to-genres-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.back-to-genres-btn:hover {
    background-color: #e74c3c;
}

/* New Books Page - Inherit from genre styles */
.new-books-content {
    padding: 40px 0 80px;
    background-color: #fff;
}

.new-books-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.new-books-header {
    margin-bottom: 40px;
}

/* All Authors Page */
.all-authors-content {
    padding: 40px 0 80px;
    background-color: #fff;
}

.all-authors-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.all-authors-header {
    margin-bottom: 40px;
}

/* All Books Page - Inherit from genre styles */
.all-books-content {
    padding: 40px 0 80px;
    background-color: #fff;
}

.all-books-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.all-books-header {
    margin-bottom: 40px;
}

.all-authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.author-card-page-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.author-card-page-link:hover {
    transform: translateY(-5px);
}

.author-card-page {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: none;
}

.author-image-wrapper-page {
    margin-bottom: 15px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.author-image-page {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.author-card-page:hover .author-image-page {
    transform: scale(1.05);
}

.author-info-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-name-page {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-align: center;
}

.author-books-count-page {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-weight: 400;
    text-align: center;
}

/* Mobile Responsive for Genres Pages */
@media (max-width: 768px) {
    .genres-page-container,
    .genre-books-container,
    .new-books-container,
    .all-authors-container,
    .all-books-container {
        padding: 0 20px;
    }
    
    .genres-page-header .page-title,
    .genre-books-header .page-title,
    .new-books-header .page-title,
    .all-authors-header .page-title,
    .all-books-header .page-title {
        font-size: 2rem;
    }
    
    .all-genres-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .genre-card-page {
        min-height: 160px;
        padding: 20px 15px;
    }
    
    .genre-icon-page {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .genre-name-page {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .genre-count-page {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .genre-link-page {
        font-size: 0.85rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .genre-books-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .book-cover-genre {
        max-width: 100%;
        height: 225px;
    }
    
    .book-title-genre {
        font-size: 1rem;
    }
    
    .book-author-genre {
        font-size: 0.85rem;
    }
    
    .all-authors-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .author-image-page {
        width: 120px;
        height: 120px;
    }
    
    .author-name-page {
        font-size: 1rem;
    }
    
    .author-books-count-page {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .all-genres-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .genre-books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .book-cover-genre {
        height: 200px;
    }
    
    .all-authors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .author-image-page {
        width: 100px;
        height: 100px;
    }
    
    .author-name-page {
        font-size: 0.95rem;
    }
    
    .author-books-count-page {
        font-size: 0.8rem;
    }
}

/* Book Detail Page Styles */
.book-detail-content {
    padding: 40px 0 80px;
    background-color: #fff;
}

.book-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.book-header {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.book-image-section {
    flex: 0 0 300px;
}

.book-detail-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.book-info-section {
    flex: 1;
}

.book-title-wrapper {
    margin-bottom: 20px;
}

.book-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.book-header-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.book-header-rating .star {
    font-size: 1.2rem;
    color: #ddd;
}

.book-header-rating .star.filled {
    color: #ffc107;
}

.book-header-rating .star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-value-large {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-left: 5px;
}

.rating-count {
    font-size: 1rem;
    color: #666;
    margin-left: 5px;
}

.book-meta-info {
    margin-bottom: 30px;
}

.book-meta-info p {
    margin: 10px 0;
    font-size: 1rem;
    color: #333;
}

.book-meta-info strong {
    color: #666;
    font-weight: 600;
    margin-right: 8px;
}

.book-meta-info a {
    color: #e74c3c;
    text-decoration: none;
}

.book-meta-info a:hover {
    text-decoration: underline;
}

.author-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 4px solid #e74c3c;
}

.author-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.author-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.author-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.book-description-section {
    margin-top: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.book-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Reviews Section */
.reviews-section {
    margin-top: 0;
    padding-top: 50px;
    border-top: 1px solid #e0e0e0;
    position: relative;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #8b7355 0%, transparent 100%);
}

.reviews-header {
    margin-bottom: 40px;
    text-align: center;
}

.reviews-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c2416;
    margin: 0 0 12px 0;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
    letter-spacing: -0.5px;
}

.reviews-subtitle {
    font-size: 1.1rem;
    color: #6b6358;
    margin: 0;
    font-style: italic;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

/* Review Form */
.review-form-wrapper {
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
    border-radius: 12px;
    border: 1px solid #e8e5e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.review-login-prompt {
    text-align: center;
    padding: 30px 20px;
}

.login-prompt-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.must-log-in {
    font-size: 1.1rem;
    color: #6b6358;
    margin: 0;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

.must-log-in a {
    color: #8b7355;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.must-log-in a:hover {
    color: #6b5a47;
}

.review-form-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e5e0;
}

.review-form-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c2416;
    margin: 0 0 8px 0;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

.review-form-subtitle {
    font-size: 1rem;
    color: #6b6358;
    margin: 0;
    font-style: italic;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

.book-review-form {
    max-width: 900px;
    margin: 0 auto;
}

.logged-in-as {
    text-align: center;
    margin-bottom: 25px;
    padding: 12px 20px;
    background-color: #f0ede8;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #6b6358;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

.user-greeting {
    font-style: italic;
}

.logged-in-as a {
    color: #8b7355;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logged-in-as a:hover {
    color: #6b5a47;
    text-decoration: underline;
}

.comment-form-rating {
    margin-bottom: 25px;
    text-align: center;
}

.comment-form-rating label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c2416;
    font-size: 1.1rem;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
    text-align: center;
}

.comment-form-rating .required {
    color: #c0392b;
    margin-left: 3px;
}

.star-rating-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.star-rating-input .stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.star-rating-input .stars:hover {
    background-color: #faf9f7;
}

.star-rating-input .star {
    font-size: 2.5rem;
    color: #e0d9cc;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.star-rating-input .star:hover {
    transform: scale(1.15);
    color: #ffd700;
}

.star-rating-input .star.active {
    color: #ffc107;
    filter: drop-shadow(0 2px 6px rgba(255, 193, 7, 0.4));
}

.star-rating-input .rating-text {
    font-size: 1rem;
    color: #6b6358;
    margin: 0;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
    font-style: italic;
    text-align: center;
}

.comment-form-comment-wrapper {
    margin-bottom: 25px;
    text-align: center;
}

.comment-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c2416;
    font-size: 1.1rem;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
    text-align: center;
}

.review-textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e8e5e0;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.7;
    color: #2c2416;
    background-color: #fff;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 150px;
}

.review-textarea:focus {
    outline: none;
    border-color: #8b7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
    background-color: #faf9f7;
}

.review-textarea::placeholder {
    color: #a8a095;
    font-style: italic;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.review-submit-btn {
    background: linear-gradient(135deg, #8b7355 0%, #6b5a47 100%);
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.4);
    background: linear-gradient(135deg, #9b8365 0%, #7b6a57 100%);
}

.review-submit-btn:active {
    transform: translateY(0);
}

.cancel-reply {
    display: inline-block;
    margin-left: 15px;
    color: #6b6358;
    text-decoration: underline;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

.cancel-reply:hover {
    color: #8b7355;
}

/* Review Items */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.review-item {
    padding: 20px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e8e5e0;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: none;
}

.review-item:hover {
    background-color: #fafaf9;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
    flex-wrap: wrap;
    gap: 12px;
}

.review-author-info {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

.review-avatar {
    flex-shrink: 0;
}

.review-avatar img {
    border-radius: 50%;
    border: 2px solid #e8e5e0;
    box-shadow: none;
    transition: all 0.2s ease;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.review-author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c2416;
    margin: 0;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

.review-date {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
    font-style: normal;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

.review-rating-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-rating-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background-color: transparent;
    border-radius: 4px;
}

.review-rating-stars .star {
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1;
    filter: none;
}

.review-rating-stars .star.filled {
    color: #ffc107;
    filter: none;
}

.review-rating-stars .rating-number {
    font-size: 0.9rem;
    color: #666;
    margin-left: 6px;
    font-weight: 500;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

.review-content {
    margin-top: 10px;
    padding-top: 0;
}

.review-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

/* Review Share Icon Button */
.review-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-review-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: transparent;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.share-review-icon-btn:hover {
    background-color: #1f2a44;
    color: #fff;
    border-color: #1f2a44;
    transform: scale(1.1);
}

.share-review-icon-btn:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.share-review-icon-btn .share-icon {
    font-size: 1rem;
}

.review-reply-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8e5e0;
}

.reply-to-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #f5f3f0;
    color: #6b6358;
    border: 1px solid #e8e5e0;
    border-radius: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

.reply-to-review-btn:hover {
    background-color: #8b7355;
    color: #fff;
    border-color: #8b7355;
    transform: translateX(5px);
}

.reply-icon {
    font-size: 1.1rem;
}

.review-replies {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e8e5e0;
    padding-left: 30px;
    position: relative;
}

.review-replies::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #8b7355 0%, transparent 100%);
    opacity: 0.3;
}

.review-reply-item {
    padding: 20px;
    background-color: #faf9f7;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 3px solid #d4c9b8;
}

.review-reply-item:last-child {
    margin-bottom: 0;
}

.reply-header {
    margin-bottom: 12px;
}

.reply-author-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.reply-avatar {
    flex-shrink: 0;
}

.reply-avatar img {
    border-radius: 50%;
    border: 2px solid #e8e5e0;
}

.reply-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.reply-author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c2416;
    margin: 0;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

.author-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #8b7355 0%, #6b5a47 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-right: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: Arial, sans-serif;
}

.reply-date {
    font-size: 0.85rem;
    color: #8b7d6b;
    margin: 0;
    font-style: italic;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

.reply-content {
    margin-top: 10px;
}

.reply-content p {
    font-size: 0.95rem;
    color: #5a5248;
    line-height: 1.7;
    margin: 0;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

.hidden-review {
    display: none;
}

.load-more-reviews-wrapper {
    text-align: center;
    padding: 30px 0 20px;
    border-top: 1px solid #e8e5e0;
    margin-top: 20px;
}

.load-more-reviews-btn {
    background: #fff;
    color: #333;
    border: 2px solid #e0e0e0;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-reviews-btn:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.load-more-reviews-btn .reviews-count {
    color: #999;
    font-weight: 400;
}

.load-more-reviews-btn:hover .reviews-count {
    color: #ddd;
}

.no-reviews {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
    border-radius: 12px;
    border: 2px dashed #e8e5e0;
}

.no-reviews-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    opacity: 0.6;
}

.no-reviews-text {
    color: #6b6358;
    font-size: 1.2rem;
    margin: 0;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
    font-style: italic;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.share-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.share-modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    color: #333;
}

.review-screenshot-preview {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.share-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-download,
.btn-copy {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-download {
    background-color: #333;
    color: #fff;
}

.btn-download:hover {
    background-color: #e74c3c;
}

.btn-copy {
    background-color: #e74c3c;
    color: #fff;
}

.btn-copy:hover {
    background-color: #c0392b;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* New Book Detail Page Layout Styles */
.book-header-new {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.book-cover-section {
    flex: 0 0 300px;
}

.book-cover-slider {
    position: relative;
    margin-bottom: 20px;
}

.cover-slider-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cover-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.cover-slide.active {
    opacity: 1;
    z-index: 1;
}

.cover-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-nav-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.cover-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cover-dot.active {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.buy-now-section {
    position: relative;
}

.buy-now-btn {
    width: 100%;
    padding: 15px 20px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.buy-now-btn:hover {
    background-color: #c0392b;
}

.buy-now-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.buy-now-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.buy-option {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.buy-option:last-child {
    border-bottom: none;
}

.buy-option:hover {
    background-color: #f9f9f9;
}

.format-label {
    font-weight: 600;
    color: #333;
}

.price-label {
    color: #e74c3c;
    font-weight: 600;
}

.book-info-section-new {
    flex: 1;
}

.book-info-section-new .book-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.book-meta-info-new {
    margin-top: 20px;
}

.book-meta-item {
    margin: 12px 0;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

.book-meta-item strong {
    color: #666;
    font-weight: 600;
    margin-right: 8px;
}

.book-meta-item .author-link,
.book-meta-item .publisher-link {
    color: #1f2a44;
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.book-meta-item .author-link:hover,
.book-meta-item .publisher-link:hover {
    color: #8b7355;
    border-bottom-color: #8b7355;
}

.book-description-item {
    margin: 20px 0;
}

.book-description-item strong {
    color: #666;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.description-content {
    position: relative;
}

.description-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.read-more-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: transparent;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: #e74c3c;
    color: #fff;
}

/* Plot Section */
.plot-section {
    display: flex;
    gap: 40px;
    margin: 0 0 0 0;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
}

.plot-content {
    flex: 1;
}

.plot-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-top: 15px;
}

.sample-book-section {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    padding-top: 15px;
}

.read-sample-btn {
    padding: 12px 24px;
    background-color: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.read-sample-btn:hover {
    background-color: #c0392b;
}

/* News & Announcements Section */
.news-section {
    margin: 0 0 0 0;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
}

.news-content {
    margin-top: 20px;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Rating Section */
.rating-section {
    margin: 0 0 0 0;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.rating-display {
    margin-top: 30px;
}

.rating-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.rating-stars-large {
    display: flex;
    gap: 5px;
}

.rating-stars-large .star {
    font-size: 2.5rem;
    color: #ddd;
}

.rating-stars-large .star.filled {
    color: #ffc107;
}

.rating-stars-large .star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.rating-count-text {
    font-size: 1rem;
    color: #666;
}

.no-rating {
    font-size: 1.1rem;
    color: #999;
    font-style: italic;
}

/* More Books Section */
.more-books-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 0 0 0 0;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
}

/* Full width when no publisher books */
.more-books-section.full-width-author {
    grid-template-columns: 1fr;
}

.more-books-section.full-width-author .more-books-by-author {
    max-width: 100%;
}

.more-books-by-author,
.more-books-by-publisher {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.book-card-small {
    text-align: center;
}

.book-cover-small {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.book-card-link:hover .book-cover-small {
    transform: scale(1.05);
}

.book-title-small {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 10px 0 0 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-books {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px 0;
}

/* Responsive Design for Book Detail Page */
@media (max-width: 768px) {
    .book-detail-content {
        padding: 20px 0 40px;
    }
    
    .book-detail-container {
        padding: 0 15px;
    }
    
    /* Breadcrumb Mobile */
    .breadcrumb {
        font-size: 0.85rem;
        margin-bottom: 20px;
        padding: 10px 0;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .breadcrumb a,
    .breadcrumb span {
        font-size: 0.85rem;
    }
    
    /* Book Header Mobile */
    .book-header,
    .book-header-new {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 40px;
        padding-bottom: 30px;
    }
    
    .book-image-section,
    .book-cover-section {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .book-detail-image {
        max-width: 100%;
        width: 100%;
    }
    
    .cover-slider-wrapper {
        height: 400px;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .cover-nav-dots {
        margin-top: 12px;
    }
    
    /* Buy Now Section Mobile */
    .buy-now-section {
        max-width: 280px;
        margin: 20px auto 0;
    }
    
    .buy-now-btn {
        padding: 14px 18px;
        font-size: 1rem;
    }
    
    .buy-now-dropdown {
        position: fixed;
        left: 15px;
        right: 15px;
        max-width: calc(100% - 30px);
        z-index: 1000;
    }
    
    /* Book Info Section Mobile */
    .book-info-section-new {
        width: 100%;
    }
    
    .book-info-section-new .book-detail-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 15px;
        text-align: center;
    }
    
    /* Reading Status Buttons Mobile */
    .reading-status-buttons {
        justify-content: center;
        margin: 15px 0;
    }
    
    /* Rating Mobile */
    .book-header-rating {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: 15px;
        align-items: center;
    }
    
    .book-header-rating .star {
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    .rating-value-large {
        font-size: 1.3rem;
        margin-left: 8px;
        flex-shrink: 0;
    }
    
    .rating-count {
        font-size: 0.9rem;
        margin-left: 8px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* Book Meta Info Mobile */
    .book-meta-info-new {
        margin-top: 25px;
    }
    
    .book-meta-item {
        margin: 15px 0;
        font-size: 0.95rem;
        text-align: center;
        padding: 0 10px;
        color: #000;
    }
    
    .book-meta-item strong {
        display: block;
        margin-bottom: 5px;
        font-size: 0.9rem;
        color: #000;
    }
    
    .book-meta-item .author-link,
    .book-meta-item .publisher-link {
        color: #000;
    }
    
    .book-description-item {
        margin: 25px 0;
        text-align: center;
    }
    
    .book-description-item strong {
        font-size: 1.1rem;
        margin-bottom: 12px;
        color: #000;
    }
    
    .description-text {
        color: #000;
    }
    
    .description-content {
        text-align: left;
        padding: 0 10px;
    }
    
    .description-text {
        font-size: 0.95rem;
        line-height: 1.7;
        margin: 0;
        display: inline-block;
        width: 100%;
    }
    
    .read-more-btn {
        margin-top: 0;
        margin-left: 5px;
        padding: 0;
        background-color: transparent;
        border: none;
        color: #e74c3c;
        font-size: 0.95rem;
        text-decoration: underline;
        display: inline;
        cursor: pointer;
        font-weight: 500;
        vertical-align: baseline;
        font-family: 'EB Garamond', serif;
    }
    
    .read-more-btn:hover {
        background-color: transparent;
        color: #c0392b;
        text-decoration: underline;
    }
    
    /* Ensure button appears inline after text */
    .description-content p {
        display: inline;
    }
    
    .description-content p + .read-more-btn {
        display: inline;
    }
    
    /* Plot Section Mobile */
    .plot-section {
        flex-direction: column;
        gap: 25px;
        margin: 40px 0;
        padding: 25px 15px;
        text-align: center;
        align-items: center;
    }
    
    .plot-content {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .plot-content .section-title {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .plot-text {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0 5px;
        text-align: center;
        max-width: 100%;
    }
    
    .plot-text p {
        text-align: center;
    }
    
    .sample-book-section {
        justify-content: center;
        width: 100%;
    }
    
    .read-sample-btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    /* News Section Mobile */
    .news-section {
        margin: 40px 0;
        padding: 25px 15px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .news-section .section-title {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .news-content {
        padding: 0 5px;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .news-item {
        padding: 15px;
        margin-bottom: 15px;
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: center;
        width: 100%;
    }
    
    .news-item p {
        text-align: center;
    }
    
    /* More Books Sections Mobile */
    .more-books-section {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 40px 0;
        padding: 0 15px;
    }
    
    .more-books-section .section-title {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 15px;
    }
    
    .book-card-small {
        text-align: center;
    }
    
    .book-cover-small {
        width: 100%;
        max-width: 110px;
        height: 165px;
        margin: 0 auto;
    }
    
    .book-title-small {
        font-size: 0.85rem;
        margin-top: 10px;
        line-height: 1.3;
    }
    
    /* Reviews Section Mobile */
    .reviews-section {
        margin-top: 50px;
        padding-top: 30px;
    }
    
    .reviews-title {
        font-size: 1.75rem;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .reviews-subtitle {
        font-size: 0.95rem;
        text-align: center;
        padding: 0 15px;
    }
    
    .review-form-wrapper {
        padding: 20px 15px;
        margin-bottom: 40px;
        border-radius: 12px;
    }
    
    .review-form-title {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .review-form-subtitle {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .review-login-prompt {
        padding: 20px 15px;
        text-align: center;
    }
    
    .login-prompt-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .must-log-in {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .logged-in-as {
        text-align: center;
        margin-bottom: 20px;
        font-size: 0.9rem;
    }
    
    .comment-form-rating {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .comment-form-rating label {
        text-align: center;
        margin-bottom: 8px;
    }
    
    .star-rating-input {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
    
    .star-rating-input .stars {
        width: 100%;
        justify-content: center;
    }
    
    .star-rating-input .rating-text {
        text-align: center;
    }
    
    .comment-form-comment-wrapper {
        text-align: center;
    }
    
    .comment-label {
        text-align: center;
    }
    
    .star-rating-input .star {
        font-size: 2rem;
    }
    
    .review-textarea {
        padding: 15px;
        font-size: 0.95rem;
        min-height: 140px;
        width: 100%;
    }
    
    .form-submit {
        text-align: center;
    }
    
    .review-submit-btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    /* Review Items Mobile */
    .review-item {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .review-author-info {
        width: 100%;
    }
    
    .review-avatar {
        width: 50px;
        height: 50px;
    }
    
    .review-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .review-author-name {
        font-size: 1rem;
    }
    
    .review-date {
        font-size: 0.85rem;
    }
    
    .review-header-right {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    
    .review-rating-header {
        margin-bottom: 0;
    }
    
    .review-rating-stars {
        gap: 3px;
    }
    
    .review-rating-stars .star {
        font-size: 1rem;
    }
    
    .rating-number {
        font-size: 0.9rem;
    }
    
    .share-review-icon-btn {
        padding: 8px;
    }
    
    .review-content {
        margin-top: 15px;
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .review-reply-section {
        margin-top: 15px;
    }
    
    .reply-to-review-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    /* Review Replies Mobile */
    .review-replies {
        margin-top: 20px;
        padding-left: 15px;
    }
    
    .reply-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .reply-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .reply-author-info {
        width: 100%;
    }
    
    .reply-avatar {
        width: 40px;
        height: 40px;
    }
    
    .reply-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .reply-author-name {
        font-size: 0.95rem;
    }
    
    .reply-date {
        font-size: 0.8rem;
    }
    
    .reply-content {
        margin-top: 12px;
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Show More Reviews Button Mobile */
    .show-more-reviews-btn {
        width: 100%;
        max-width: 300px;
        margin: 30px auto;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    /* Floating Feedback Button Mobile */
    .floating-feedback-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    .floating-feedback-btn span {
        display: none;
    }
    
    .floating-feedback-btn {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
    
    .floating-feedback-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Extra Small Mobile Devices (phones in portrait) */
@media (max-width: 480px) {
    .book-detail-container {
        padding: 0 12px;
    }
    
    .book-detail-title {
        font-size: 1.5rem;
    }
    
    .book-info-section-new .book-detail-title {
        font-size: 1.5rem;
    }
    
    .cover-slider-wrapper {
        height: 350px;
        max-width: 240px;
    }
    
    .reading-status-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .reading-status-btn {
        width: 100%;
        justify-content: center;
    }
    
    .book-header-rating {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 4px;
        justify-content: center;
    }
    
    .book-header-rating .star {
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .rating-value-large {
        font-size: 1.2rem;
        margin-left: 6px;
        flex-shrink: 0;
    }
    
    .rating-count {
        font-size: 0.85rem;
        margin-left: 6px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .book-meta-item {
        font-size: 0.9rem;
        padding: 0 5px;
        color: #000;
    }
    
    .book-meta-item strong {
        color: #000;
    }
    
    .book-meta-item .author-link,
    .book-meta-item .publisher-link {
        color: #000;
    }
    
    .book-description-item strong {
        color: #000;
    }
    
    .description-text {
        color: #000;
    }
    
    .plot-section,
    .news-section {
        padding: 20px 12px;
        text-align: center;
        align-items: center;
    }
    
    .plot-content {
        text-align: center;
        align-items: center;
    }
    
    .plot-content .section-title,
    .news-section .section-title {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .plot-text {
        text-align: center;
    }
    
    .news-content {
        text-align: center;
        align-items: center;
        width: 100%;
    }
    
    .news-item {
        text-align: center;
        width: 100%;
    }
    
    .news-item p {
        text-align: center;
    }
    
    .review-form-wrapper {
        padding: 18px 12px;
    }
    
    .review-form-title {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .comment-form-rating {
        text-align: center;
    }
    
    .comment-form-rating label {
        text-align: center;
        margin-bottom: 8px;
    }
    
    .star-rating-input {
        justify-content: center;
        gap: 5px;
    }
    
    .star-rating-input .rating-text {
        text-align: center;
    }
    
    .comment-form-comment-wrapper {
        text-align: center;
    }
    
    .comment-label {
        text-align: center;
    }
    
    .review-item {
        padding: 18px 12px;
    }
    
    .review-content {
        font-size: 0.9rem;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 12px;
    }
    
    .book-cover-small {
        max-width: 90px;
        height: 135px;
    }
    
    .book-title-small {
        font-size: 0.8rem;
    }
    }
    
    .review-submit-btn {
        padding: 14px 30px;
        font-size: 1rem;
        width: 100%;
    }
    
    .review-item {
        padding: 25px 20px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .review-author-info {
        width: 100%;
    }
    
    .review-rating-header {
        width: 100%;
        justify-content: flex-start;
    }
    
    .review-rating-stars {
        width: 100%;
        justify-content: flex-start;
    }
    
    .review-rating-stars .star {
        font-size: 1.2rem;
    }
    
    .review-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .review-replies {
        padding-left: 15px;
    }
    
    .review-reply-item {
        padding: 15px;
    }
    
    .reply-to-review-btn {
        width: 100%;
        justify-content: center;
    }
    
    .no-reviews {
        padding: 40px 15px;
    }
    
    .no-reviews-icon {
        font-size: 3rem;
    }
    
    .no-reviews-text {
        font-size: 1.1rem;
    }
    
    .share-actions {
        flex-direction: column;
    }
    
    .rating-stars-large .star {
        font-size: 2rem;
    }
    
    .rating-value {
        font-size: 1.5rem;
    }
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #fff5f0 0%, #f4f7fb 100%);
    display: flex;
    align-items: center;
    padding: 60px 20px;
}

.auth-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-hero {
    background: linear-gradient(135deg, #141e30 0%, #243b55 100%);
    color: #fff;
    padding: 60px;
    display: flex;
    align-items: center;
}

.auth-hero-content h1 {
    font-size: 2.4rem;
    line-height: 1.3;
    margin: 20px 0;
}

.auth-hero-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.95rem;
}

.auth-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.auth-stat-grid strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.auth-card {
    padding: 60px 50px;
    background: #fff;
}

.auth-card-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.auth-card-header p {
    color: #777;
    margin-bottom: 30px;
}

.auth-alert {
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.auth-alert.error {
    background: #fff3f2;
    border: 1px solid #f8c5c0;
    color: #c0392b;
}

.auth-alert.success {
    background: #f2fff7;
    border: 1px solid #b9f6ca;
    color: #2d7a46;
}

.auth-alert.info {
    background: #f0f6ff;
    border: 1px solid #b6d4fe;
    color: #1f4f9d;
}

.auth-alert ul {
    padding-left: 18px;
    margin: 0;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.input-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.input-wrapper:focus-within {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.input-wrapper input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
}

.password-wrapper {
    position: relative;
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    opacity: 0.5;
}

.password-toggle::before {
    content: '👁';
    font-size: 1rem;
}

.password-toggle.visible {
    opacity: 1;
}

.auth-primary-btn {
    width: 100%;
    padding: 16px 20px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(120deg, #ff6b6b, #e74c3c);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.auth-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(231, 76, 60, 0.3);
}

.auth-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.remember-checkbox input {
    width: 16px;
    height: 16px;
}

.forgot-link {
    font-size: 0.95rem;
    color: #e74c3c;
    text-decoration: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 20px;
    color: #999;
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.google-login-btn > div {
    width: 100% !important;
    justify-content: center;
}

.google-login-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.auth-switch {
    margin-top: 20px;
    text-align: center;
    color: #666;
}

.auth-switch a {
    color: #e74c3c;
    font-weight: 600;
    text-decoration: none;
}

.auth-terms {
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    margin-top: 16px;
}

body.auth-loading {
    cursor: progress;
}

@media (max-width: 1024px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }
    
    .auth-hero, .auth-card {
        padding: 40px 30px;
    }
}

@media (max-width: 640px) {
    .auth-page {
        padding: 30px 15px;
    }
    
    .auth-wrapper {
        border-radius: 24px;
    }
    
    .auth-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .auth-form-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Profile Page */
.profile-page {
    background: #faf6f1;
    padding: 30px 0 80px;
}

.profile-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

.profile-showcase {
    text-align: center;
    padding: 60px 20px 50px;
    background: transparent;
    border-bottom: 1px solid rgba(31, 42, 68, 0.08);
    margin-bottom: 40px;
}

.profile-showcase-media {
    width: 150px;
    height: 150px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(31, 42, 68, 0.08);
}

.profile-showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: #a0a7b5;
    margin-bottom: 10px;
}

.profile-showcase h1 {
    font-size: 2.3rem;
    color: #1f2a44;
    margin: 0 0 10px;
}
.profile-copy {
    max-width: 560px;
    margin: 0 auto 20px;
    color: #606b7a;
    line-height: 1.5;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 25px;
}

.profile-social a,
.profile-settings-btn {
    font-size: 1.2rem;
    text-decoration: none;
    color: #1f2a44;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(31, 42, 68, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: transparent;
    cursor: pointer;
}

.profile-social a:hover,
.profile-settings-btn:hover {
    border-color: #1f2a44;
    background: #1f2a44;
    color: #fff;
}

.profile-badges-center {
    justify-content: center;
}

.profile-editor-stack {
    max-width: 880px;
    margin: 0 auto 50px;
}

.profile-card {
    background: transparent;
    border-radius: 0;
    padding: 40px 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(31, 42, 68, 0.08);
}

.profile-card:last-of-type {
    border-bottom: none;
}

.profile-card-note {
    margin-top: 6px;
    color: #7a8797;
}

.profile-email {
    margin: 0;
    color: #777;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.profile-badges-left {
    justify-content: flex-start;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.user-badge-muted {
    background: rgba(0, 0, 0, 0.05);
    color: #555;
    border-color: transparent;
}

.profile-form-card h2 {
    margin: 0;
    font-size: 1.9rem;
}

.profile-form .form-group {
    margin-bottom: 25px;
}

.profile-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-form input[type="text"],
.profile-form input[type="file"] {
    width: 100%;
    border: 1px solid rgba(31, 42, 68, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1rem;
    background: #fff;
}

.tag-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tag-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
}

.tag-chip {
    border: none;
    background: #f5f5f5;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #555;
}

.tag-chip:hover {
    background: #ffe8e2;
    color: #c0392b;
}

.profile-photo-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-photo-input input[type="file"] {
    padding: 12px;
}

.profile-photo-input .checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #555;
}

.field-help {
    font-size: 0.85rem;
    color: #888;
    margin-top: 6px;
}

.profile-save-btn {
    background: #1f2a44;
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 0.04em;
}

.profile-alert {
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.profile-alert.error {
    background: #fff1f0;
    border: 1px solid #ffccc7;
    color: #a8071a;
}

.profile-alert.success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #237804;
}

.profile-books {
    margin-top: 50px;
    text-align: left;
}

.profile-books-header {
    margin-bottom: 20px;
}

.profile-books-header h2 {
    margin: 0;
    font-size: 1.7rem;
    color: #1f2a44;
}

.profile-books-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-book-card {
    text-decoration: none;
    color: inherit;
    width: 140px;
}

.profile-book-cover {
    width: 140px;
    height: 210px;
    border-radius: 4px;
    background: #f3f5f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.profile-book-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #a0a7b5;
}

.profile-book-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #1f2a44;
}

.profile-books-empty {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    border: 1px dashed rgba(31, 42, 68, 0.15);
}

.hero-btn.ghost {
    border-color: rgba(31, 42, 68, 0.3);
    color: #1f2a44;
}

@media (max-width: 768px) {
    .profile-card {
        padding: 30px;
    }

    .profile-showcase {
        padding: 60px 20px;
    }
}

/* Floating Feedback Button */
.floating-feedback-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'EB Garamond', serif;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse-feedback 2s infinite;
}

.floating-feedback-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
    animation: none;
}

.floating-feedback-btn svg {
    width: 20px;
    height: 20px;
}

@keyframes pulse-feedback {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(231, 76, 60, 0.6);
    }
}

/* Feedback Modal */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feedback-modal.active {
    display: flex;
    opacity: 1;
}

.feedback-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.feedback-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.feedback-modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.feedback-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    font-family: 'EB Garamond', serif;
}

.feedback-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
}

.feedback-modal-close:hover {
    background: #f0f0f0;
    color: #e74c3c;
}

.feedback-modal-close svg {
    width: 24px;
    height: 24px;
}

.feedback-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

.feedback-description {
    margin: 0 0 20px 0;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.feedback-iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
}

.feedback-form {
    margin-top: 20px;
}

.feedback-form .form-group {
    margin-bottom: 20px;
}

.feedback-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c2416;
    font-size: 1rem;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

.feedback-form .required {
    color: #c0392b;
}

.feedback-textarea,
.feedback-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8e5e0;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    color: #2c2416;
    background-color: #fff;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
    transition: all 0.3s ease;
    resize: vertical;
}

.feedback-textarea {
    min-height: 120px;
}

.feedback-textarea:focus,
.feedback-input:focus {
    outline: none;
    border-color: #8b7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
    background-color: #faf9f7;
}

.feedback-textarea::placeholder,
.feedback-input::placeholder {
    color: #a8a095;
    font-style: italic;
}

.form-actions {
    text-align: center;
    margin-top: 25px;
}

.feedback-submit-btn {
    background: linear-gradient(135deg, #8b7355 0%, #6b5a47 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
    min-width: 180px;
}

.feedback-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #6b5a47 0%, #5a4a3a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.feedback-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.feedback-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

.feedback-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-feedback-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .floating-feedback-btn span {
        display: none;
    }
    
    .floating-feedback-btn {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
    
    .floating-feedback-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .feedback-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .feedback-modal-header {
        padding: 20px;
    }
    
    .feedback-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .feedback-modal-body {
        padding: 20px;
    }
    
    .feedback-iframe {
        height: 450px;
    }
    
    .feedback-form {
        margin-top: 15px;
    }
    
    .feedback-form .form-group {
        margin-bottom: 15px;
    }
    
    .feedback-textarea {
        min-height: 100px;
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .feedback-input {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .feedback-submit-btn {
        padding: 12px 24px;
        font-size: 1rem;
        min-width: 150px;
    }
}

/* Reading Status Buttons */
.reading-status-buttons {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.reading-status-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'EB Garamond', serif;
    white-space: nowrap;
}

.reading-status-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

.reading-status-btn.active {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: #e74c3c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.reading-status-btn.active:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.reading-status-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.reading-status-btn.loading {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}

.reading-status-btn.success {
    background: #27ae60;
    border-color: #27ae60;
    color: #fff;
}

.reading-status-btn.success:hover {
    background: #229954;
    border-color: #229954;
}

/* Mobile Responsive for Reading Status Buttons */
@media (max-width: 768px) {
    .reading-status-buttons {
        gap: 8px;
        margin: 15px 0;
    }
    
    .reading-status-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .reading-status-btn span {
        font-size: 0.85rem;
    }
    
    .reading-status-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Profile Reading Lists */
.profile-reading-lists {
    margin: 60px 0;
    padding: 0 20px;
}

.reading-list-section {
    margin-bottom: 50px;
}

.reading-list-section:last-child {
    margin-bottom: 0;
}

.reading-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.reading-list-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    font-family: 'EB Garamond', serif;
}

.reading-list-count {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    font-family: 'EB Garamond', serif;
}

.reading-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 25px;
}

.reading-list-book-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    display: block;
}

.reading-list-book-card:hover {
    transform: translateY(-5px);
}

.reading-list-book-cover {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.reading-list-book-card:hover .reading-list-book-cover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.reading-list-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reading-list-book-info {
    text-align: left;
}

.reading-list-book-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
    font-family: 'EB Garamond', serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reading-list-book-author {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-family: 'EB Garamond', serif;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reading-list-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
}

.reading-list-empty p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    font-family: 'EB Garamond', serif;
    font-style: italic;
}

/* Mobile Responsive for Reading Lists */
@media (max-width: 768px) {
    .profile-reading-lists {
        margin: 40px 0;
        padding: 0 15px;
    }
    
    .reading-list-section {
        margin-bottom: 40px;
    }
    
    .reading-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .reading-list-header h2 {
        font-size: 1.5rem;
    }
    
    .reading-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .reading-list-book-title {
        font-size: 0.9rem;
    }
    
    .reading-list-book-author {
        font-size: 0.8rem;
    }
    
    .reading-list-empty {
        padding: 40px 15px;
    }
    
    .reading-list-empty p {
        font-size: 0.95rem;
    }
}

/* ========================================
   Footer Styles
   ======================================== */

.site-footer {
    background: #1a1610;
    color: #f5f3f0;
    margin-top: 100px;
    border-top: 3px solid #8b7355;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 16px;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.9;
}

.footer-logo-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
    letter-spacing: 3px;
    display: block;
}

.footer-tagline {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #c9b99a;
    margin: 0;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
    max-width: 400px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 24px 0;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #8b7355;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: #c9b99a;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
    display: inline-block;
    line-height: 1.6;
    position: relative;
    padding-left: 0;
}

.footer-menu a::before {
    content: '→';
    position: absolute;
    left: -18px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #e74c3c;
}

.footer-menu a:hover {
    color: #fff;
    padding-left: 18px;
}

.footer-menu a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-bottom {
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #8b7355;
    margin: 0;
    font-family: 'EB Garamond', 'Garamond', 'Times New Roman', serif;
}

.footer-site-link {
    color: #c9b99a;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-site-link:hover {
    color: #e74c3c;
}

/* Footer Mobile Responsive */
@media (max-width: 968px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-brand {
        text-align: center;
        align-items: center;
    }
    
    .footer-tagline {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 60px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-main {
        padding: 30px 0 20px;
        gap: 25px;
    }
    
    .footer-brand {
        margin-bottom: 8px;
    }
    
    .footer-logo-text {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .footer-tagline {
        display: none; /* Hide tagline on mobile */
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-column-title {
        font-size: 0.95rem;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
    
    .footer-column-title::after {
        width: 25px;
    }
    
    .footer-menu {
        gap: 6px;
    }
    
    .footer-menu a {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding: 12px 0;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        margin-top: 50px;
        border-top-width: 2px;
    }
    
    .footer-container {
        padding: 0 12px;
    }
    
    .footer-main {
        padding: 20px 0 15px;
        gap: 0;
        border-bottom: none;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-logo {
        margin-bottom: 0;
    }
    
    .footer-logo-text {
        font-size: 1.3rem;
        letter-spacing: 1.5px;
    }
    
    .footer-tagline {
        display: none; /* Keep tagline hidden on mobile */
    }
    
    /* Ultra-compact links layout - horizontal rows */
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-column {
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .footer-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer-column-title {
        font-size: 0.9rem;
        margin-bottom: 8px;
        padding-bottom: 5px;
        font-weight: 500;
    }
    
    .footer-column-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 1.5px;
    }
    
    .footer-menu {
        align-items: center;
        gap: 4px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-menu li {
        display: inline-block;
    }
    
    .footer-menu a {
        font-size: 0.8rem;
        padding: 3px 6px;
        color: #c9b99a;
        border-radius: 3px;
        transition: all 0.2s ease;
        white-space: nowrap;
    }
    
    .footer-menu a::before {
        display: none;
    }
    
    .footer-menu a:hover {
        padding-left: 6px;
        background-color: rgba(139, 115, 85, 0.2);
        color: #fff;
    }
    
    .footer-bottom {
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 0;
    }
    
    .footer-copyright {
        font-size: 0.7rem;
        line-height: 1.3;
    }
}
