/* ============================================================
   DESIGN SYSTEM — 땡피싱 v2
   ============================================================ */
:root {
    /* ── Brand ── */
    --brand-primary: #2563eb;
    --brand-primary-hover: #1d4ed8;
    --brand-primary-light: #dbeafe;
    --brand-primary-50: #eff6ff;
    --brand-secondary: #0ea5e9;
    --brand-accent: #f59e0b;
    --brand-accent-light: #fef3c7;

    /* ── Neutrals ── */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* ── Semantic ── */
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #06b6d4;
    --info-light: #cffafe;

    /* ── Typography ── */
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;

    /* ── Spacing ── */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;

    /* ── Radius ── */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* ── Shadow ── */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);

    /* ── Layout ── */
    --header-height: 64px;
    --container-max: 1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html { overflow-x: clip; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

body.drawer-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    touch-action: none;
}

/* ============================================================
   MOBILE USER BADGE
   ============================================================ */
.mobile-user-badge {
    display: none;
    align-items: center;
    gap: var(--space-2);
    margin-left: auto;
    padding: var(--space-1) var(--space-3) var(--space-1) var(--space-1);
    border-radius: var(--radius-full);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: background 0.15s;
    flex-shrink: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-decoration: none;
}

.mobile-user-badge:hover { background: var(--gray-100); }

.mobile-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 11px;
}

.mobile-user-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-user-name {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--gray-700);
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    height: var(--header-height);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 800;
    font-size: var(--text-xl);
    color: var(--brand-primary);
    white-space: nowrap;
}

.header-logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
}

.header-logo-img.is-hidden { display: none; }

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex: 1;
}

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-md);
    transition: all 0.15s;
    cursor: pointer;
}

.nav-link:hover,
.nav-item.active > .nav-link {
    color: var(--brand-primary);
    background: var(--brand-primary-50);
}

.nav-link .bi-chevron-down {
    font-size: 10px;
    transition: transform 0.2s;
}

.nav-item:hover .nav-link .bi-chevron-down { transform: rotate(180deg); }

.nav-dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 200;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    color: var(--gray-600);
    border-radius: var(--radius-md);
    transition: all 0.15s;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
    color: var(--brand-primary);
    background: var(--brand-primary-50);
}

.nav-dropdown a i {
    font-size: var(--text-base);
    width: 20px;
    text-align: center;
    color: var(--gray-400);
}

.nav-dropdown a:hover i,
.nav-dropdown a.active i { color: var(--brand-primary); }

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    width: 220px;
    transition: all 0.2s;
    border: none;
}

.header-search:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px var(--brand-primary);
    width: 280px;
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: var(--text-sm);
    width: 100%;
    color: var(--gray-800);
}

.header-search i {
    color: var(--gray-400);
    margin-right: var(--space-2);
}

.header-profile {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3) var(--space-1) var(--space-1);
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.header-profile:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: var(--text-sm);
}

.header-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.header-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-user-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-800);
}

.header-user-level {
    font-size: var(--text-xs);
    color: var(--brand-primary);
    font-weight: 500;
}

.level-admin-text { color: var(--brand-primary); }

/* ── 프로필 드롭다운 ── */
.profile-dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 200;
}

.profile-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    color: var(--gray-600);
    border-radius: var(--radius-md);
    transition: all 0.15s;
}

.profile-dropdown-item:hover {
    color: var(--brand-primary);
    background: var(--brand-primary-50);
}

.profile-dropdown-divider {
    height: 1px;
    background: var(--gray-100);
    margin: var(--space-1) 0;
}

.btn-login-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    background: var(--brand-primary);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-login-header:hover {
    background: var(--brand-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ── PC: 알림 아이콘 + 드롭다운 ── */
.header-noti {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
    color: var(--gray-600);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: color 0.15s, background 0.15s;
}

.header-noti:hover {
    color: var(--brand-primary);
    background: var(--gray-50);
}

.noti-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 420px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    overflow: hidden;
}

.noti-dropdown.is-open { display: flex; flex-direction: column; }

.noti-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--gray-100);
}

.noti-dropdown-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--gray-900);
}

.noti-dropdown-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.noti-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-10) var(--space-5);
    color: var(--gray-400);
}

.noti-empty i { font-size: 2rem; }
.noti-empty p { font-size: var(--text-sm); margin: 0; }

/* ============================================================
   BOARD NAVIGATION (소식 탭)
   ============================================================ */
