/* ===================================
   CSS Variables
   =================================== */
:root {
    /* 포인트 색상 */
    --color-primary: #d4af37;
    --color-primary-dark: #b4952f;
    --color-primary-light: #e4c55a;

    /* 배경 색상 */
    --color-background: #121212;
    --color-background-alt: #1a1a1a;
    --color-section-dark: #0a0a0a;
    --color-card-bg: #1e1e1e;

    /* 텍스트 색상 */
    --color-text: #e8e8e8;
    --color-text-light: #ffffff;
    --color-text-muted: #a0a0a0;

    /* 기타 색상 */
    --color-dark: #0a0a0a;
    --color-darker: #000000;
    --color-light: #ffffff;
    --color-gray: #888888;
    --color-gray-light: #f5f5f5;
    --color-gray-dark: #333333;
    --color-border: #333333;

    /* 그라디언트 */
    --gradient-hero: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(30,30,30,0.7) 100%);
    --gradient-section: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);

    --font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Noto Serif KR', Georgia, serif;

    --header-height: 80px;
    --transition: all 0.3s ease;
}

/* ===================================
   Reset & Base
   =================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-light);
    transition: var(--transition);
}

.header.scrolled .logo {
    color: var(--color-dark);
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-light);
    position: relative;
    padding: 5px 0;
}

.header.scrolled .nav a {
    color: var(--color-dark);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-card-bg);
    transition: var(--transition);
}

.header.scrolled .mobile-menu-btn span {
    background: var(--color-dark);
}

/* ===================================
   Hero Section with Video Banner
   =================================== */
.hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-darker);
}

.hero-video-container {
    position: relative;
    width: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 비디오가 없을 때 배경 이미지 대체 */
.hero-video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-poster.jpg') center center / cover no-repeat;
    z-index: -1;
    display: none;
}

/* 비디오 위에 오버레이 효과 (선택적) */
.hero-overlay {
    display: none;
}

/* 히어로 콘텐츠 영역 (비디오 위에 오버레이) */
.hero-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--color-light);
    z-index: 10;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

/* 콘텐츠 없이 비디오만 표시할 때 */
.hero.video-only .hero-content {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    margin-bottom: 20px;
}

.hero-title-sub {
    display: block;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-title-main {
    display: block;
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-dark);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

.btn-outline {
    border: 2px solid var(--color-light);
    color: var(--color-light);
}

.btn-outline:hover {
    background: var(--color-card-bg);
    color: var(--color-dark);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-light);
    opacity: 0.7;
    animation: bounce 2s infinite;
    z-index: 15;
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--color-light);
    border-bottom: 2px solid var(--color-light);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===================================
   Section Common Styles
   =================================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light {
    color: var(--color-light);
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--color-background-alt);
}

.about-content {
    display: grid;
    gap: 60px;
}

.about-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-bottom: 15px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--color-card-bg);
    border-radius: 20px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--color-background-alt);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-item:hover .feature-image img {
    transform: scale(1.05);
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: var(--color-gray);
}

/* ===================================
   Menu Slider Section
   =================================== */
.menu {
    background: var(--color-card-bg);
}

.menu-slider {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.menu-slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.menu-slide {
    min-width: 100%;
    padding: 0 15px;
    display: flex;
    justify-content: center;
}

.menu-card {
    width: 100%;
    max-width: 350px;
    background: var(--color-card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.menu-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--color-background-alt);
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-image img {
    transform: scale(1.1);
}

.menu-card-content {
    padding: 25px;
    text-align: center;
}

.menu-card-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.menu-card-content p {
    font-size: 14px;
    color: var(--color-gray);
    margin-bottom: 15px;
}

.price {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-card-bg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--color-primary);
    color: var(--color-light);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.slider-btn.light {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-light);
}

.slider-btn.light:hover {
    background: var(--color-card-bg);
    color: var(--color-dark);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-background-alt);
    border: 2px solid var(--color-gray);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* ===================================
   Menu Gallery Section
   =================================== */
.menu-gallery {
    background: var(--color-background-alt);
}

.menu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* 동적 그리드 - 이미지 개수에 따라 크기 조절 */
.menu-grid-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--color-gray);
    cursor: pointer;
    flex: 1 1 calc(33.333% - 15px);
    max-width: calc(33.333% - 15px);
    min-width: 200px;
    aspect-ratio: 1;
}

