@charset "UTF-8";

/* ================= 1. 기본 설정 (Base) ================= */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --accent-color: #111111;
    --sidebar-width: 260px;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.55;
    word-break: keep-all;
}

/* 타이포그래피 */
h1, h2, h3, h4, .serif-font, .menu-header {
    font-family: 'Playfair Display', serif;
    color: var(--accent-color);
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
p { margin: 0 0 10px 0; }

/* ================= 2. 레이아웃 (Layout) ================= */
.main-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
}

/* --- 사이드바 --- */
.sidebar {
    background-color: var(--bg-color);
    padding: 40px 30px;
    height: 100vh;
    position: sticky;
    top: 0;
    border-right: 1px solid #eee;
    box-sizing: border-box;
    overflow-y: auto;
}

.brand-title {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.menu-item { margin-bottom: 1.2rem; }
.menu-header { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.8rem; display: block; }

.menu-link-bold {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}
.menu-link-bold:hover, .menu-link-bold.active { 
    color: #888; 
    text-decoration: underline; 
    text-underline-offset: 4px; 
}

.sub-menu { padding-left: 15px; margin-bottom: 1.5rem; }
.sub-menu li { margin-bottom: 0.5rem; }

.menu-link {
    font-size: 0.95rem;
    display: block;
    color: #555;
    cursor: pointer;
}
.menu-link:hover, .menu-link.active-filter { 
    color: var(--accent-color); 
    padding-left: 5px; 
    font-weight: 600; 
}

/* --- 콘텐츠 영역 공통 --- */
.content-area {
    padding: 60px 80px;
    max-width: 1400px;
}

.page-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.page-title { font-size: 2rem; font-weight: 400; margin: 0; }


/* ================= 3. 페이지별 스타일 ================= */

/* --- [Index] 메인 페이지 --- */
.club-cta-section {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cta-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}
.cta-btn:hover { background-color: #444; }

.slideshow-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    margin-bottom: 50px;
    overflow: hidden;
    background-color: #f0f0f0;
}
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.exhibition-section h3 {
    font-size: 1.4rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.ex-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
    line-height: 1.3;
}
.ex-date, .ex-location {
    font-size: 1rem;
    color: #555;
    margin-bottom: 5px;
}


/* --- [Artwork] 갤러리 --- */
.item-count { font-size: 0.9rem; color: #888; }
.gallery-grid { column-count: 3; column-gap: 40px; }
.art-item { break-inside: avoid; margin-bottom: 40px; display: inline-block; width: 100%; transition: opacity 0.4s; }
.art-item.hidden { display: none; }
.art-img-box { width: 100%; margin-bottom: 15px; overflow: hidden; background: #f5f5f5; }
.art-img-box img { width: 100%; height: auto; display: block; transition: transform 0.5s; }
.art-img-box:hover img { transform: scale(1.03); }
.art-title { font-size: 1rem; font-weight: 600; display: block; margin-bottom: 4px; }
.art-meta { font-size: 0.85rem; color: #777; }


/* --- [Exhibitions] 전시 --- */
.tab-container { display: flex; gap: 25px; }
.tab-btn {
    background: none; border: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; color: #999;
    cursor: pointer; padding: 5px 0;
    position: relative; transition: color 0.3s;
}
.tab-btn.active { color: var(--accent-color); font-weight: 600; }
.tab-btn.active::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 100%; height: 1px; background-color: var(--accent-color);
}
.exhibition-content { display: none; opacity: 0; transition: opacity 0.5s ease; }
.exhibition-content.active { display: block; opacity: 1; }

.solo-item { margin-bottom: 60px; padding-bottom: 40px; border-bottom: 1px solid #f0f0f0; }
.solo-item:last-child { border-bottom: none; }
.solo-caption { margin-bottom: 20px; }
.ex-year { font-size: 1.6rem; font-weight: 700; color: #ccc; margin-bottom: 5px; display: block; font-family: 'Playfair Display', serif;}
.ex-title-en { font-size: 1.3rem; font-weight: 500; display: block; margin-bottom: 5px; color: #111; }
.ex-location { font-size: 0.9rem; color: #666; font-style: normal; display: block; }
.ex-support { font-size: 0.85rem; color: #888; font-style: italic; margin-top: 3px; display: block; }

.solo-gallery { column-count: 3; column-gap: 15px; margin-bottom: 15px; }
.ex-media-item { width: 100%; margin-bottom: 15px; break-inside: avoid; display: block; }
.video-container { position: relative; height: 0; background: #000; overflow: hidden; margin-bottom: 15px; break-inside: avoid; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.solo-note { font-size: 0.85rem; color: #555; line-height: 1.5; text-align: justify; white-space: pre-wrap; }
.note-label { font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; display: block; }
.note-kr { margin-bottom: 20px; display: block; color: #333; }
.note-en { color: #777; font-size: 0.9em; display: block; }

.pinterest-grid { column-count: 4; column-gap: 20px; }
.pinterest-item { display: inline-block; width: 100%; margin-bottom: 20px; break-inside: avoid; }
.pinterest-item img { width: 100%; height: auto; display: block; transition: transform 0.4s; }
.pinterest-item:hover img { transform: scale(1.03); filter: brightness(0.95); }


/* --- [Statement] 작가 노트 --- */
.main-title-kr { font-size: 1.5rem; font-weight: 600; display: block; margin-bottom: 8px; color: #111; }
.main-title-en { font-size: 1.1rem; color: #666; display: block; font-family: 'Playfair Display', serif; font-style: italic; }

.quotes-grid { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; 
    margin-bottom: 60px; background-color: #f9f9f9; padding: 40px; border-radius: 4px; 
}
.quote-box { font-family: 'Playfair Display', serif; font-size: 1.05rem; line-height: 1.7; font-style: italic; color: #444; }

.text-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.text-content { font-size: 0.95rem; line-height: 1.8; color: #333; text-align: justify; white-space: pre-wrap; }


/* --- [Profile] 소개 --- */
.profile-header { margin-bottom: 80px; border-bottom: 1px solid #eee; padding-bottom: 60px; }
.artist-photo { width: 100%; max-width: 350px; margin-bottom: 30px; display: block; }
.photo-credit { font-size: 0.8rem; color: #999; margin-top: -20px; display: block; margin-bottom: 30px; }
.bio-name { font-size: 1.8rem; font-weight: 600; margin-bottom: 15px; display: block; }
.cv-category { font-size: 1.3rem; font-weight: 600; margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid #111; display: inline-block; }
.cv-item { display: flex; margin-bottom: 20px; font-size: 0.95rem; }
.cv-year { font-weight: 600; min-width: 60px; }
.cv-kr { display: block; color: #333; margin-bottom: 2px; }
.cv-en { display: block; color: #777; font-size: 0.9rem; font-style: italic; }


/* --- [Shop] --- */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.product-card { margin-bottom: 30px; }
.product-img-box { width: 100%; aspect-ratio: 1/1; background: #f5f5f5; margin-bottom: 15px; overflow: hidden; }
.product-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-img-box:hover img { transform: scale(1.05); }
.product-title { font-size: 1.1rem; font-weight: 600; display: block; margin-bottom: 5px; }
.product-price { display: block; color: #555; margin-bottom: 10px; font-size: 0.95rem; }
.buy-btn { background: #111; color: #fff; border: none; padding: 10px 20px; width: 100%; cursor: pointer; transition: background 0.3s; }
.buy-btn:hover { background: #444; }


/* --- [Contact] --- */
.contact-section { margin-bottom: 50px; }
.section-label { font-size: 1.2rem; font-weight: 600; margin-bottom: 20px; display: block; border-bottom: 1px solid #eee; padding-bottom: 10px; width: 100px; }
.contact-item { display: flex; align-items: center; margin-bottom: 15px; }
.icon-box { width: 30px; text-align: center; margin-right: 15px; font-size: 1.1rem; }
.contact-link:hover { text-decoration: underline; color: var(--accent-color); }


/* --- [Member / Auth] (Login, Signup, MyPage) --- */
.form-section { margin-bottom: 50px; display: none; }
.form-section.active { display: block; }

.signup-container { max-width: 600px; margin: 80px auto; padding: 0 20px; }
.form-header { text-align: center; margin-bottom: 40px; }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.95rem; }
.input-group input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }

.btn-black { background: var(--accent-color); color: #fff; padding: 15px 30px; border: none; border-radius: 4px; width: 100%; cursor: pointer; font-size: 1rem; }
.btn-black:hover { background-color: #333; }
.btn-outline { background: transparent; border: 1px solid #ddd; color: #555; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-size: 0.9rem; }
.btn-outline:hover { background-color: #f5f5f5; border-color: #bbb; }

.delete-account-btn { background: none; border: none; color: #999; text-decoration: underline; cursor: pointer; font-size: 0.85rem; }
.delete-account-btn:hover { color: #d9534f; }

.en-text { font-size: 0.85em; color: #888; font-weight: normal; margin-left: 4px; }
.subtitle-en { font-size: 0.9em; color: #888; margin-top: 5px; display: block; font-weight: normal; }
.benefit-check { background: #f9f9f9; padding: 20px; border-radius: 8px; margin: 30px 0; }

/* 주소창 보이기/숨기기 애니메이션 */
.address-hidden { display: none; }
.address-visible { display: block !important; animation: fadeIn 0.5s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.section-divider { height: 1px; background-color: #eee; margin: 40px 0; }
.order-history-placeholder { background: #f9f9f9; padding: 40px; text-align: center; border-radius: 8px; color: #666; }


/* ================= 4. 반응형 (Responsive) ================= */

/* 태블릿 (1200px 이하) */
@media (max-width: 1200px) {
    .gallery-grid { column-count: 2; }
}

/* 태블릿 세로 (1024px 이하) */
@media (max-width: 1024px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    .solo-gallery { column-count: 2; }
    .pinterest-grid { column-count: 3; }
    .content-area { padding: 40px 30px; }
    .quotes-grid { grid-template-columns: 1fr; gap: 30px; padding: 30px; }
    .text-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* 모바일 (768px 이하) - 햄버거 메뉴 포함 */
@media (max-width: 768px) {
    /* 1. 레이아웃: 사이드바 숨김 + 버튼 공간 확보 */
    .main-container {
        display: block; /* grid 대신 block으로 변경하여 겹침 허용 */
        position: relative;
    }

    /* 2. 사이드바(메뉴): 숨겨져 있다가 나오도록 설정 */
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px; /* 너비만큼 숨김 */
        width: 260px;
        height: 100vh;
        z-index: 1000;
        padding: 20px;
        border-right: none;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
    }

    /* 클래스 active가 붙으면 보임 */
    .sidebar.active {
        left: 0;
    }

    /* 3. 콘텐츠 영역: 위쪽 여백 추가 */
    .content-area {
        width: 100%;
        padding: 70px 20px 40px 20px; /* 상단 70px 여백 (버튼 공간) */
        box-sizing: border-box;
    }
    
    /* 4. 기타 모바일 스타일 조정 */
    .club-cta-section { flex-direction: column; text-align: center; gap: 20px; }
    .gallery-grid, .solo-gallery { column-count: 1; }
    .shop-grid { grid-template-columns: 1fr; }
    .pinterest-grid { column-count: 2; column-gap: 15px; }
    .artist-photo { max-width: 100%; }
    
    .page-header { display: block; }
    .page-header > div, .page-header > button { margin-bottom: 10px; width: 100%; }

    /* 5. 햄버거 버튼 스타일 (모바일 전용) */
    .mobile-menu-btn {
        display: block !important;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background-color: rgba(255, 255, 255, 0.9);
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 8px 12px;
        font-size: 1.4rem;
        color: #333;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    /* 오버레이 (배경 어둡게) */
    .overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
    }
    .overlay.active { display: block; }
}

/* 아주 작은 화면 (480px 이하) */
@media (max-width: 480px) {
    .pinterest-grid { column-count: 1; }
    .tab-container { gap: 15px; }
    .tab-btn { font-size: 1rem; }
}

/* PC 화면에서는 햄버거 버튼 숨김 */
@media (min-width: 769px) {
    .mobile-menu-btn { display: none !important; }
    .overlay { display: none !important; }
}