/* CSS Variables */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #c0c0c0;
    --accent-color: #feaf50;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --content-max-width: 1200px;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    padding-top: 80px;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.books-hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.9) 0%, 
        rgba(20, 20, 20, 0.8) 50%, 
        rgba(10, 10, 10, 0.9) 100%
    );
    position: relative;
    overflow: hidden;
}

.books-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, 
        rgba(254, 175, 80, 0.1) 0%, 
        transparent 60%
    );
    pointer-events: none;
}

.books-hero-inner {
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 24px;
}

.books-hero-container h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.books-hero-container h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Book Modules */
.book-module {
    padding: 8rem 0;
    background: var(--bg-primary);
}

.book-module:nth-child(even) {
    background: var(--bg-secondary);
}

.book-module-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Main Book Content (Two Columns) */
.book-main-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: start;
}

.book-left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.book-cover {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.book-details {
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.book-details p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.book-details p:last-child {
    margin-bottom: 0;
}

.book-details strong {
    color: var(--text-primary);
}

.book-right-column h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.book-right-column h3 {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.book-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* Book Actions */
.book-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(254, 175, 80, 0.3);
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    padding: 1rem 2rem;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(254, 175, 80, 0.3);
    text-decoration: none;
}

.btn-text {
    color: var(--text-secondary);
    text-decoration: underline;
    font-size: 0.95rem;
    text-align: center;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.btn-text:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Chapters Section */
.book-chapters-section {
    margin-top: 6rem;
}

.book-chapters-section h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
}

.chapters-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0 2rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(254, 175, 80, 0.3) transparent;
}

.chapters-carousel::-webkit-scrollbar {
    height: 6px;
}

.chapters-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chapters-carousel::-webkit-scrollbar-thumb {
    background: rgba(254, 175, 80, 0.3);
    border-radius: 3px;
}

.chapters-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(254, 175, 80, 0.5);
}

.chapter-card {
    min-width: 280px;
    max-width: 280px;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chapter-card:hover {
    transform: translateY(-4px);
    border-color: rgba(254, 175, 80, 0.3);
    box-shadow: 0 8px 32px rgba(254, 175, 80, 0.1);
}

.chapter-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.chapter-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Author Section */
.book-author-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Dual Authors Layout */
.book-author-section.dual-authors {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    padding: 4rem 3rem;
}

.dual-authors h4 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
}

.authors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.author-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(254, 175, 80, 0.2);
    transform: translateY(-4px);
}

.author-photo {
    width: 140px;
    height: 140px;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(254, 175, 80, 0.3);
    margin-bottom: 1.5rem;
}

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

.author-bio h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.author-bio h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.author-bio p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.author-bio ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.author-bio li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.author-bio li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .book-main-content {
        grid-template-columns: 250px 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .books-hero-container h1 {
        font-size: 2.5rem;
    }
    
    .books-hero-container h2 {
        font-size: 1.2rem;
    }
    
    .book-main-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .book-left-column {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .book-actions {
        margin: 0 auto;
    }
    
    .book-author-section {
        flex-direction: column;
        text-align: center;
    }
    
    .authors-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .author-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .chapters-carousel {
        flex-direction: column;
        overflow: visible;
    }
    
    .chapter-card {
        min-width: 100%;
        max-width: 100%;
    }
}