.board-nav-bar {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
}

.board-nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.board-nav-inner::-webkit-scrollbar { display: none; }

.board-nav-item {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    text-decoration: none;
}

.board-nav-item:hover { color: var(--gray-700); }

.board-nav-item.active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
    font-weight: 600;
}

/* ============================================================
   EVENT LAYOUT
   ============================================================ */
.event-layout {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-6);
    flex: 1;
    width: 100%;
}

/* ── 게시판 헤더 ── */
.event-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
}

.event-info h1 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.event-info h1 i { color: var(--brand-primary); }

.event-info p {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-top: var(--space-1);
}

/* ── 버튼 ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-primary {
    background: var(--brand-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-primary-hover);
    color: #fff;
}

/* ── 검색/정렬 ── */
.event-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    gap: var(--space-4);
}

.event-sort {
    display: flex;
    gap: var(--space-1);
    background: var(--gray-100);
    padding: var(--space-1);
    border-radius: var(--radius-md);
}

.sort-btn {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-500);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    background: transparent;
    text-decoration: none;
}

.sort-btn.active {
    background: #fff;
    color: var(--gray-900);
    box-shadow: var(--shadow-xs);
    font-weight: 600;
}

.event-search {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 360px;
}

.event-search:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-light);
}

.event-search-type {
    padding: var(--space-2) var(--space-3);
    border: none;
    background: var(--gray-50);
    color: var(--gray-700);
    font-size: var(--text-xs);
    cursor: pointer;
    border-right: 1px solid var(--gray-200);
    min-width: 80px;
    outline: none;
    font-family: inherit;
}

.event-search-type:focus { background: var(--gray-100); }

.event-search input {
    border: none;
    outline: none;
    font-size: var(--text-sm);
    width: 100%;
    color: var(--gray-800);
    background: transparent;
    font-family: inherit;
    padding: var(--space-2) var(--space-3);
}

.event-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-base);
}

.event-search-btn:hover { color: var(--brand-primary); }

/* ============================================================
   STATUS FILTERS
   ============================================================ */
.status-filters {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.status-filter {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-500);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    transition: all 0.15s;
    text-decoration: none;
}

.status-filter:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.status-filter.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

.filter-count {
    font-size: var(--text-xs);
    opacity: 0.8;
}

/* ============================================================
   EVENT CARD GRID (데스크탑)
   ============================================================ */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
}

.event-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.event-card:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ── 썸네일 ── */
.event-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: var(--gray-100);
    overflow: hidden;
}

.event-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    color: var(--gray-400);
}

.event-thumb-placeholder i { font-size: var(--text-2xl); }
.event-thumb-placeholder span { font-size: var(--text-sm); }

/* ── 배지 ── */
.event-badges {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    right: var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.status-badge {
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.status-badge.active {
    background: var(--success);
    color: #fff;
}

.status-badge.ended {
    background: var(--gray-400);
    color: #fff;
}

.media-badges {
    display: flex;
    gap: var(--space-1);
}

.media-badge {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: var(--text-sm);
}

/* ── 카드 본문 ── */
.event-card-body {
    padding: var(--space-4);
}

.event-card-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-title a {
    color: inherit;
    transition: color 0.15s;
}

.event-card:hover .event-card-title a { color: var(--brand-primary); }

.event-card-author {
    font-size: var(--text-xs);
    color: var(--gray-800);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.event-author-avatar-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.event-author-avatar-initial {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 600;
}

.event-card-author .admin-badge,
.event-mobile-author .admin-badge {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: var(--warning);
    padding: 1px 6px;
    border-radius: var(--radius-full);
}

.event-card-date {
    color: var(--gray-400);
    font-weight: 400;
    margin-left: auto;
}

.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--gray-400);
}

.event-card-stats {
    display: flex;
    gap: var(--space-3);
}

.event-card-stats span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.event-card-period {
    font-size: var(--text-xs);
    color: var(--gray-500);
    font-weight: 500;
}

/* ============================================================
   EVENT MOBILE LIST (모바일)
   ============================================================ */
.event-mobile-list { display: none; }

.event-mobile-card {
    display: flex;
    gap: var(--space-3);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    transition: all 0.15s;
    text-decoration: none;
    color: inherit;
}

.event-mobile-card:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
}

.event-mobile-thumb {
    width: 100px;
    height: 75px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}