/* 1개일 때 - 크게 */
.menu-grid[data-count="1"] .menu-grid-item {
    flex: 0 0 60%;
    max-width: 60%;
}

/* 2개일 때 - 반반 */
.menu-grid[data-count="2"] .menu-grid-item {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

/* 4개일 때 - 2x2 */
.menu-grid[data-count="4"] .menu-grid-item {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

.menu-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-grid-item:hover img {
    transform: scale(1.1);
}

.menu-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.menu-grid-item:hover .menu-grid-overlay {
    opacity: 1;
}

.menu-grid-overlay h4 {
    color: var(--color-light);
    font-size: 20px;
    font-weight: 600;
}

/* 라이트박스 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-close:hover {
    color: #ccc;
}

/* ===================================
   Interior Section
   =================================== */
.interior {
    background: var(--color-darker);
    color: var(--color-light);
}

.interior-slider {
    position: relative;
    overflow: hidden;
}

.interior-slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.interior-slide {
    min-width: 100%;
    padding: 0 10px;
}

.interior-slide img {
    width: 90%;
    height: auto;
    max-height: 540px;
    object-fit: contain;
    border-radius: 15px;
}

/* ===================================
   Event Section
   =================================== */
.event {
    background: var(--color-card-bg);
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.event-card {
    position: relative;
    padding: 40px 30px;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-darker) 100%);
    color: var(--color-light);
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.event-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 8px 16px;
    background: var(--color-primary);
    color: var(--color-dark);
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
}

.event-badge.hot {
    background: #ff4757;
    color: var(--color-light);
}

.event-badge.gold {
    background: linear-gradient(135deg, #f5af19 0%, #d4a574 100%);
    color: var(--color-dark);
}

.event-badge.coral {
    background: #ff6b6b;
    color: var(--color-light);
}

.event-badge.blue {
    background: #4a90d9;
    color: var(--color-light);
}

.event-badge.green {
    background: #2ed573;
    color: var(--color-dark);
}

.event-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.event-card p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

.event-card strong {
    color: var(--color-primary);
}

.event-card strong.gold {
    color: #f5af19;
}

.event-card strong.coral {
    color: #ff6b6b;
}

.event-card strong.blue {
    color: #4a90d9;
}

.event-card strong.green {
    color: #2ed573;
}

.event-card strong.hot {
    color: #ff4757;
}

/* ===================================
   Location Section
   =================================== */
.location {
    background: var(--color-background-alt);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.location-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    background: var(--color-gray);
    height: 400px;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--color-card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.info-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray);
    margin-bottom: 5px;
}

.info-text p {
    font-size: 16px;
    font-weight: 500;
}

.info-text p.sub {
    font-size: 13px;
    color: var(--color-gray);
    margin-top: 5px;
}

.info-text a {
    color: var(--color-primary);
}

.info-text a:hover {
    text-decoration: underline;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--color-darker);
    color: var(--color-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
}

.footer-info p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* 인스타그램 아이콘 */
.footer-social a.social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-social a.social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

/* 네이버 아이콘 */
.footer-social a.social-naver {
    background: #03C75A;
}

.footer-social a.social-naver:hover {
    background: #02a84d;
    box-shadow: 0 5px 15px rgba(3, 199, 90, 0.4);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.5;
}

/* ===================================
   Mobile Menu
   =================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-dark);
    z-index: 999;
    transition: var(--transition);
    padding: 100px 30px 30px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav a {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-light);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .location-content {
        grid-template-columns: 1fr;
    }

    .location-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .event-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title-main {
        font-size: 34px;
    }

    .hero-title-sub {
        font-size: 12px;
    }

    .hero-description {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-buttons .btn {
        padding: 10px 24px;
        font-size: 12px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .interior-slide img {
        max-height: 360px;
    }

    .location-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title-main {
        font-size: 28px;
    }

    .hero-title-sub {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .hero-description {
        font-size: 10px;
        margin-bottom: 15px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 8px;
    }

    .hero-buttons .btn {
        padding: 8px 16px;
        font-size: 11px;
        width: auto;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .menu-slider {
        padding: 0 45px;
    }
}
