/* AmazonBestSellers.org Styles */
/* Color Palette: Orange (#FF7A00), Secondary Orange (#FFB347), Dark Gray (#111111), Medium Gray (#555555), Light Background (#F9F9F9), White (#FFFFFF), Blue Links (#0073CC) */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #FFFFFF;
    font-size: 16px;
}

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

/* Header */
.header {
    background-color: #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: #FF7A00;
}

/* Main Layout */
.main-layout {
    display: flex;
    min-height: calc(100vh - 140px);
    gap: 2rem;
    padding: 2rem 0;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background-color: #E5E7EB;
    border-radius: 12px;
    padding: 1rem;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.75rem;
}

.sidebar h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #FF7A00;
    margin: 0.5rem 0 0.2rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar h4:first-child {
    margin-top: 0;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.1rem;
}

.category-list a {
    text-decoration: none;
    color: #000000;
    font-size: 0.85rem;
    padding: 0.2rem 0;
    display: block;
    transition: color 0.2s ease;
    border-radius: 6px;
    padding-left: 0.3rem;
}

.category-list a:hover {
    color: #FF7A00;
    background-color: #E5E7EB;
}

.category-filter {
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-filter:hover {
    color: #FF7A00;
    background-color: #E5E7EB;
}

.category-filter.active {
    color: #FF7A00;
    background-color: #E5E7EB;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: calc(100% - 270px);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666666;
}

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

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

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem 0;
    background-color: #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF7A00;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 0.5rem;
}

.data-note {
    font-size: 0.9rem;
    color: #666666;
    font-style: italic;
}

/* All Awards */
.all-awards {
    margin-bottom: 3rem;
}

.all-awards h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 2rem;
}

.category-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.category-section:last-child {
    border-bottom: none;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FF7A00;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
}

.award-type {
    font-size: 1.1rem;
    font-weight: 500;
    color: #000000;
    margin: 0.5rem 0 0.5rem 0;
    opacity: 0.8;
}

.books-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

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

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.view-all {
    text-align: center;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Book Card */
.book-card {
    background-color: #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.book-card-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.book-cover-small {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.book-rank {
    display: inline-block;
    background-color: #FF7A00;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}


.book-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.book-author {
    color: #000000;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.book-description {
    font-size: 0.85rem;
    color: #333333;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* Book Detail Page */
.book-detail-container {
    display: flex;
    gap: 2rem;
    background-color: #E5E7EB;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.book-cover {
    flex-shrink: 0;
}

.book-cover img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.book-info {
    flex: 1;
}

.book-info h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

.book-author {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.book-award {
    font-size: 1rem;
    color: #FF7A00;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.book-meta {
    margin-bottom: 1.5rem;
}

.meta-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.meta-item strong {
    color: #000000;
}

.book-description h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.book-description p {
    color: #333333;
    line-height: 1.6;
}

.book-actions {
    margin-top: 2rem;
}

/* Content Cards */
.content-card {
    background-color: #E5E7EB;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
}

.content-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.content-card p {
    color: #333333;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.content-card ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-card li {
    color: #333333;
    margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-item {
    padding: 1rem;
    background-color: #FFFFFF;
    border-radius: 8px;
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

/* FAQ */
.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #FF7A00;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #FFB347;
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Links */
a {
    color: #0073CC;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #E5E7EB;
    color: #000000;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    color: #666666;
    font-size: 0.9rem;
}

/* Category Header */
.category-header {
    margin-bottom: 2rem;
}

.category-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

.category-header p {
    color: #666666;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        order: 2;
    }
    
    .main-content {
        max-width: 100%;
        order: 1;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .books-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .book-detail-container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .book-card {
        padding: 1rem;
    }
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #000000;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #E5E5E5;
    border-top: 2px solid #FF7A00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.error-message {
    text-align: center;
    padding: 3rem;
    background-color: #111216;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 2rem 0;
}

.error-message h2 {
    color: #FF4444;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-message p {
    color: #333333;
    margin-bottom: 1rem;
    line-height: 1.6;
}

