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

:root {
    --bg: #fafafa;
    --bg-alt: #ffffff;
    --bg-card: #f4f4f5;
    --text: #18181b;
    --text-muted: #52525b;
    --accent: #0d3b66; /* Deep Navy Blue */
    --accent-hover: #0a2c4d;
    --border: rgba(0, 0, 0, 0.08);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--text-muted);
}
.nav-links a:hover {
    color: var(--text);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}
.btn-outline {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 2rem 6rem;
    background: radial-gradient(circle at top right, rgba(13, 59, 102, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.02), transparent 40%);
}
.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}
.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}
.hero-text h1 span {
    color: var(--accent);
}
.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}
.hero-image-wrapper {
    position: relative;
    perspective: 1000px;
}
.hero-book {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    box-shadow: -20px 20px 50px rgba(0,0,0,0.15), 0 0 20px rgba(13, 59, 102, 0.2);
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
    border-radius: 4px 8px 8px 4px;
    border-left: 4px solid #fff;
}
.hero-book:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

/* Sections */
.section {
    padding: 8rem 2rem;
    border-bottom: 1px solid var(--border);
}
.section-alt {
    background-color: var(--bg-alt);
}
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    font-style: italic;
}

/* Blog Cards */
.posts-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem 3rem;
}
@media (max-width: 992px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .posts-grid { grid-template-columns: 1fr; }
}
.post-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.post-card:hover {
    transform: translateY(-5px);
}
.post-card-img-wrapper {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}
.post-card-img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.post-card:hover .post-card-img {
    transform: scale(1.05);
}
.post-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
}
.post-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.post-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.post-excerpt {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.7;
}
.read-more {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    border: none;
    align-self: flex-start;
}
.read-more::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.read-more:hover::after {
    transform: translateX(5px);
}
.read-more:hover {
    color: var(--accent);
}

/* Review Cards */
.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 4rem 0;
}
.review-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    position: relative;
}
.review-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: var(--font-heading);
    font-size: 5rem;
    color: rgba(13, 59, 102, 0.2);
    line-height: 1;
}
.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.review-author {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: #09090b;
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 2rem 1.5rem;
    margin-top: 4rem;
    text-align: center;
}
.footer-compact {
    max-width: 800px;
    margin: 0 auto;
}
.socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0 2.5rem;
    flex-wrap: wrap;
}
.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}
.social-icon.youtube { background: #cd201f; }
.social-icon.x-twitter { background: #65676b; }
.social-icon.facebook { background: #3b5998; }
.social-icon.tiktok { background: #ff0050; }
.social-icon.instagram { background: #e1306c; }
.social-icon.pinterest { background: #bd081c; }
.social-icon.goodreads { background: #553b08; }

.footer-bottom-compact {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
}
.footer-bottom-compact p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}
.footer-bottom-compact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
.footer-bottom-compact a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text h1 { font-size: 3rem; }
    .hero-text p { margin: 0 auto 2rem; }
    .review-grid { grid-template-columns: 1fr; }
}

/* Book Landing Page */
.book-hero {
    padding: 10rem 2rem 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(13, 59, 102, 0.1), transparent 60%);
    border-bottom: 1px solid var(--border);
}
.book-hero-container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}
.book-hero-image {
    width: 100%;
    max-width: 450px;
    box-shadow: -25px 25px 60px rgba(0,0,0,0.15), 0 0 30px rgba(13, 59, 102, 0.2);
    border-radius: 4px 10px 10px 4px;
    border-left: 5px solid #fff;
    margin: 0 auto;
    display: block;
}
.book-hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}
.book-hero-text h2 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-weight: 300;
}
.book-landing-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-muted);
}
.book-landing-content h2 {
    font-size: 2rem;
    color: var(--accent);
    margin: 3.5rem 0 1.5rem;
    font-weight: 600;
}
.book-landing-content h2:first-of-type {
    margin-top: 0;
}
.book-landing-content h3 {
    font-size: 1.8rem;
    color: var(--text);
    margin: 3rem 0 1.5rem;
}
.book-landing-content p {
    margin-bottom: 2rem;
}
.book-landing-content ul {
    margin: 2rem 0 2rem 2rem;
    list-style-type: square;
    color: var(--text);
}
.book-landing-content li {
    margin-bottom: 1rem;
}
.book-landing-content blockquote {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text);
    border-left: 4px solid var(--accent);
    padding: 2rem 2rem 2rem 3rem;
    margin: 4rem 0;
    background: var(--bg-card);
    border-radius: 0 8px 8px 0;
    position: relative;
}
.book-landing-content blockquote::before {
    content: '"';
    position: absolute;
    top: 0;
    left: 1rem;
    font-size: 4rem;
    color: rgba(13, 59, 102, 0.3);
    font-family: var(--font-heading);
}

@media (max-width: 768px) {
    .book-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Book Tabs */
.book-tabs-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 2rem;
}
.book-tabs-header {
    display: flex;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}
.book-tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: #777;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-right: 1px solid #ddd;
    white-space: nowrap;
}
.book-tab-btn:last-child {
    border-right: none;
}
.book-tab-btn:hover {
    background: #eaeaea;
}
.book-tab-btn.active {
    color: #c92a2a;
    background: #fff;
}
.book-tab-content {
    display: none;
    padding: 2.5rem;
    color: #555;
    line-height: 1.8;
}
.book-tab-content.active {
    display: block;
}

/* About Page Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-grid > div:first-child {
        position: static !important;
    }
}

/* Post Body Typography */
.post-body p {
    margin-bottom: 1.5rem;
}
.post-body h2 {
    font-size: 2rem;
    margin: 3rem 0 1rem;
    color: var(--text);
}
.post-body h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text);
}
.post-body ul, .post-body ol {
    margin: 0 0 1.5rem 2rem;
}
.post-body li {
    margin-bottom: 0.5rem;
}
.post-body blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--accent);
    margin: 5px 0;
    transition: 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }

    .nav-links.nav-active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        letter-spacing: 3px;
        color: var(--accent);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}
