@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
    --deep-indigo: #1A1C30;
    --indigo-medium: #2C2E50;
    --rose-gold: #B76E79;
    --antique-gold: #D4AF37;
    --cream: #FAF7F5;
    --muted-white: #F5F2F0;
    --text-primary: #2A2A2A;
    --text-secondary: #666666;
    --shadow-soft: rgba(26, 28, 48, 0.08);
    --shadow-hover: rgba(183, 110, 121, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    color: var(--text-primary);
    background: var(--muted-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fabric texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(26, 28, 48, 0.02) 2px,
            rgba(26, 28, 48, 0.02) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(26, 28, 48, 0.02) 2px,
            rgba(26, 28, 48, 0.02) 4px
        );
    pointer-events: none;
    z-index: 1;
}

/* Header */
header {
    position: relative;
    z-index: 10;
    background: rgba(250, 247, 245, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(26, 28, 48, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand h1 {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--deep-indigo);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.brand .tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-secondary);
    font-style: italic;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--rose-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--deep-indigo) 0%, var(--indigo-medium) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><filter id="noiseFilter"><feTurbulence type="turbulence" baseFrequency="0.9" numOctaves="4" seed="2"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.3;
    mix-blend-mode: overlay;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.featured-quote {
    font-size: 2.25rem;
    font-style: italic;
    color: var(--cream);
    line-height: 1.8;
    margin-bottom: 1rem;
    animation: fadeInUp 1.5s ease-out;
}

.quote-author {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--rose-gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    animation: fadeInUp 1.5s ease-out 0.3s both;
}

.cta-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: transparent;
    color: var(--cream);
    border: 1px solid var(--rose-gold);
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.4s ease;
    animation: fadeInUp 1.5s ease-out 0.6s both;
}

.cta-button:hover {
    background: var(--rose-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(183, 110, 121, 0.3);
}

/* Featured Titles */
.featured-section {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--deep-indigo);
    margin-bottom: 1rem;
}

.section-header p {
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.book-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 2px 20px var(--shadow-soft);
    position: relative;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow-hover);
}

.book-cover {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.book-info {
    padding: 2rem;
}

.book-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--deep-indigo);
    margin-bottom: 0.5rem;
}

.book-author {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(183, 110, 121, 0.1);
    color: var(--rose-gold);
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.book-price {
    font-size: 1.25rem;
    color: var(--deep-indigo);
    font-weight: 400;
}

.view-details {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--rose-gold);
    text-decoration: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.book-card:hover .view-details {
    opacity: 1;
    transform: translateX(0);
}

/* About Section */
.about-section {
    background: var(--deep-indigo);
    color: var(--cream);
    padding: 5rem 0;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.25rem;
    line-height: 2;
    opacity: 0.9;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.testimonial {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    color: rgba(183, 110, 121, 0.1);
    font-family: 'Crimson Text', serif;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.testimonial-author {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--muted-white) 0%, var(--cream) 100%);
    padding: 4rem 0;
    text-align: center;
}

.newsletter h3 {
    font-size: 2rem;
    color: var(--deep-indigo);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: 1px solid rgba(26, 28, 48, 0.2);
    background: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--deep-indigo);
    color: white;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--rose-gold);
    transform: translateY(-2px);
}

/* Book Detail Page Styles */
.book-detail {
    padding: 5rem 0;
    min-height: 100vh;
}

.book-detail-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.book-detail-cover {
    position: sticky;
    top: 2rem;
}

.book-detail-cover img {
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px var(--shadow-soft);
    transition: transform 0.5s ease;
}

.book-detail-cover:hover img {
    transform: scale(1.02);
}

.book-detail-info {
    padding-top: 2rem;
}

.book-detail-title {
    font-size: 3rem;
    font-weight: 400;
    color: var(--deep-indigo);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.book-detail-author {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.book-detail-price {
    font-size: 2rem;
    color: var(--deep-indigo);
    margin-bottom: 2rem;
}

.format-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.format-option {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--deep-indigo);
    background: transparent;
    color: var(--deep-indigo);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.format-option.active,
.format-option:hover {
    background: var(--deep-indigo);
    color: white;
}

.purchase-button {
    width: 100%;
    padding: 1.5rem;
    background: var(--rose-gold);
    color: white;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 3rem;
}

.purchase-button:hover {
    background: var(--deep-indigo);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 28, 48, 0.3);
}

.book-description {
    font-size: 1.125rem;
    line-height: 2;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.book-themes {
    margin-bottom: 3rem;
}

.book-themes h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.theme-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.theme-tag {
    padding: 0.5rem 1rem;
    background: rgba(26, 28, 48, 0.05);
    color: var(--deep-indigo);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    border-radius: 25px;
}

.preview-section {
    margin-bottom: 3rem;
}

.preview-button {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: var(--rose-gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.preview-button:hover {
    color: var(--deep-indigo);
}

/* Related Books */
.related-books {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(26, 28, 48, 0.1);
}

.related-books h3 {
    font-size: 2rem;
    color: var(--deep-indigo);
    margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .book-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .book-detail-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .book-detail-cover {
        position: static;
        text-align: center;
    }
    
    .featured-quote {
        font-size: 1.75rem;
    }
    
    .book-detail-title {
        font-size: 2rem;
    }
} 