/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #fafafa;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #555770;
    --text-muted: #8b8da3;
    --accent: #6c5ce7;
    --accent-dark: #5a4bd1;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.15);
    --amazon-fr: #ff6b35;
    --amazon-com: #1a1a2e;
    --border: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-hover: 0 20px 60px rgba(108, 92, 231, 0.12), 0 8px 20px rgba(0,0,0,0.06);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.language-selector {
    display: flex;
    gap: 4px;
    background: var(--bg-primary);
    padding: 4px;
    border-radius: 10px;
}

.lang-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(0,0,0,0.04);
}

.lang-btn.active {
    background: white;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 5rem 0 3rem;
    text-align: center;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.2px;
}

/* Main Content */
.main-content {
    padding: 2rem 0 4rem;
}

/* Author Sections */
.author-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.author-section:hover {
    box-shadow: var(--shadow-lg);
}

.author-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.author-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Book Card */
.book-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-light);
}

.book-cover {
    width: 100%;
    height: 340px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f0f0f5;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.book-card:hover .book-cover img {
    transform: scale(1.04);
}

.book-info {
    padding: 1.25rem;
}

.book-title {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    min-height: 2.5rem;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.book-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.amazon-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
}

.amazon-fr {
    background: var(--amazon-fr);
    color: white;
}

.amazon-fr:hover {
    background: #e85d2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

.amazon-com {
    background: var(--amazon-com);
    color: white;
}

.amazon-com:hover {
    background: #2d2d4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.3);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2.5rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.email-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.email-link:hover {
    opacity: 0.7;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.5;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .author-section {
        padding: 2rem 1.5rem;
    }

    .author-name {
        font-size: 1.5rem;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .header .container {
        gap: 0.8rem;
    }

    .logo {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .book-cover {
        height: 260px;
    }
    
    .book-info {
        padding: 1rem;
    }
    
    .book-title {
        font-size: 0.85rem;
        min-height: auto;
    }
    
    .amazon-link {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.author-section {
    animation: fadeUp 0.5s ease both;
}

.author-section:nth-child(2) { animation-delay: 0.1s; }
.author-section:nth-child(3) { animation-delay: 0.2s; }
