/* ========================================
   낭만 삼겹살 - Premium Franchise Style
   Black & Gold & Red Color Scheme
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;900&family=Black+Han+Sans&family=Jua&display=swap');

/* ========================================
   CSS Variables - Premium Color Palette
   ======================================== */
:root {
    /* Primary Colors */
    --color-black: #000000;
    --color-gold: #D4AF37;
    --color-gold-light: #F4E4C1;
    --color-gold-dark: #B8941F;
    --color-red: #DC2626;
    --color-red-dark: #991B1B;
    --color-yellow: #FCD34D;
    
    /* Grayscale */
    --color-white: #FFFFFF;
    --color-zinc-50: #FAFAFA;
    --color-zinc-100: #F4F4F5;
    --color-zinc-800: #27272A;
    --color-zinc-900: #18181B;
    --color-zinc-950: #09090B;
    
    /* Typography - Casual & Friendly Style */
    --font-main: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-title: 'Black Han Sans', sans-serif;
    --font-subtitle: 'Jua', sans-serif;
    
    /* Spacing */
    --section-padding: 6rem 0;
    
    /* Effects */
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 10px 40px rgba(212, 175, 55, 0.3);
    --shadow-red: 0 10px 40px rgba(220, 38, 38, 0.3);
}

/* ========================================
   Global Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--color-white);
    background-color: var(--color-black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography - Casual & Friendly Style (Style A)
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Main Titles - Black Han Sans (Bold & Strong) */
h1, h2 {
    font-family: var(--font-title);
}

/* Subtitles - Jua (Friendly & Casual) */
h3, h4 {
    font-family: var(--font-subtitle);
}

/* Body text - Noto Sans KR (Clean & Readable) */
p, span, a, li {
    font-family: var(--font-main);
}

.text-gold-400 {
    color: var(--color-gold) !important;
}

.text-gold-500 {
    color: var(--color-gold-dark) !important;
}

.bg-gold-500 {
    background-color: var(--color-gold) !important;
}

/* ========================================
   Navigation Styles
   ======================================== */
#navbar {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.98) !important;
    border-bottom-color: rgba(212, 175, 55, 0.2);
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-red));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-gold) !important;
}

.premium-link {
    color: var(--color-gold) !important;
    font-weight: 600;
}

/* ========================================
   Premium Buttons
   ======================================== */
.premium-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-black);
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    border: none;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

.premium-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.premium-btn-primary:hover::before {
    left: 100%;
}

.premium-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

.premium-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    background: transparent;
    border: 2px solid var(--color-gold);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.premium-btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-black);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* ========================================
   Premium Cards
   ======================================== */
.premium-card {
    background: linear-gradient(135deg, var(--color-zinc-900) 0%, var(--color-zinc-800) 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
    border-color: rgba(212, 175, 55, 0.2);
}

/* ========================================
   Menu Cards
   ======================================== */
.premium-menu-card {
    background: var(--color-zinc-900);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.premium-menu-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
    border-color: rgba(212, 175, 55, 0.3);
}

.premium-menu-card img {
    transition: transform 0.7s ease;
}

.premium-menu-card:hover img {
    transform: scale(1.1);
}

/* ========================================
   Store Cards
   ======================================== */
.premium-store-card {
    background: var(--color-zinc-900);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.premium-store-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    border-color: rgba(212, 175, 55, 0.3);
}

/* ========================================
   Side Menu Items
   ======================================== */
.side-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    border-left: 3px solid var(--color-gold);
    transition: all 0.3s ease;
}

.side-menu-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(5px);
    border-left-width: 5px;
}

/* ========================================
   Gallery
   ======================================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

.gallery-item:hover {
    box-shadow: var(--shadow-gold);
}

/* ========================================
   Form Styles - Premium
   ======================================== */
.premium-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: var(--color-white);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.premium-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.premium-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Alert Messages
   ======================================== */
.alert {
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: slideDown 0.4s ease-out;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Scroll to Top Button
   ======================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-black);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.5);
}

/* ========================================
   Loading Animation
   ======================================== */
.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Section Animations
   ======================================== */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Large Desktop */
@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
    }
}

/* Desktop */
@media (min-width: 1280px) {
    html {
        font-size: 18px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 4rem 0;
    }
    
    html {
        font-size: 16px;
    }
    
    .premium-card {
        padding: 2rem;
    }
    
    .gallery-item img {
        height: 300px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    html {
        font-size: 15px;
    }
    
    .premium-btn-primary,
    .premium-btn-secondary {
        width: 100%;
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .premium-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .premium-menu-card,
    .premium-store-card {
        border-radius: 1rem;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .scroll-top-btn {
        width: 3rem;
        height: 3rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .premium-card {
        padding: 1.25rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.no-scroll {
    overflow: hidden;
}

.text-shadow-premium {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.backdrop-blur-premium {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ========================================
   Premium Gradient Backgrounds
   ======================================== */
.gradient-gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
}

.gradient-gold-red {
    background: linear-gradient(135deg, var(--color-gold), var(--color-red));
}

.gradient-black-gold {
    background: linear-gradient(135deg, var(--color-black), var(--color-gold-dark));
}

/* ========================================
   Accessibility
   ======================================== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-gold: #FFD700;
        --color-red: #FF0000;
    }
    
    .premium-card {
        border-width: 2px;
        border-color: var(--color-gold);
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    nav,
    footer,
    .scroll-top-btn,
    #tasting,
    #franchise {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .premium-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ========================================
   Custom Scrollbar (WebKit)
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-zinc-950);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-gold), var(--color-gold-dark));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* ========================================
   Selection Highlight
   ======================================== */
::selection {
    background: var(--color-gold);
    color: var(--color-black);
}

::-moz-selection {
    background: var(--color-gold);
    color: var(--color-black);
}
