/* =====================================================
   Menu Guide Korea - v2 Warm Korean Design
   Extends style-improved.css with warm palette + hero
   ===================================================== */

/* ==== WARM COLOR SYSTEM OVERRIDE ==== */
:root {
    /* Gochujang Terracotta (replaces bright red) */
    --color-primary: #C0392B;
    --color-primary-light: #E74C3C;
    --color-primary-dark: #96281B;
    --color-primary-alpha: rgba(192, 57, 43, 0.1);

    /* Saddle Brown (replaces amber secondary) */
    --color-secondary: #8B4513;
    --color-secondary-light: #B0612A;
    --color-secondary-dark: #6B3410;

    /* Golden Amber (replaces green accent) */
    --color-accent: #D4A017;
    --color-accent-light: #F4C842;

    /* Warm Cream backgrounds */
    --color-bg: #FDF8F5;
    --color-bg-secondary: #F8F0EB;
    --color-bg-tertiary: #F2E8DF;

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 32px rgba(192, 57, 43, 0.15);
}

/* ==== GOOGLE FONTS - Plus Jakarta Sans via HTML head ==== */
body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

/* ==== MATERIAL SYMBOLS SETUP ==== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    user-select: none;
    vertical-align: middle;
}

.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ==== HEADER / LOGO UPGRADE ==== */
.header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(192, 57, 43, 0.08) !important;
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 20px !important;
    /* 기존 margin-bottom: 48px 제거 */
    margin-bottom: 0 !important;
    /* container 패딩 밖으로 확장 */
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
}

.logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #2C1810 !important;
    text-decoration: none;
    line-height: 1;
}

.logo-icon-wrap {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon-wrap .material-symbols-outlined {
    font-size: 20px;
    color: white;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* ==== HERO SECTION ==== */
.hero-wrapper {
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    background: #2C1810;
    margin-bottom: 0;
    /* container 패딩 밖으로 확장 */
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1498654896293-37aacf113fd9?w=1400&q=80');
    background-size: cover;
    background-position: center 45%;
    filter: blur(2px) brightness(0.8) saturate(1.1);
    transform: scale(1.08);
    transition: transform 10s ease;
}

/* Fallback gradient if image fails to load */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #8B4513 0%, #C0392B 40%, #D4A017 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-bg.img-error::after {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(44, 24, 16, 0.3) 0%,
        rgba(44, 24, 16, 0.5) 50%,
        rgba(44, 24, 16, 0.72) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px 44px;
    color: white;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(212, 160, 23, 0.2);
    border: 1px solid rgba(212, 160, 23, 0.45);
    color: #F4C842;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 14px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.025em;
    color: white;
}

@media (max-width: 400px) {
    .hero-title { font-size: 2rem; }
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 auto 28px;
    max-width: 360px;
    line-height: 1.65;
}

.hero-lang-strip {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-lang-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    padding: 5px 13px;
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ==== SECTION TITLES ==== */
.section-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.section-title-icon {
    font-size: 22px;
    color: var(--color-primary);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    flex-shrink: 0;
}

/* ==== FEATURE CARDS UPGRADE ==== */
.feature-card {
    background: white !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-card) !important;
    border: 1px solid rgba(192, 57, 43, 0.06) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}

.feature-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-card-hover) !important;
}

/* Hide old emoji icon div */
.feature-icon {
    display: none !important;
}

/* New icon wrapper */
.feature-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--color-primary-alpha);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: background 0.22s ease;
}

.feature-card:hover .feature-icon-wrap {
    background: rgba(192, 57, 43, 0.16);
}

.feature-icon-wrap .material-symbols-outlined {
    font-size: 28px;
    color: var(--color-primary);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ==== HOW IT WORKS - STEP NUMBERS ==== */
.step-number {
    background: var(--color-accent) !important;
    color: white !important;
    font-weight: 800 !important;
}

/* ==== SEARCH BUTTON ==== */
.search-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
}

.search-btn .material-symbols-outlined {
    font-size: 22px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ==== PHOTO BUTTON ==== */
.photo-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.photo-btn .material-symbols-outlined {
    font-size: 20px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ==== LANGUAGE SELECTOR ==== */
.lang-btn.active {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
}

.lang-btn:hover:not(.active) {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}

/* ==== DISH TAGS ==== */
.dish-tag {
    border: 1px solid var(--color-border) !important;
    transition: all 0.18s ease !important;
}

.dish-tag:hover {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(192, 57, 43, 0.25) !important;
}

/* ==== STATS / ABOUT SECTION ==== */
.stat-box {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(192, 57, 43, 0.06) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.stat-box:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.12) !important;
}

.stat-value {
    color: var(--color-primary) !important;
    font-weight: 800 !important;
}

.stat-label {
    color: #5C3D2E !important; /* dark brown — readable on white card bg */
}

/* ==== DB DASHBOARD STATS ==== */
.db-stat-value {
    color: var(--color-primary) !important;
}

/* ==== BACK BUTTON ==== */
.back-btn {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.back-btn .material-symbols-outlined {
    font-size: 18px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ==== FAQ SECTION ==== */
.faq-question {
    color: var(--color-text) !important;
    font-weight: 600 !important;
}

/* ==== DISCLAIMER FOOTER ==== */
.app-disclaimer {
    background: var(--color-bg-secondary) !important;
    border-top: 1px solid rgba(192, 57, 43, 0.1) !important;
}

/* ==== LAYOUT CORRECTIONS (sticky header + hero 구조 보정) ==== */

/* 히어로가 tagline을 대체함 — sticky nav에서 tagline 제거 */
.tagline {
    display: none;
}

/* landing-section 상단 여백 제거 (sticky 헤더가 맨 위에 위치해야 함) */
.landing-section {
    padding-top: 0;
}

/* 히어로와 검색창 사이 여백 */
.search-box {
    margin-top: var(--space-8);
}

/* container padding 밖 확장: 640px ~ 1023px */
@media (min-width: 640px) {
    .header,
    .hero-wrapper {
        margin-left: calc(-1 * var(--space-6));
        margin-right: calc(-1 * var(--space-6));
    }
}

/* container padding 밖 확장: 1024px+ */
@media (min-width: 1024px) {
    .header,
    .hero-wrapper {
        margin-left: calc(-1 * var(--space-8));
        margin-right: calc(-1 * var(--space-8));
    }
}
