/* ==========================================================================
   pixel08 — Y2K Retro
   실버 그라디언트 + 라운드 크롬 + 블루/마젠타.
   ========================================================================== */

:root {
    --bg:        linear-gradient(180deg, #d8e7ff 0%, #ffe0f3 100%);
    --bg-solid:  #e8eef9;
    --surface:   #ffffff;
    --text:      #1a1a3e;
    --muted:     #7575a0;
    --chrome-1:  #c4d4ee;
    --chrome-2:  #ffffff;
    --chrome-3:  #8aa3cc;
    --primary:   #2961ff;
    --magenta:   #ff3399;
    --border:    #b8c4dc;
    --shadow:    inset 0 1px 0 #ffffff, 0 6px 16px rgba(41, 97, 255, 0.18);
    --radius:    14px;
    --sans:      "Verdana", "Tahoma", -apple-system, sans-serif;
    --display:   "Trebuchet MS", "Verdana", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--magenta); text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header { background: linear-gradient(180deg, var(--chrome-2) 0%, var(--chrome-1) 100%); border-bottom: 1px solid var(--chrome-3); padding: 1rem 0; box-shadow: 0 2px 8px rgba(41, 97, 255, 0.1); }
.site-header__inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.site-header__title { margin: 0; font-family: var(--display); font-size: 1.75rem; font-weight: 700; font-style: italic; }
.site-header__title a { background: linear-gradient(180deg, var(--primary), var(--magenta)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.site-header__nav { display: flex; gap: 0.5rem; }
.site-header__nav a { background: linear-gradient(180deg, var(--chrome-2), var(--chrome-1)); border: 1px solid var(--chrome-3); border-radius: var(--radius); padding: 0.4rem 1rem; font-weight: 700; font-size: 0.85rem; color: var(--text); box-shadow: var(--shadow); }
.site-header__nav a:hover { background: linear-gradient(180deg, var(--chrome-1), var(--chrome-2)); text-decoration: none; }

/* ---------- Site Switcher ---------- */
.site-switcher { margin-left: auto; position: relative; }
.site-switcher__summary { list-style: none; cursor: pointer; padding: 0.4rem 1rem; background: linear-gradient(180deg, var(--chrome-2), var(--chrome-1)); border: 1px solid var(--chrome-3); border-radius: var(--radius); font-size: 0.85rem; font-weight: 700; box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 0.4rem; }
.site-switcher__summary::-webkit-details-marker { display: none; }
.site-switcher__list { position: absolute; right: 0; top: calc(100% + 0.4rem); background: linear-gradient(180deg, var(--chrome-2), var(--chrome-1)); border: 1px solid var(--chrome-3); margin: 0; padding: 4px; min-width: 240px; list-style: none; z-index: 10; border-radius: var(--radius); box-shadow: 0 8px 20px rgba(41, 97, 255, 0.2); }
.site-switcher__item a { display: block; padding: 0.5rem 0.85rem; font-size: 0.85rem; color: var(--text); border-radius: 8px; }
.site-switcher__item a:hover { background: var(--primary); color: white; text-decoration: none; }
.site-switcher__item.is-current a { background: linear-gradient(180deg, var(--magenta), var(--primary)); color: white; font-weight: 700; }

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

.hero { padding: 3rem; background: linear-gradient(180deg, var(--chrome-2) 0%, var(--chrome-1) 100%); border: 1px solid var(--chrome-3); border-radius: var(--radius); margin-bottom: 2.5rem; text-align: center; box-shadow: var(--shadow), 0 12px 30px rgba(41, 97, 255, 0.15); }
.hero__title { font-family: var(--display); font-size: 3rem; line-height: 1; margin: 0 0 1rem; font-weight: 700; font-style: italic; background: linear-gradient(180deg, var(--primary), var(--magenta)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero__lead { color: var(--muted); font-size: 1rem; margin: 0; }

.latest-gallery__header, .board__header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; }
.latest-gallery__header h2, .board__header h2 { font-family: var(--display); font-size: 1.5rem; margin: 0; font-weight: 700; }
.latest-gallery__more { font-size: 0.85rem; color: var(--magenta); font-weight: 700; }
.latest-gallery__empty, .board__empty { color: var(--muted); padding: 3rem 0; text-align: center; background: var(--surface); border: 1px solid var(--chrome-3); border-radius: var(--radius); }
.board__count { color: var(--muted); margin: 0; }
.board__count strong { color: var(--magenta); }

/* ---------- 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: linear-gradient(180deg, var(--chrome-2) 0%, var(--chrome-1) 100%); border: 1px solid var(--chrome-3); border-radius: var(--radius); overflow: hidden; color: inherit; box-shadow: var(--shadow); transition: all 0.2s; }
.thumb-card:hover { border-color: var(--primary); box-shadow: var(--shadow), 0 0 0 3px rgba(41, 97, 255, 0.2); text-decoration: none; }
.thumb-card__image { display: block; aspect-ratio: 4/3; background: var(--bg-solid); overflow: hidden; border-bottom: 1px solid var(--chrome-3); }
.thumb-card__image img { width: 100%; height: 100%; object-fit: cover; }
.thumb-card__title { display: block; padding: 0.85rem 1rem 0.4rem; font-family: var(--display); font-size: 0.95rem; font-weight: 700; 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 1rem; color: var(--muted); font-size: 0.75rem; }
.thumb-card__meta { display: flex; gap: 1rem; }

/* ---------- 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: 8px;
    color: #7575a0;
    border: 1px solid currentColor;
    transition: background-color .15s ease, color .15s ease;
}
.pagination a:hover { color: #2961ff; border-color: #2961ff; text-decoration: none; }
.pagination a.current {
    background: #2961ff; color: #ffffff; border-color: #2961ff;
    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 { background: var(--surface); border: 1px solid var(--chrome-3); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.board-view__header { padding-bottom: 1.25rem; border-bottom: 2px solid var(--chrome-3); margin-bottom: 1.75rem; }
.board-view__title { font-family: var(--display); font-size: 2rem; margin: 0 0 0.85rem; font-weight: 700; }
.board-view__meta { display: flex; gap: 1.5rem; color: var(--muted); font-size: 0.85rem; margin: 0; flex-wrap: wrap; }
.board-view__meta dt { display: inline; font-weight: 700; }
.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 { font-size: 1rem; line-height: 1.8; padding: 1.25rem 0; }
.board-view__footer { padding-top: 1.5rem; border-top: 1px dashed var(--chrome-3); margin-top: 1.5rem; }

.btn { display: inline-block; padding: 0.55rem 1.4rem; background: linear-gradient(180deg, var(--chrome-2) 0%, var(--chrome-1) 100%); border: 1px solid var(--chrome-3); border-radius: var(--radius); color: var(--text); font-weight: 700; text-decoration: none; box-shadow: var(--shadow); }
.btn:hover { background: linear-gradient(180deg, var(--magenta), var(--primary)); color: white; border-color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 4rem; padding: 1.5rem 0; background: linear-gradient(0deg, var(--chrome-1), var(--chrome-2)); border-top: 1px solid var(--chrome-3); }
.site-footer__inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; color: var(--muted); font-size: 0.8rem; text-align: center; }
.site-footer__id { font-family: monospace; }
