/* ============================================
   Petal Talks - Stylesheet
   Lotus/Petal inspired minimal design
   Calm, poetic, soft, and thoughtful
   ============================================ */

/* Color Palette */
:root {
    --bg-white: #FFFFFF;
    --text-black: #000000;
    --accent-pink: #F5C2C7;      /* Soft pink - lotus/petal */
    --accent-green: #7A8B7A;     /* Muted green - leaves/stem */
    --text-gray: #666666;
    --text-light-gray: #999999;
    --border-light: #E8E8E8;
    --shadow-soft: rgba(0, 0, 0, 0.04);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.7;
    color: var(--text-black);
    background-color: var(--bg-white);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Minimal and Clean */
header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-black);
    margin: 0;
    letter-spacing: -0.02em;
    font-style: normal;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

/* Navigation - Subtle and Elegant */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-pink);
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--text-black);
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* Hero Image Section - Full Width */
.hero-image {
    /* Responsive hero image (mobile-first) */
    width: 100%;
    max-width: 100%;
    height: clamp(220px, 45vh, 520px); /* grows with viewport, capped */
    object-fit: cover; /* keeps it beautiful without stretching */
    object-position: center;
    display: block; /* removes inline-image whitespace */
    /* Pink side padding/frame (matches lotus accent) */
    padding-left: clamp(12px, 3vw, 36px);
    padding-right: clamp(12px, 3vw, 36px);
    background-color: var(--accent-pink);
    margin: 0;
}

/* Hero Section - Text Overlay (if needed) */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
    background-color: var(--bg-white);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-black);
    font-weight: 300;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-gray);
    font-weight: 300;
}

/* Section Headings - Calm and Elegant */
section h2 {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
    color: var(--text-black);
    font-weight: 300;
    letter-spacing: -0.01em;
}

/* Latest Posts Section */
.latest-posts {
    padding: 3rem 0 4rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Post Cards - Minimal and Clean */
.post-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px var(--shadow-soft);
}

.post-card:hover {
    box-shadow: 0 4px 12px var(--shadow-soft);
    transform: translateY(-2px);
    border-color: var(--accent-pink);
}

.post-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Homepage card image preview (small, tasteful) */
.post-card .card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: block;
}
.post-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-card h3 a {
    text-decoration: none;
    color: var(--text-black);
    transition: color 0.3s ease;
}

.post-card h3 a:hover {
    color: var(--accent-pink);
}

.post-excerpt {
    color: var(--text-gray);
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-light-gray);
    margin: 0;
    font-weight: 300;
}

/* View All Button */
.view-all {
    text-align: center;
    margin-top: 3rem;
}

/* Blog Listing Page */
.blog-listing {
    padding: 3rem 0 4rem;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.post-item {
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-light);
}

.post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.post-item h3 a {
    text-decoration: none;
    color: var(--text-black);
    transition: color 0.3s ease;
}

.post-item h3 a:hover {
    color: var(--accent-pink);
}

.post-item .post-excerpt {
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.post-item .post-date {
    font-size: 0.85rem;
    color: var(--text-light-gray);
    font-weight: 300;
}

/* Single Post Page */
.single-post {
    padding: 3rem 0 4rem;
}

.post-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.post-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-black);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.post-meta {
    font-size: 0.95rem;
    color: var(--text-light-gray);
    margin: 0;
    font-weight: 300;
}

.post-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-black);
}

/* Featured image (appears below title, above post body) */
#post-featured {
    max-width: 700px;
    margin: 1.75rem auto;
}
#post-featured .post-image-wrap {
    margin: 0;
}
#post-featured .post-image {
    width: 100%;
    height: auto; /* show full image without cropping */
    max-height: clamp(220px, 50vh, 420px); /* limit height so it doesn't force scrolling */
    object-fit: contain; /* ensure the whole image is visible */
    display: block;
    border-radius: 8px;
}

/* Gallery for multiple featured images */
.featured-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    max-width: 700px;
    margin: 1rem auto;
}
.featured-gallery .gallery-item {
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
}
.featured-gallery .gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: contain; /* show full image within box without cropping */
    display: block;
}

.post-content p {
    margin-bottom: 1.75rem;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-black);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.post-content .post-image-wrap {
    margin: 1.75rem 0;
}
.post-content .post-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.post-navigation {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

/* Page Content (About) */
.page-content {
    padding: 3rem 0 4rem;
    max-width: 700px;
    margin: 0 auto;
}

.content-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-black);
}

.content-text p {
    margin-bottom: 1.75rem;
}

.content-text h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-black);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.content-text ul {
    margin-left: 1.5rem;
    margin-bottom: 1.75rem;
    list-style: none;
}

.content-text li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-text li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-pink);
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Buttons - Minimal and Soft */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: transparent;
    color: var(--text-black);
    text-decoration: none;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 400;
}

.btn:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    background-color: rgba(245, 194, 199, 0.05);
}

/* Footer - Minimal */
footer {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 2.5rem 0;
    margin-top: 4rem;
    text-align: center;
}

footer p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    font-weight: 300;
}

.footer-contact {
    display: none; /* Removed as per requirements - no Contact page */
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .nav-list {
        gap: 1.5rem;
    }

    .site-title {
        font-size: 1.3rem;
    }

    .hero-image {
        height: clamp(200px, 38vh, 360px);
    }

    .hero {
        padding: 3rem 0 2rem;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .latest-posts,
    .blog-listing,
    .single-post,
    .page-content {
        padding: 2rem 0 3rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .post-card {
        padding: 1.5rem;
    }

    .post-header h2 {
        font-size: 1.75rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .content-text {
        font-size: 1rem;
    }

    main {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-list {
        gap: 1.25rem;
    }

    .hero-image {
        height: clamp(180px, 34vh, 300px);
    }

    .post-card {
        padding: 1.25rem;
    }

    .post-card .card-image {
        height: 140px;
    }
    /* Limit featured image height on narrow screens without cropping */
    #post-featured .post-image {
        max-height: clamp(160px, 30vh, 300px);
    }

    .post-header h2 {
        font-size: 1.5rem;
    }

    .posts-list {
        gap: 2rem;
    }

    .post-item {
        padding-bottom: 2rem;
    }
}
