/* 
   Author Riteeka - Contemporary Romance Theme (Light/Elegant)
   ARCHITECTURE: MOBILE-FIRST
*/

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,300&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
    --bg-primary: #FAFAFA;
    --bg-secondary: #F4EFEA;
    --bg-dark: #2A2626;
    --text-primary: #333333;
    --text-secondary: #6A6565;
    --text-light: #FDFDFD;
    
    --accent-color: #8C3A4F;
    --accent-hover: #A74C65;
    --accent-gold: #D4AF37;
    --accent-blush: #EBCFD5;
    
    --shadow-soft: 0 10px 25px rgba(140, 58, 79, 0.08); /* Saller shadow for mobile */
    --shadow-hover: 0 20px 40px rgba(140, 58, 79, 0.15);
    
    --font-heading: 'Lora', serif;
    --font-body: 'Lato', sans-serif;
    
    --max-width: 1100px;
    --nav-height: 70px; /* Shorter for mobile */
    --radius-soft: 12px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6; /* Tighter line-height for mobile readability */
    -webkit-font-smoothing: antialiased;
    background-image: linear-gradient(135deg, rgba(250,250,250,1) 0%, rgba(244,239,234,0.4) 100%);
    overflow-x: hidden;
}

/* === BASE TYPOGRAPHY (Mobile Optimized) === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--bg-dark);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    font-weight: 300;
}

/* === NAVIGATION (Mobile Off-Canvas) === */
.navbar {
    background-color: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(140, 58, 79, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-height);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo-txt {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--bg-dark);
    position: relative;
    z-index: 1001; /* Stay above mobile menu */
    flex-shrink: 0;
}

/* Base Nav Links (Hidden on Mobile) */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden offscreen */
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 3rem;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    list-style: none;
}

.nav-links.active {
    right: 0; /* Slide in */
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.nav-links a.active {
    color: var(--accent-color);
    font-weight: 700;
}

/* Hamburger Icon */
.mobile-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--bg-dark);
    z-index: 1001;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid var(--accent-color);
    transition: all 0.4s ease;
    border-radius: 40px;
    color: var(--accent-color);
    background-color: transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-light);
}

/* === LAYOUT (Mobile Base) === */
.page-wrap {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-spacing {
    padding: 4rem 0;
}

/* Grids defaulting to single column auto-flow for mobile */
.editorial-grid, .bookshelf-grid, .char-grid, .journal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Horizontal sliders native on mobile */
.backlist-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    padding-top: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
}
.backlist-carousel::-webkit-scrollbar { display: none; }

.mini-book-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
    text-align: center;
}
.mini-cover { width: 100%; border-radius: 4px; margin-bottom: 1rem; box-shadow: var(--shadow-soft); }

/* Splits default to stacked */
.journey-split {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    padding: 0 1.5rem;
}

/* A+ Content Mobile Adjustments */
.aplus-hook { padding: calc(var(--nav-height) + 3rem) 1.5rem 4rem; }
.aplus-hook-image-wrap { margin-bottom: 2rem; }
.aplus-journey { padding: 4rem 0; }
.aplus-characters { padding: 4rem 1.5rem; }
.aplus-promise { padding: 5rem 1.5rem; }

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

.book-card-cover {
    width: 100%;
    max-width: 280px; /* Standard paperback width */
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
    display: block;
    margin: 0 auto 1.5rem auto;
}


/* ========================================================
   PROGRESSIVE ENHANCEMENT: TABLET (768px & UP)
   ======================================================== */
@media (min-width: 768px) {
    /* Navigation returns to horizontal */
    .mobile-toggle { display: none; }
    
    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        flex-direction: row;
        padding: 0;
        transform: none;
        gap: 1.5rem;
        flex-wrap: nowrap;
    }
    
    .nav-links a { font-size: 0.95rem; }
    
    .btn { padding: 1rem 3rem; font-size: 0.9rem; }
    
    /* Layout Expansion */
    .section-spacing { padding: 6rem 0; }
    
    /* Grids expand */
    .bookshelf-grid, .char-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
        gap: 3rem 2rem;
        justify-content: center;
    }
    .editorial-grid, .journal-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 3rem;
    }
    
    .mini-book-card { flex: 0 0 200px; }
}


