/* ==========================================================================
   Rustic Lao Eats - Complete Global Editorial Stylesheet
   ========================================================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fbf9f6; /* Soft cream/linen canvas background */
    color: #2c2520;            /* Rich dark charcoal text */
    line-height: 1.65;
    padding-bottom: 60px;
}

.container {
    max-width: 720px; /* Slightly wider layout for better horizontal grid flow */
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================================================
   Hero Header Section
   ========================================================================== */

header.hero {
    text-align: center;
    padding: 70px 20px 50px 20px;
    background: linear-gradient(to bottom, #f3ede2, #fbf9f6);
}

header.hero h1 {
    font-size: 2.8rem;
    color: #2b3d2f; /* Deep, luxurious Lao Forest Green */
    font-weight: 800;
    letter-spacing: -0.03em;
}

.tagline {
    font-size: 1.15rem;
    color: #615249;
    margin-top: 10px;
    font-style: italic;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: #bc6c25; /* Warm terracotta clay accent */
    text-decoration: none;
    margin: 0 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.2s ease;
}

.social-links a:hover {
    border-bottom-color: #bc6c25;
}

/* ==========================================================================
   Idea 1 & 4: Main Landing Component Row (Editorial Pillars)
   ========================================================================== */

.pillar-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.pillar-card {
    border-radius: 12px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

/* Idea 1: Distinct Dual-Tone Brand Colors for the Pillars */
.pillar-card.articles-pillar {
    background-color: #f7f0eb; /* Muted terracotta clay canvas tint */
    border: 1px solid #ebdcd3;
    border-top: 5px solid #bc6c25; /* Thick geometric top accent line */
}

.pillar-card.recipes-pillar {
    background-color: #f0f4f1; /* Cool herb garden green canvas tint */
    border: 1px solid #dee7e1;
    border-top: 5px solid #3b5340; /* Thick geometric top accent line */
}

/* Idea 4: Cinematic Lift and Shadow on Hover */
.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(44, 37, 32, 0.08);
}

.pillar-card h2 {
    font-size: 1.6rem;
    margin: 0 0 12px 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pillar-card.articles-pillar h2 { color: #8a4f1b; }
.pillar-card.recipes-pillar h2 { color: #2b3d2f; }

.pillar-card p {
    font-size: 0.98rem;
    color: #4a3e36;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* ==========================================================================
   Idea 2: Elegant Text Layouts & Drop Caps (Print Media Look)
   ========================================================================== */

/* Styling for standalone article or post content cards */
.editorial-post p:first-of-type::first-letter {
    font-size: 3.2rem;
    font-weight: 800;
    float: left;
    line-height: 1;
    margin-right: 8px;
    margin-top: 4px;
    color: #bc6c25; /* Drop cap pulls brand color */
    font-family: Georgia, serif;
}

/* ==========================================================================
   Idea 3: Geometric Accent Boxes & Recipe Metadata Badges
   ========================================================================== */

.card {
    background: #ffffff;
    border: 1px solid #e8e2d9;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 3px 6px rgba(44, 37, 32, 0.01);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 37, 32, 0.04);
}

/* Recipe Badge Row Layout Container */
.badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

/* Individual Metadata Capsules */
.badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.badge.time {
    background-color: #eef2ef;
    color: #2b3d2f;
}

.badge.level {
    background-color: #f4eae1;
    color: #8a4f1b;
}

/* ==========================================================================
   Buttons and Form Elements
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 11px 22px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

/* Primary Green Buttons (Recipes Engine) */
.btn-green {
    background-color: #3b5340;
    color: #ffffff !important;
}

.btn-green:hover { background-color: #2b3d2f; }

/* Warm Terracotta Buttons (Articles Engine) */
.btn-orange {
    background-color: #bc6c25;
    color: #ffffff !important;
}

.btn-orange:hover { background-color: #9d561b; }

.btn:active { transform: scale(0.98); }

/* ==========================================================================
   Kitchen Essentials List Layout
   ========================================================================== */

h2.section-title {
    font-size: 1.5rem;
    margin: 50px 0 20px 0;
    color: #2b3d2f;
    border-bottom: 1px solid #e8e2d9;
    padding-bottom: 10px;
}

.essentials {
    background-color: #ffffff;
    border: 1px solid #e8e2d9;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.gear-list { list-style: none; }
.gear-list li { margin-bottom: 14px; border-bottom: 1px dashed #f0eae1; padding-bottom: 12px; }
.gear-list li:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.gear-list a {
    color: #2c2520;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.gear-list a:hover { color: #bc6c25; }

footer {
    text-align: center;
    margin-top: 80px;
    font-size: 0.88rem;
    color: #8c7b70;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 600px) {
    header.hero { padding: 50px 15px 30px 15px; }
    header.hero h1 { font-size: 2.2rem; }
    .pillar-row { grid-template-columns: 1fr; gap: 16px; }
    .pillar-card { padding: 25px 20px; }
}

/* --- Photo Gallery Grid Ecosystem --- */
.gallery-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    aspect-ratio: 1 / 1; /* Forces perfectly square thumbnail tiles */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents raw image distortion */
    transition: transform 0.4s ease;
}

/* Elegant Text Overlay Reveal on Mouse Hover */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dimming dark backdrop */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
    text-align: center;
}

.gallery-overlay h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

/* Interactive States */
.gallery-item:hover img {
    transform: scale(1.05); /* Soft premium zoom effect */
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0);
}
