/*
  My Fireside Library: Stylesheet
  Created by Kreativ Enuf Studios
  Custom design for Connie Gilbert
*/

body {
    margin: 0;
    background: #1a1410;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 7%;
    box-sizing: border-box;
    background: rgba(18, 13, 10, 0.72);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(230, 168, 92, 0.25);
}

.logo {
    font-family: "Playfair Display", serif;
    color: #f5e6d3;
    font-size: 1.4rem;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: #f5e6d3;
    text-decoration: none;
    font-family: "Cinzel", serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: #e6a85c;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    background: url("/static/images/fireside-hero.jpg") center/cover no-repeat;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 10, 0.55);
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #1a1410);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #f5e6d3;
    max-width: 760px;
    padding: 20px;
    z-index: 2;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: 4.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.75);
}

.hero p {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.7;
    margin: 10px 0 45px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.75);
}

.hero-button {
    font-family: "Cinzel", serif;
    background: #e6a85c;
    color: #2e1f17;
    text-decoration: none;
    padding: 14px 32px;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.hero-button:hover {
    background: #f2bc78;
    transform: translateY(-2px);
}

/* PAGE CONTENT */
.page-content {
    padding-top: 90px;
    min-height: 100vh;
    background: #1a1410;
}

/* BOOKS PAGE */
.book-shelves {
    color: #f5e6d3;
    padding: 70px 8% 90px;
    text-align: center;
}

.book-shelves h2 {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    margin-bottom: 50px;
}

.shelf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.book-card {
    background: rgba(245, 230, 211, 0.08);
    border: 1px solid rgba(230, 168, 92, 0.35);
    color: #f5e6d3;
    text-decoration: none;
    padding: 35px 25px;
    min-height: 180px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: 0.3s ease;
    cursor: pointer;
}

.book-card:hover {
    border-color: #e6a85c;
    background: rgba(230, 168, 92, 0.12);
    transform: translateY(-6px) scale(1.02);
}

.book-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.book-card p {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
    line-height: 1.5;
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    gap: 30px;
    justify-content: center;
    align-items: start;
}

.children-grid .book-cover {
    max-height: 330px;
    object-fit: cover;
}

/* ABOUT PAGE */
.about-page {
    color: #f5e6d3;
    padding: 100px 8%;
    display: flex;
    justify-content: center;
}

.about-box {
    text-align: center;
    max-width: 850px;
    background: rgba(245, 230, 211, 0.08);
    border: 1px solid rgba(230, 168, 92, 0.35);
    border-radius: 16px;
    padding: 55px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.avatar-wrapper {
    position: relative;
    width: 160px;
    margin: 0 auto 35px;
}

.about-avatar {
    width: 160px;
    height: 160px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    border: 2px solid rgba(230, 168, 92, 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.about-avatar-real {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    right: -6px;
    bottom: -6px;
    border: 3px solid #2e1f17;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.about-box h1 {
    font-family: "Playfair Display", serif;
    font-size: 3.2rem;
    margin-bottom: 25px;
}

.about-box p {
    font-family: Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.8;
}

.about-intro {
    font-family: "Cormorant Garamond", serif !important;
    font-style: italic;
    font-size: 1.5rem !important;
    color: #e6a85c;
}

/* CONTACT PAGE */
.contact-page {
    color: #f5e6d3;
    padding: 100px 8%;
    display: flex;
    justify-content: center;
}

.contact-box {
    text-align: center;
    max-width: 750px;
    width: 100%;
    background: rgba(245, 230, 211, 0.08);
    border: 1px solid rgba(230, 168, 92, 0.35);
    border-radius: 16px;
    padding: 55px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.contact-box h1 {
    font-family: "Playfair Display", serif;
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.contact-intro {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.5rem;
    color: #e6a85c;
    margin-bottom: 35px;
}

.mailbox-wrap {
    text-align: center;
    margin: 35px 0 30px;
}

.mailbox-img {
    width: 220px;
    max-width: 80%;
    display: block;
    margin: 0 auto;
    opacity: 0.95;
}

.mailbox-img {
    transition: transform 0.4s ease;
}

.mailbox-img:hover {
    transform: scale(1.03);
}

@keyframes mailboxBounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.contact-actions {
    text-align: center;
    margin-top: 25px;
}

/* BLOG PAGE */
.blog-page {
    color: #f5e6d3;
    padding: 100px 8%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.blog-page h1 {
    font-family: "Playfair Display", serif;
    font-size: 3.2rem;
}

.blog-intro {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.5rem;
    color: #e6a85c;
    margin-bottom: 45px;
}

.blog-card {
    background: rgba(245, 230, 211, 0.08);
    border: 1px solid rgba(230, 168, 92, 0.35);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.blog-date {
    color: #e6a85c;
    font-family: "Cinzel", serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.blog-card p {
    font-size: 1.15rem;
    line-height: 1.8;
}

.blog-card h2 {
    font-family: "Playfair Display", serif;
}

/* FOOTER */
.site-footer {
    background: #120d0a;
    color: #f5e6d3;
    text-align: center;
    padding: 24px 20px;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    border-top: 1px solid rgba(230, 168, 92, 0.25);
}

/* MOBILE */
@media (max-width: 900px) {
    .shelf-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .shelf-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        gap: 14px;
    }

    .contact-box,
    .about-box {
        padding: 40px 25px;
    }
}
