/* ==========================================================================
   pixel05 — Cyberpunk Neon
   짙은 배경 + 네온 그린/마젠타 + 글리치 같은 강한 외곽선.
   ========================================================================== */

:root {
    --bg:        #050510;
    --surface:   #0d0d20;
    --text:      #e0e0ff;
    --muted:     #6a6a8a;
    --neon-1:    #00ff9d;  /* 형광 그린 */
    --neon-2:    #ff00aa;  /* 형광 마젠타 */
    --neon-3:    #00d4ff;  /* 형광 시안 */
    --border:    #2a2a40;
    --mono:      "Fira Code", "Consolas", monospace;
    --sans:      "Rajdhani", -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; background-image: linear-gradient(180deg, transparent 50%, rgba(0,255,157,0.02) 50%); background-size: 100% 4px; }
a { color: var(--neon-1); text-decoration: none; }
a:hover { color: var(--neon-2); text-shadow: 0 0 8px currentColor; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--neon-1); padding: 1.25rem 0; box-shadow: 0 1px 0 var(--neon-1), 0 2px 20px rgba(0,255,157,0.2); }
.site-header__inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.site-header__title { margin: 0; font-family: var(--mono); font-size: 1.5rem; font-weight: 700; }
.site-header__title a { color: var(--neon-1); text-shadow: 0 0 8px currentColor; }
.site-header__title a::before { content: "> "; color: var(--neon-2); }
.site-header__nav { display: flex; gap: 1.25rem; }
.site-header__nav a { font-family: var(--mono); color: var(--text); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em; }
.site-header__nav a:hover { color: var(--neon-1); }

/* ---------- Site Switcher ---------- */
.site-switcher { margin-left: auto; position: relative; }
.site-switcher__summary { list-style: none; cursor: pointer; padding: 0.4rem 0.9rem; border: 1px solid var(--neon-3); background: rgba(0, 212, 255, 0.05); color: var(--neon-3); font-family: var(--mono); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.site-switcher__summary::-webkit-details-marker { display: none; }
.site-switcher[open] .site-switcher__summary { background: var(--neon-3); color: var(--bg); }
.site-switcher__list { position: absolute; right: 0; top: calc(100% + 0.4rem); background: var(--surface); border: 1px solid var(--neon-3); margin: 0; padding: 0; min-width: 240px; list-style: none; z-index: 10; box-shadow: 0 0 24px rgba(0,212,255,0.3); }
.site-switcher__item { border-bottom: 1px solid var(--border); }
.site-switcher__item:last-child { border-bottom: none; }
.site-switcher__item a { display: block; padding: 0.55rem 0.95rem; font-family: var(--mono); font-size: 0.85rem; color: var(--text); }
.site-switcher__item a:hover { background: var(--bg); color: var(--neon-1); }
.site-switcher__item.is-current a { color: var(--neon-2); border-left: 3px solid var(--neon-2); padding-left: calc(0.95rem - 3px); }

/* ---------- Main ---------- */
.site-main { max-width: 1280px; margin: 0 auto; padding: 3rem 2rem; }

.hero { padding: 3.5rem 2rem; background: linear-gradient(135deg, rgba(0,255,157,0.08), rgba(255,0,170,0.08)); border: 1px solid var(--neon-1); margin-bottom: 3rem; position: relative; }
.hero::before { content: ""; position: absolute; top: -1px; left: -1px; width: 30px; height: 30px; border-top: 2px solid var(--neon-2); border-left: 2px solid var(--neon-2); }
.hero::after { content: ""; position: absolute; bottom: -1px; right: -1px; width: 30px; height: 30px; border-bottom: 2px solid var(--neon-2); border-right: 2px solid var(--neon-2); }
.hero__title { font-family: var(--mono); font-size: 3rem; margin: 0 0 1rem; line-height: 1.1; color: var(--neon-1); text-shadow: 0 0 12px currentColor; }
.hero__lead { color: var(--muted); font-family: var(--mono); font-size: 1rem; margin: 0; }

.latest-gallery__header, .board__header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2rem; padding-bottom: 0.5rem; border-bottom: 1px dashed var(--neon-3); }
.latest-gallery__header h2, .board__header h2 { font-family: var(--mono); font-size: 1.5rem; margin: 0; color: var(--neon-3); text-transform: uppercase; }
.latest-gallery__more { font-family: var(--mono); font-size: 0.85rem; color: var(--neon-1); }
.latest-gallery__empty, .board__empty { color: var(--muted); padding: 3rem 0; text-align: center; font-family: var(--mono); }
.board__count { color: var(--muted); margin: 0; font-family: var(--mono); }
.board__count strong { color: var(--neon-1); }