.event-mobile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-mobile-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: var(--text-xl);
}

.event-mobile-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-mobile-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.event-mobile-header h3 {
    flex: 1;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-status {
    padding: 1px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.mobile-status.active { background: var(--success-light); color: var(--success); }
.mobile-status.ended { background: var(--gray-100); color: var(--gray-500); }

.event-mobile-meta {
    font-size: var(--text-xs);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.event-mobile-author {
    color: var(--gray-800);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.event-mobile-footer {
    font-size: var(--text-xs);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    font-size: var(--text-2xl);
    color: var(--gray-400);
}

.empty-state h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.empty-state p {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-wrap {
    display: flex;
    justify-content: center;
    padding: var(--space-8) 0;
    gap: var(--space-1);
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.page-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.page-btn.active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.page-btn.disabled { opacity: 0.4; cursor: default; pointer-events: none; }

/* ── FAB 글쓰기 버튼 ── */
.fab-write {
    display: none;
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-5);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    font-size: var(--text-xl);
    align-items: center;
    justify-content: center;
    z-index: 199;
    transition: all 0.2s;
    text-decoration: none;
}

.fab-write:hover {
    background: var(--brand-primary-hover);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--gray-800);
    color: var(--gray-400);
    padding: var(--space-6) 0;
    margin-top: auto;
    font-size: var(--text-xs);
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-700);
    gap: var(--space-6);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.footer-phone {
    font-size: var(--text-sm);
    font-weight: 700;
    color: #fff;
}

.footer-hours {
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-1) var(--space-4);
}

.footer-nav a {
    font-size: var(--text-xs);
    color: var(--gray-400);
    transition: color 0.15s;
    white-space: nowrap;
}

.footer-nav a:hover { color: #fff; }

.footer-social {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.footer-social a {
    display: flex;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.footer-social a:hover { opacity: 1; }

.footer-social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.footer-bottom { padding-top: var(--space-4); }

.footer-business-info {
    line-height: 1.8;
    margin-bottom: var(--space-1);
}

.footer-biz-link { color: var(--brand-primary-light); }
.footer-biz-link:hover { color: #fff; }

.footer-copyright { color: var(--gray-500); }

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.hamburger-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: var(--radius-md);
    transition: background 0.15s;
}

.hamburger-btn:hover { background: var(--gray-100); }

.hamburger-btn .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s;
    position: relative;
}

.hamburger-btn .bar::before,
.hamburger-btn .bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger-btn .bar::before { top: -6px; }
.hamburger-btn .bar::after { top: 6px; }

.hamburger-btn.is-active .bar { background: transparent; }
.hamburger-btn.is-active .bar::before { top: 0; transform: rotate(45deg); }
.hamburger-btn.is-active .bar::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   MOBILE: SIDE DRAWER
   ============================================================ */
.mobile-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    z-index: 301;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.mobile-drawer.is-open { transform: translateX(0); }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5);
    border-bottom: 1px solid var(--gray-200);
}

.drawer-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.drawer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-weight: 700;
    font-size: var(--text-sm);
}

.drawer-user-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-800);
}

.drawer-user-level {
    font-size: var(--text-xs);
    color: var(--brand-primary);
    font-weight: 500;
}

.drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    color: var(--gray-500);
    font-size: var(--text-lg);
}

.drawer-close:hover { background: var(--gray-100); }

.drawer-nav { flex: 1; padding: var(--space-3); }
.drawer-section { margin-bottom: var(--space-2); }

.drawer-section-title {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-md);
    transition: all 0.15s;
    min-height: 44px;
}

.drawer-link:hover,
.drawer-link.active {
    color: var(--brand-primary);
    background: var(--brand-primary-50);
}

.drawer-link i {
    width: 20px;
    text-align: center;
    color: var(--gray-400);
    font-size: var(--text-base);
}

.drawer-link:hover i,
.drawer-link.active i { color: var(--brand-primary); }

.drawer-divider {
    height: 1px;
    background: var(--gray-100);
    margin: var(--space-2) var(--space-3);
}

.drawer-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--gray-200);
}

.drawer-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.drawer-footer-links a {
    font-size: var(--text-xs);
    color: var(--gray-400);
}

/* ============================================================
   MOBILE: NOTIFICATION & SEARCH
   ============================================================ */
.mobile-noti-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-600);
    font-size: var(--text-lg);
    border-radius: var(--radius-md);
    position: relative;
}