/* ========================================================
   PROGRESSIVE ENHANCEMENT: DESKTOP (1024px & UP)
   ======================================================== */
@media (min-width: 1024px) {
    body { line-height: 1.8; }
    
    /* Cinematic Typography Scale */
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.8rem; }
    h3 { font-size: 2.2rem; }
    p { font-size: 1.1rem; }
    
    :root {
        --nav-height: 90px;
        --shadow-soft: 0 15px 40px rgba(140, 58, 79, 0.08); /* Restore lush shadow */
    }
    
    /* Spacing Expansion */
    .page-wrap { padding: 0 2rem; }
    .section-spacing { padding: 8rem 0; }
    
    /* Splits go side-by-side */
    .journey-split {
        flex-direction: row;
        gap: 6rem;
    }
    
    /* Hover effects (reserved for point-devices) */
    .btn:hover {
        background-color: var(--accent-color);
        color: var(--text-light);
        box-shadow: var(--shadow-hover);
        transform: translateY(-2px);
    }
    
    .editorial-card:hover, .journal-post:hover, .book-card-grid:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-hover);
    }
    
    .journey-img:hover {
        transform: rotate(0deg) scale(1.02);
    }
}

/* Component specifics reused globally */
.text-accent { color: var(--accent-color); }
.text-secondary { color: var(--text-secondary); }
.editorial-card, .journal-post { 
    background-color: rgba(255, 255, 255, 0.6); 
    border-radius: var(--radius-soft); 
    box-shadow: var(--shadow-soft); 
    text-align: center; 
    padding: 3rem 2rem;
    transition: all 0.4s ease;
}
.char-img-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, var(--accent-blush), var(--bg-primary));
    box-shadow: var(--shadow-soft);
}
.char-img-wrapper img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.site-footer { text-align: center; padding: 4rem 1.5rem 2rem; background-color: var(--bg-primary); }
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.social-links a {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 1.3rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: #fff !important;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(140, 58, 79, 0.15);
    border-color: var(--accent-color);
}

/* Global Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === HERO & FEATURED SHOWCASE === */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 4rem) 0 2rem;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-content {
    flex: 1.2;
    text-align: left;
}

.cover-showcase {
    flex: 0.8;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
}

.cover-showcase img {
    width: 350px;
    border-radius: 6px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}

.cover-showcase img:hover {
    transform: translateY(-10px) rotate(2.5deg);
}

.hero h1 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
    font-style: italic;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-color);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    font-weight: 700;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Hero Responsiveness */
@media (max-width: 1024px) {
    .hero { padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem; min-height: auto; }
    .hero-flex {
        flex-direction: column;
        text-align: center;
        gap: 3.5rem;
    }
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .cover-showcase {
        justify-content: center;
    }
    .cover-showcase img { width: 300px; }
    .hero h1 { font-size: 3.5rem; }
    .hero-desc { margin-bottom: 2.5rem; }
    .hero-btns { justify-content: center; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.8rem; }
    .cover-showcase img { width: 240px; }
    .hero-subtitle { font-size: 0.85rem; letter-spacing: 3px; }
}


/* === BREADCRUMBS === */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    list-style: none !important;
    padding: 0;
    justify-content: flex-start;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    list-style-type: none !important;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    font-size: 0.7rem;
    opacity: 0.5;
    margin-left: 0.2rem;
}

.breadcrumbs a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.breadcrumbs a:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

.breadcrumbs li:last-child {
    color: var(--accent-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 0.7rem;
        gap: 0.6rem;
    }
    .breadcrumbs li {
        gap: 0.6rem;
    }
}
