/*
  Filename: assets/styles.css
  Purpose: Main stylesheet for The Book Nooks website
  Fonts: Playfair Display (headings), Poppins (body), Fraunces (accents)
  Dependencies: Bootstrap 5.3.2, AOS (Animate On Scroll)
*/

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #E67E22;
    --accent-color: #8B4513;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --bg-light: #F9F7F4;
    --bg-cream: #FFF8F0;
    --white: #ffffff;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, sans-serif;
    --font-accent: 'Fraunces', serif;
    --transition: all 0.3s ease;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

/* ============================================
   Cookie Banner
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-banner a {
    color: var(--secondary-color);
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
}

.brand-accent {
    color: var(--secondary-color);
    font-style: italic;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    padding: 120px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(142, 68, 173, 0.8) 100%);
    z-index: 0;
}

.hero-section .container,
.hero-section .row {
    position: relative;
    z-index: 1;
}

.hero-title {
    color: var(--white);
    margin-bottom: 2rem;
    font-weight: 900;
}

.hero-title .line {
    display: block;
}

.hero-title .accent-line {
    color: var(--secondary-color);
    font-style: italic;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-stack img {
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 8px;
}

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

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ============================================
   Sections
   ============================================ */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 50px;
}

/* ============================================
   Nooks Explorer
   ============================================ */
.nooks-explorer {
    background: var(--white);
}

.explorer-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.explorer-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    color: var(--white);
    transition: transform 0.3s ease;
    cursor: pointer;
    width: 300px;
}

.explorer-card:hover {
    transform: translateY(-10px);
}

.explorer-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.explorer-card h3 {
    color: var(--white);
    margin-bottom: 10px;
}

/* ============================================
   Book Cards
   ============================================ */
.book-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.book-card-image {
    position: relative;
    overflow: hidden;
}

.book-card-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.book-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.book-card-content {
    padding: 30px;
}

.book-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.book-author {
    color: var(--text-light);
    margin-bottom: 15px;
}

.book-excerpt {
    color: var(--text-dark);
    margin-bottom: 20px;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* ============================================
   Blind Date Section
   ============================================ */
.blind-date-section {
    background: var(--bg-cream);
    padding: 100px 0;
}

.blind-date-moods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}

.mood-pill {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.mood-pill:hover,
.mood-pill.active {
    background: var(--primary-color);
    color: var(--white);
}

.blind-date-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.wrapped-book {
    width: 300px;
    height: 400px;
    background: #D2691E;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mystery-tag {
    font-size: 4rem;
    color: var(--white);
    font-weight: 900;
}

/* ============================================
   Services
   ============================================ */
.services-section {
    background: var(--white);
}

.service-card {
    background: var(--bg-cream);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-title {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-description {
    color: var(--text-dark);
    margin-bottom: 20px;
    min-height: 100px;
}

.service-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* ============================================
   Articles
   ============================================ */
.article-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-10px);
}

.article-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.article-content {
    padding: 30px;
}

.article-category {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.article-title {
    font-size: 1.5rem;
    margin: 15px 0;
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
}

.article-link {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   Newsletter
   ============================================ */
.newsletter-section {
    background: var(--primary-color);
    color: var(--white);
}

.newsletter-wrapper {
    background: rgba(255,255,255,0.1);
    padding: 60px;
    border-radius: 20px;
}

.newsletter-title {
    color: var(--white);
    margin-bottom: 15px;
}

.newsletter-text {
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}

.newsletter-form .input-group {
    margin-bottom: 15px;
}

.newsletter-form input {
    padding: 15px;
    border: none;
    border-radius: 8px 0 0 8px;
}

.newsletter-form button {
    border-radius: 0 8px 8px 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-title {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-subtitle {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-text {
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
}

.footer-contact a {
    color: rgba(255,255,255,0.8);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

/* ============================================
   Page Specific
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
}

.page-title {
    color: var(--white);
    margin-bottom: 15px;
}

.page-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
}

/* About Page */
.about-story,
.about-mission,
.about-team,
.about-process,
.about-sustainability {
    padding: 80px 0;
}

.about-story,
.about-process {
    background: var(--white);
}

.about-mission,
.about-sustainability {
    background: var(--bg-cream);
}

.mission-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.mission-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.team-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 30px;
}

.team-name {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.process-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.process-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.sustainability-list {
    list-style: none;
    padding: 0;
}

.sustainability-list li {
    padding: 10px 0;
    font-size: 1.1rem;
}

.about-cta {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Contact Page */
.contact-info {
    padding: 60px 0;
    background: var(--white);
}

.info-card {
    background: var(--bg-cream);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-form-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.form-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-map {
    padding: 0;
}

.map-wrapper iframe {
    width: 100%;
    min-height: 450px;
}

/* Product Pages */
.product-section {
    padding: 80px 0;
    background: var(--white);
}

.product-image-wrapper {
    position: relative;
}

.product-image {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-details {
    padding-left: 30px;
}

.product-title {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-author {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.product-rating {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.product-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.product-availability {
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 30px;
}

.product-description,
.product-features {
    margin-bottom: 30px;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-reviews {
    padding: 80px 0;
    background: var(--bg-cream);
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.review-rating {
    margin-bottom: 15px;
    color: #f39c12;
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
}

.review-author {
    font-weight: 600;
    color: var(--text-light);
}

.related-books {
    padding: 80px 0;
    background: var(--white);
}

.book-card-small {
    text-align: center;
    background: var(--bg-cream);
    padding: 20px;
    border-radius: 15px;
}

.book-card-small img {
    border-radius: 10px;
    margin-bottom: 15px;
}

.book-card-small h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.book-card-small .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Article Pages */
.article-single {
    background: var(--white);
}

.article-header {
    padding: 120px 0 60px;
    background: var(--bg-light);
}

.article-hero-image {
    margin-bottom: 60px;
}

.article-hero-image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}



.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content .lead {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    gap: 15px;
    color: var(--text-light);
    margin-top: 15px;
    justify-content: center;
}

.article-cta {
    background: var(--bg-cream);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

/* Legal Pages */
.legal-page {
    padding: 120px 0 80px;
    background: var(--white);
}

.legal-page h1 {
    margin-bottom: 10px;
}

.legal-page h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.legal-page ul,
.legal-page ol {
    margin-bottom: 20px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        margin-top: 20px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .hero-section {
        min-height: auto;
        padding: 80px 0;
    }
    
    .product-details {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .newsletter-wrapper {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .explorer-grid {
        grid-template-columns: 1fr;
    }
    
    .form-wrapper {
        padding: 30px 20px;
    }
    
    .process-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.shadow {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.rounded-3 {
    border-radius: 15px;
}



.navbar-brand img{
    max-width: 200px;
    width: 200px;
    object-fit: contain;
}

html{
    overflow-x: hidden;
}


footer .navbar-brand img{
    filter: brightness(0) invert(1);
}