.mobile-noti-btn:hover { color: var(--gray-800); }

.mobile-noti-dropdown { display: none; }

.mobile-search-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-600);
    font-size: var(--text-lg);
    border-radius: var(--radius-md);
}

.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 250;
    padding: var(--space-3) var(--space-4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-search-overlay.is-open { transform: translateY(0); pointer-events: auto; }

.mobile-search-inner {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.mobile-search-input {
    flex: 1;
    height: 44px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0 var(--space-4);
    font-size: var(--text-base);
    outline: none;
    font-family: inherit;
}

.mobile-search-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-light);
}

.mobile-search-cancel {
    padding: var(--space-2) var(--space-3);
    background: none;
    border: none;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
}

/* ============================================================
   RESPONSIVE — TABLET (1024px)
   ============================================================ */
@media (max-width: 1024px) {
    /* ── Header → 모바일 전환 ── */
    .header-nav { display: none; }
    .header-search { display: none; }
    .header-profile { display: none; }
    .header-noti { display: none; }
    .btn-login-header { display: none; }
    .profile-dropdown { display: none; }
    .noti-dropdown { display: none !important; }
    .hamburger-btn { display: flex; }
    .mobile-noti-btn { display: flex; }
    .mobile-search-btn { display: flex; }
    .mobile-search-overlay { display: block; }
    .mobile-drawer-overlay { display: block; }
    .header-logo-text { display: none; }
    .mobile-user-badge { display: flex; }
    .fab-write { display: flex; }

    /* ── 모바일 알림 드롭다운 ── */
    .mobile-noti-dropdown {
        display: none;
        position: fixed;
        top: 60px;
        left: var(--space-3);
        right: var(--space-3);
        max-height: 420px;
        z-index: 1100;
        background: #fff;
        flex-direction: column;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--gray-200);
        overflow: hidden;
        animation: notiSlideDown 0.2s ease;
    }
    .mobile-noti-dropdown.is-open { display: flex; }

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

    .mobile-noti-dropdown .noti-dropdown-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-4) var(--space-5);
        border-bottom: 1px solid var(--gray-100);
    }

    .mobile-noti-dropdown .noti-dropdown-body {
        flex: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .header-inner { gap: var(--space-2); }
    .header-logo { font-size: var(--text-lg); }
    .header-logo-img { width: 30px; height: 30px; }

    /* ── 카드 그리드 → 모바일 리스트 전환 ── */
    .event-grid { display: none; }
    .event-mobile-list {
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (768px)
   ============================================================ */
@media (max-width: 768px) {
    .board-nav-inner {
        padding: 0 var(--space-4);
        gap: 0;
    }

    .board-nav-item {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
        min-height: 44px;
    }

    .event-layout { padding: var(--space-4); }

    .event-top {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
        margin-bottom: var(--space-4);
    }

    .event-top .btn { display: none; }
    .event-info h1 { font-size: var(--text-xl); }
    .event-controls {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
    }

    .event-sort { width: 100%; }

    .sort-btn {
        flex: 1;
        text-align: center;
        min-height: 40px;
    }

    .event-search { width: 100%; }

    .status-filters {
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    .pagination-wrap { padding: var(--space-6) 0; }
    .page-btn { width: 40px; height: 40px; min-width: 40px; }

    /* ── Footer ── */
    .footer-top { flex-direction: column; align-items: center; gap: var(--space-4); }
    .footer-contact { align-items: center; }
    .footer-nav { justify-content: center; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (480px)
   ============================================================ */
@media (max-width: 480px) {
    .event-layout { padding: var(--space-3); }

    .board-nav-item {
        padding: var(--space-3) var(--space-3);
        font-size: var(--text-xs);
    }

    .event-info h1 { font-size: var(--text-lg); }
    .event-info p { font-size: var(--text-xs); }

    .sort-btn {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
    }

    .event-mobile-card {
        padding: var(--space-2);
        border-radius: var(--radius-md);
    }

    .event-mobile-thumb {
        width: 72px;
        height: 54px;
    }

    .event-mobile-header h3 {
        font-size: var(--text-xs);
    }

    .status-filter {
        padding: var(--space-1) var(--space-3);
        font-size: var(--text-xs);
    }

    .footer-top { text-align: center; align-items: center; }
    .footer-nav { justify-content: center; }
    .footer-bottom { text-align: center; }
}