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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    line-height: 1.6;
}

.quote-container {
    max-width: 900px;
    width: 100%;
    position: relative;
}

.quote-wrapper {
    background: transparent;
    border-radius: 20px;
    padding: 4rem 3rem;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

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

/* Quote Marks */
.quote-mark {
    font-size: 8rem;
    line-height: 0.8;
    color: var(--accent-color);
    opacity: 0.15;
    font-family: 'Georgia', serif;
    font-weight: bold;
    user-select: none;
}

.quote-mark.opening {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.quote-mark.closing {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    transform: rotate(180deg);
}

/* Quote Content */
.quote-content {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

.quote-text {
    font-size: 1.75rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 3rem;
    color: var(--text-color);
    text-align: center;
    font-weight: 400;
}

/* Attribution */
.quote-attribution {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.quote-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-color),
        transparent
    );
    border-radius: 2px;
}

/* Book Cover */
.book-cover {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.book-image {
    max-width: 180px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.book-image:hover {
    transform: scale(1.05);
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-style: normal;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.book-title {
    font-size: 1rem;
    color: var(--accent-color);
    font-style: italic;
    font-weight: 500;
}

.book-title::before {
    content: '—  ';
    opacity: 0.5;
}

/* Quote Links */
.quote-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.purchase-link,
.source-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.purchase-link {
    color: white;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.purchase-link:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.source-link {
    color: var(--accent-color);
    background-color: transparent;
}

.source-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Navigation */
.bottom-nav {
    text-align: center;
    margin-top: 2rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.nav-link:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .quote-wrapper {
        padding: 3rem 2rem;
    }
    
    .quote-mark {
        font-size: 5rem;
    }
    
    .quote-text {
        font-size: 1.35rem;
        line-height: 1.7;
    }
    
    .author-name {
        font-size: 1.1rem;
    }
    
    .book-title {
        font-size: 0.95rem;
    }
    
    .book-image {
        max-width: 150px;
    }
    
    .quote-links {
        flex-direction: column;
        align-items: center;
    }
    
    .purchase-link,
    .source-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .quote-wrapper {
        padding: 2.5rem 1.5rem;
    }
    
    .quote-mark {
        font-size: 4rem;
    }
    
    .quote-text {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }
    
    .author-name {
        font-size: 1rem;
    }
    
    .book-image {
        max-width: 120px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .quote-wrapper {
        box-shadow: none;
        border: 2px solid #ddd;
    }
    
    .bottom-nav,
    .source-link {
        display: none;
    }
}
