/* ================================
   Custom Color Variables
   ================================ */
:root {
    --navy: #022B3A;
    --teal: #1F7A8C;
    --light-blue: #BFDBF7;
    --pale-blue: #E1E5F2;
    --white: #FFFFFF;
}

/* ================================
   General Styles
   ================================ */
body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 300;
    color: #333;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.display-1, .display-2, .display-3, .display-4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: -0.5px;
}

p, .lead {
    font-weight: 400;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.7;
}

/* ================================
   Navigation
   ================================ */
.bg-navy {
    background-color: var(--navy) !important;
}

.navbar-dark .navbar-brand {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--white);
}

.navbar-dark .navbar-nav .nav-item.active .nav-link {
    color: var(--white);
    font-weight: 500;
    border-bottom: 2px solid var(--teal);
}

/* ================================
   Hero Section
   ================================ */
.hero-section {
    background: linear-gradient(135deg, var(--pale-blue) 0%, var(--white) 100%);
    min-height: 500px;
    padding: 3rem 0 !important;
}

.book-cover-wrapper {
    position: relative;
    display: inline-block;
    max-width: 350px;
}

.book-cover-img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover-wrapper a:hover .book-cover-img {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.text-navy {
    color: var(--navy) !important;
}

.text-teal {
    color: var(--teal) !important;
}

.book-description p {
    line-height: 1.8;
    font-size: 1rem;
    color: #555;
}

.book-info {
    font-size: 0.95rem;
}

/* ================================
   Buttons
   ================================ */
.btn-primary {
    background-color: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.btn {
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

/* ================================
   Footer
   ================================ */
.footer {
    background-color: var(--navy) !important;
    border-top: 4px solid var(--teal);
}

.footer h5 {
    color: var(--white);
    font-size: 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Lato', sans-serif;
    font-weight: 300;
}

/* ================================
   Content Pages (Prose)
   ================================ */
.prose {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem 1.5rem;
}

.prose h1 {
    color: var(--navy);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--teal);
    padding-bottom: 0.5rem;
}

.prose h2 {
    color: var(--teal);
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: #555;
}

.prose a {
    color: var(--teal);
    text-decoration: underline;
}

.prose a:hover {
    color: var(--navy);
}

.prose ul,
.prose ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ================================
   Forms
   ================================ */
.form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 0.2rem rgba(31, 122, 140, 0.25);
}

label {
    color: var(--navy);
    font-weight: 500;
}

/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 !important;
    }

    .display-4 {
        font-size: 2rem;
    }

    .book-cover-wrapper {
        max-width: 250px;
    }

    .prose {
        padding: 1.5rem 1rem;
    }

    .prose h1 {
        font-size: 2rem;
    }
}

/* ================================
   Utility Classes
   ================================ */
.bg-pale-blue {
    background-color: var(--pale-blue);
}

.bg-light-blue {
    background-color: var(--light-blue);
}

.border-teal {
    border-color: var(--teal) !important;
}

/* ================================
   Reviews Page
   ================================ */
.review-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid var(--teal);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.review-stars {
    font-size: 1.1rem;
}

.review-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.review-meta {
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    font-size: 0.875rem;
}

.badge-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* ================================
   Recipes Page
   ================================ */
.recipe-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.recipe-description {
    line-height: 1.7;
}

.ingredients {
    background-color: var(--pale-blue);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--teal);
}

.ingredients h3 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.ingredients .list-group-item {
    background-color: transparent;
    padding: 0.875rem 0;
    font-size: 1.125rem;
    color: #2c3e50;
    font-weight: 500;
    border-color: rgba(31, 122, 140, 0.2);
}

.ingredients .list-group-item:first-child {
    padding-top: 0;
}

.ingredients .list-group-item i {
    font-size: 1rem;
}

.recipe-image {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.recipe-image:hover {
    transform: scale(1.02);
}

/* Responsive adjustments for recipe page */
@media (max-width: 768px) {
    .recipe-content {
        text-align: center;
    }

    .ingredients {
        text-align: left;
    }

    .recipe-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ================================
   Discussion Questions Page
   ================================ */
.discussion-content .question-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(31, 122, 140, 0.15);
    transition: padding-left 0.3s ease;
}

.discussion-content .question-item:last-child {
    border-bottom: none;
}

.discussion-content .question-item:hover {
    padding-left: 1rem;
}

.discussion-content .question-item h3 {
    margin-bottom: 0;
    color: var(--navy);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.35rem;
    line-height: 1.5;
    letter-spacing: -0.3px;
}

.discussion-content .question-item i {
    color: var(--teal);
    font-size: 1rem;
    margin-right: 0.75rem;
    opacity: 0.7;
}

/* Responsive adjustments for discussion questions page */
@media (max-width: 768px) {
    .discussion-content {
        margin-bottom: 2rem;
    }

    .discussion-content .question-item h3 {
        font-size: 1.2rem;
    }
}
