/* Additional responsive and component styles */

.browse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.browse-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    height: fit-content;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background-color: var(--primary-color);
    color: white;
}

.book-details {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.book-cover-large {
    height: 450px;
    background: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.book-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-cover-large {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--text-light);
}

.book-info-detailed h1 {
    margin-bottom: 0.5rem;
}

.author-name {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.rating-large {
    margin: 1rem 0;
    font-size: 1.2rem;
}

.book-meta {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.book-meta p {
    margin: 0.5rem 0;
}

.book-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.book-description {
    margin-top: 2rem;
}

.reviews-section {
    margin-top: 3rem;
}

.review-form {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 2rem;
    color: #ddd;
    transition: color 0.3s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #fbbf24;
}

.reviews-list {
    margin-top: 2rem;
}

.review-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-rating {
    color: #fbbf24;
}

.review-date {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.review-comment {
    line-height: 1.6;
}

.reader-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.reader-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.reader-content {
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 1rem;
}

.reader-message {
    text-align: center;
    padding: 3rem;
}

.profile-container {
    max-width: 800px;
    margin: 2rem auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.profile-avatar {
    font-size: 5rem;
    color: var(--primary-color);
}

.profile-info h1 {
    margin-bottom: 0.5rem;
}

.member-since {
    color: var(--text-light);
    margin-top: 0.5rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.profile-stats .stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.profile-stats .stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s;
}

.search-result-item:hover {
    background-color: var(--light-bg);
}

.search-result-item img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.no-thumb {
    width: 50px;
    height: 70px;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    background-color: #d1fae5;
    color: #065f46;
}

.notification-error {
    background-color: #fee2e2;
    color: #991b1b;
}

.notification-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .browse-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        margin-bottom: 2rem;
    }
    
    .book-details {
        grid-template-columns: 1fr;
    }
    
    .book-cover-large {
        height: 350px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .book-actions {
        flex-direction: column;
    }
    
    .book-actions .btn {
        width: 100%;
    }
}
