/* Custom CSS for Narrate Flow */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Sans+Pro:wght@300;400;600&display=swap');

/* Global Styles */
:root {
    --primary: #4a5568;
    --secondary: #805ad5;
    --accent: #e53e3e;
    --light: #f7fafc;
    --dark: #1a202c;
    --success: #38a169;
    --info: #3182ce;
    --warning: #d69e2e;
    --danger: #e53e3e;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--gray-800);
    line-height: 1.7;
    background-color: var(--gray-100);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(128, 90, 213, 0.3), rgba(74, 85, 104, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Book Cards */
.book-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.book-card .card-img-top {
    height: 300px;
    object-fit: cover;
}

.book-card .card-body {
    padding: 1.5rem;
}

.book-card .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.book-card .badge {
    font-weight: 400;
    padding: 0.5em 0.8em;
    border-radius: 50px;
}

/* Author Cards */
.author-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background-color: #6b46c1;
    border-color: #6b46c1;
}

.btn-outline-primary {
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-outline-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

footer a.text-white {
    transition: all 0.3s ease;
}

footer a.text-white:hover {
    color: var(--secondary) !important;
    text-decoration: none;
}

/* Book Details Page */
.full-text-content {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.2rem;
    line-height: 2;
    color: var(--gray-800);
    max-width: 800px;
    margin: 0 auto;
}

.book-cover-large {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

/* Pagination */
.page-item.active .page-link {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.page-link {
    color: var(--secondary);
}

.page-link:hover {
    color: var(--gray-800);
}

/* Forms */
.form-control {
    border-radius: 4px;
    border: 1px solid var(--gray-300);
    padding: 0.75rem;
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(128, 90, 213, 0.25);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

/* Genre badges */
.badge.bg-primary {
    background-color: var(--secondary) !important;
}

/* Custom animations */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

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

.slide-up {
    animation: slideUp 0.8s ease-out;
}

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

/* Reading mode */
.reading-mode {
    background-color: #f8f5f1;
    color: #453536;
    padding: 30px;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

/* Profile page */
.profile-image {
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0;
    }
    
    .book-card .card-img-top {
        height: 250px;
    }
}

/* Dark mode */
.dark-mode {
    background-color: var(--gray-900);
    color: var(--gray-200);
}

.dark-mode .card {
    background-color: var(--gray-800);
    color: var(--gray-200);
}

.dark-mode .navbar {
    background-color: var(--gray-900) !important;
}

.dark-mode .bg-light,
.dark-mode .alert-light,
.dark-mode .list-group-item {
    background-color: var(--gray-800) !important;
    color: var(--gray-200) !important;
}

.dark-mode .card-footer.bg-light {
    background-color: var(--gray-800) !important;
    border-top-color: var(--gray-700);
}

.dark-mode .section.bg-light {
    background-color: var(--gray-900) !important;
}

.dark-mode hr {
    border-color: var(--gray-700);
}

.dark-mode .text-muted {
    color: var(--gray-400) !important;
}

/* Quote styles */
.book-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    padding: 25px;
    border-left: 5px solid var(--secondary);
    background-color: rgba(128, 90, 213, 0.05);
    margin: 30px 0;
}

.subscription-message {
    font-size: 0.9rem;
    min-height: 24px;
    transition: all 0.3s ease;
}

.subscription-message div {
    padding: 5px;
    border-radius: 4px;
}

.subscription-message .text-success {
    background-color: rgba(56, 161, 105, 0.1);
}

.subscription-message .text-danger {
    background-color: rgba(229, 62, 62, 0.1);
} 