/* ---------- Thumb Grid ---------- */
.thumb-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); }
.thumb-grid--list { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .thumb-grid, .thumb-grid--list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .thumb-grid, .thumb-grid--list { grid-template-columns: 1fr; } }

.thumb-card { display: block; background: var(--surface); border: 1px solid var(--border); color: inherit; text-decoration: none; transition: all 0.2s ease; position: relative; }
.thumb-card:hover { border-color: var(--neon-1); box-shadow: 0 0 24px rgba(0,255,157,0.4); }
.thumb-card:hover .thumb-card__title { color: var(--neon-1); }
.thumb-card__image { display: block; aspect-ratio: 4/3; background: var(--bg); overflow: hidden; }
.thumb-card__image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.2) contrast(1.1); }
.thumb-card__title { display: block; padding: 0.85rem 1rem 0.4rem; font-family: var(--mono); font-size: 0.9rem; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.thumb-card__date, .thumb-card__meta { display: block; padding: 0 1rem 0.85rem; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.thumb-card__meta { display: flex; gap: 1rem; }
.thumb-card__views::before { content: "// "; color: var(--neon-2); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 3.2rem; height: 3.2rem; padding: .4rem .6rem;
    font-size: .88rem; text-decoration: none;
    border-radius: 0;
    color: #6a6a8a;
    border: 1px solid currentColor;
    transition: background-color .15s ease, color .15s ease;
}
.pagination a:hover { color: #00ff9d; border-color: #00ff9d; text-decoration: none; }
.pagination a.current {
    background: #00ff9d; color: #0d0d20; border-color: #00ff9d;
    font-weight: 700; pointer-events: none;
}
.pagination a.pagination-prev,
.pagination a.pagination-next { font-size: 1.1rem; font-weight: 700; }
.pagination a.pagination-prev::before { content: '‹'; }
.pagination a.pagination-next::before { content: '›'; }

/* ---------- Board View ---------- */
.board-view { border: 1px solid var(--border); padding: 2rem; }
.board-view__header { padding-bottom: 1.5rem; border-bottom: 1px solid var(--neon-3); margin-bottom: 2rem; }
.board-view__title { font-family: var(--mono); font-size: 2rem; margin: 0 0 1rem; line-height: 1.2; color: var(--neon-1); }
.board-view__meta { display: flex; gap: 1.5rem; color: var(--muted); font-family: var(--mono); font-size: 0.8rem; margin: 0; flex-wrap: wrap; }
.board-view__meta dt { display: inline; font-weight: normal; }
.board-view__meta dd { display: inline; margin: 0 0 0 0.4rem; color: var(--text); }
.board-view__thumb { margin-bottom: 2rem; }
.board-view__thumb img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.board-view__body { padding: 1.5rem 0; }
.board-view__footer { padding-top: 1.5rem; border-top: 1px dashed var(--border); margin-top: 1.5rem; }

.btn { display: inline-block; padding: 0.55rem 1.4rem; border: 1px solid var(--neon-1); background: transparent; color: var(--neon-1); font-family: var(--mono); text-transform: uppercase; text-decoration: none; }
.btn:hover { background: var(--neon-1); color: var(--bg); box-shadow: 0 0 16px var(--neon-1); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--neon-2); margin-top: 4rem; padding: 1.5rem 0; box-shadow: 0 -1px 0 var(--neon-2); }
.site-footer__inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; color: var(--muted); font-family: var(--mono); font-size: 0.8rem; }
.site-footer__id { color: var(--neon-3); }
