/*
Theme Name: MR디자인
Theme URI: https://mrdesign.kr
Author: 목진혁
Description: MR디자인(Mixed Reality x Exhibition Design) 사이버펑크 원페이지 홈페이지 테마
Version: 1.0
Requires PHP: 7.4
Text Domain: mrdesign
*/

:root {
  --bg: #07030d;
  --surface: rgba(160,110,255,0.055);
  --surface-border: rgba(0,240,255,0.22);
  --hair: rgba(180,140,255,0.14);
  --text: #F5F1FF;
  --text-dim: #B3A3D6;
  --text-faint: #6E6089;
  --accent: #00F0FF;
  --secondary: #FF2E97;
  --urgent: #FF3355;
  --headline: 'Black Han Sans', 'Noto Sans KR', sans-serif;
  --mono: 'Orbitron', 'Noto Sans KR', sans-serif;
  --body: 'Noto Sans KR', -apple-system, sans-serif;
}
* { box-sizing: border-box; }
::selection { background: rgba(255,46,151,0.4); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); overflow-x: hidden; }
a { text-decoration: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--hair) 1px, transparent 1px), linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 40%, transparent 90%);
  opacity: 0.5;
}
.scanline {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: repeating-linear-gradient(rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay; opacity: 0.6;
}

nav.topnav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7,3,13,0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,240,255,0.33);
  box-shadow: 0 1px 24px rgba(0,240,255,0.13);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 40px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 2;
}
.logo {
  font-family: var(--headline); font-size: 20px; letter-spacing: 0.03em; color: var(--text);
  text-shadow: 0 0 12px rgba(0,240,255,0.6), 0 0 24px rgba(255,46,151,0.33);
}
.logo span { color: var(--secondary); text-shadow: 0 0 10px rgba(255,46,151,0.67); }
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav-links a {
  font-size: 13px; font-family: var(--mono); font-weight: 500; color: var(--text-dim);
  cursor: pointer; transition: all 0.2s ease; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 6px; text-decoration: none;
}
.nav-links a:hover { color: var(--accent); text-shadow: 0 0 10px rgba(0,240,255,0.67); }
.nav-links svg { flex-shrink: 0; }

.hero {
  position: relative; padding: 150px 40px 130px; text-align: center; overflow: hidden; z-index: 2;
}
.hero-glow-a {
  position: absolute; top: -10%; left: 15%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,240,255,0.2), transparent 70%); filter: blur(10px);
  pointer-events: none;
}
.hero-glow-b {
  position: absolute; bottom: -15%; right: 12%; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,46,151,0.19), transparent 70%); filter: blur(10px);
  pointer-events: none;
}
.hero-frame { position: relative; max-width: 920px; margin: 0 auto; padding: 56px 48px; }
.corner { position: absolute; width: 32px; height: 32px; }
.corner-tl { top: 0; left: 0; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); box-shadow: -2px -2px 12px rgba(0,240,255,0.47); }
.corner-tr { top: 0; right: 0; border-top: 2px solid var(--secondary); border-right: 2px solid var(--secondary); box-shadow: 2px -2px 12px rgba(255,46,151,0.47); }
.corner-bl { bottom: 0; left: 0; border-bottom: 2px solid var(--secondary); border-left: 2px solid var(--secondary); box-shadow: -2px 2px 12px rgba(255,46,151,0.47); }
.corner-br { bottom: 0; right: 0; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); box-shadow: 2px 2px 12px rgba(0,240,255,0.47); }
.hero-inner { position: relative; z-index: 1; }
.kicker {
  font-size: 12px; font-family: var(--mono); font-weight: 700; letter-spacing: 0.14em; color: var(--accent);
  margin-bottom: 22px; display: flex; align-items: center; justify-content: center; gap: 8px;
  text-shadow: 0 0 10px rgba(0,240,255,0.6);
}
.hero-title {
  font-family: var(--headline); font-size: clamp(38px,6vw,68px); line-height: 1.32; color: var(--text);
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(0,240,255,0.53), 2px 2px 0 rgba(255,46,151,0.33), -2px -1px 0 rgba(0,240,255,0.27);
}
.hero-by { margin-top: 30px; font-size: 14px; font-family: var(--mono); color: var(--text-dim); letter-spacing: 0.08em; }

.section-wrap { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 70px 40px; }
.portfolio-wrap { position: relative; z-index: 2; max-width: 100%; margin: 0 auto; padding: 70px 0 100px; }
.section-header { margin-bottom: 36px; }
.section-header .kicker { justify-content: flex-start; }
.section-title { font-family: var(--headline); font-size: 32px; color: var(--text); text-shadow: 0 0 16px rgba(0,240,255,0.33); }
.kicker-sm {
  font-size: 11px; font-family: var(--mono); font-weight: 700; letter-spacing: 0.12em; color: var(--secondary);
  display: flex; align-items: center; gap: 6px; text-shadow: 0 0 8px rgba(255,46,151,0.53);
}

.grid3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-bottom: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-bottom: 20px; }
.grid2 > .card, .grid3 > .card { min-width: 0; }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--surface-border); border-radius: 6px;
  padding: 26px; cursor: pointer; transition: all 0.25s ease; backdrop-filter: blur(12px);
}
.card::before {
  content: ''; position: absolute; top: 9px; left: 9px; width: 12px; height: 12px;
  border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); opacity: 0.85; pointer-events: none;
}
.card::after {
  content: ''; position: absolute; bottom: 9px; right: 9px; width: 12px; height: 12px;
  border-bottom: 2px solid var(--secondary); border-right: 2px solid var(--secondary); opacity: 0.85; pointer-events: none;
}
.card:hover {
  border-color: rgba(0,240,255,0.67);
  box-shadow: 0 0 28px rgba(0,240,255,0.27), inset 0 0 20px rgba(255,46,151,0.07);
  transform: translateY(-3px);
}

.news-cat {
  font-size: 11px; font-family: var(--mono); font-weight: 700; letter-spacing: 0.08em; color: var(--accent);
  margin-bottom: 12px; text-transform: uppercase; display: flex; align-items: center; gap: 6px;
}
.news-headline { font-size: 17px; line-height: 1.5; font-weight: 500; color: var(--text); margin-bottom: 14px; }
.news-headline-lg { font-size: 21px; line-height: 1.5; font-weight: 500; color: var(--text); margin-bottom: 14px; max-width: 760px; }
.news-source { font-size: 12px; font-family: var(--mono); color: var(--text-faint); }

.bid-card { padding: 26px; cursor: default; }
.bid-row { padding: 12px 0; border-top: 1px solid var(--hair); cursor: pointer; transition: opacity 0.2s ease; }
.bid-row:hover { opacity: 0.7; }
.bid-title { font-size: 13.5px; color: var(--text); line-height: 1.4; margin-bottom: 6px; }
.bid-meta { font-size: 11px; font-family: var(--mono); color: var(--text-faint); margin-bottom: 4px; }
.bid-status { font-size: 11px; font-family: var(--mono); font-weight: 700; }
.status-normal { color: var(--secondary); text-shadow: 0 0 8px rgba(255,46,151,0.4); }
.status-urgent { color: var(--urgent); text-shadow: 0 0 8px rgba(255,51,85,0.4); }
.status-muted { color: var(--text-faint); }

.card.anim-news { padding: 32px; }

.essay-card { padding: 32px; min-height: 180px; }
.essay-title { font-family: var(--headline); font-size: 22px; color: var(--text); margin-bottom: 14px; line-height: 1.4; text-shadow: 0 0 10px rgba(0,240,255,0.2); }
.essay-excerpt { font-size: 14.5px; line-height: 1.75; color: var(--text-dim); }

.note-header { margin: 44px 0 14px; }
.note-list { display: flex; flex-direction: column; }
.note-row { display: flex; align-items: center; gap: 14px; padding: 16px 4px; border-top: 1px solid var(--hair); cursor: pointer; transition: opacity 0.2s ease; }
.note-row:hover { opacity: 0.65; }
.note-title { flex: 1; font-size: 15px; color: var(--text); }
.note-date { font-size: 12px; font-family: var(--mono); color: var(--text-faint); }

.video-card { overflow: hidden; padding: 0; }
.video-card::before, .video-card::after { z-index: 2; }
.video-thumb {
  position: relative; aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(0,240,255,0.13), rgba(255,46,151,0.08));
  display: flex; align-items: center; justify-content: center;
}
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,0.35);
  border: 1px solid rgba(0,240,255,0.53); box-shadow: 0 0 20px rgba(0,240,255,0.33);
  display: flex; align-items: center; justify-content: center; color: var(--text); padding-left: 3px; position: relative; z-index: 1;
}
.platform-badge {
  position: absolute; top: 12px; left: 12px; font-size: 10px; font-family: var(--mono); font-weight: 700;
  letter-spacing: 0.05em; color: var(--text); background: rgba(0,0,0,0.5); border: 1px solid rgba(255,46,151,0.4);
  padding: 4px 9px; border-radius: 20px; display: flex; align-items: center; gap: 5px; z-index: 1;
}
.video-title { font-size: 15px; font-weight: 500; color: var(--text); padding: 16px 18px 4px; line-height: 1.4; }
.video-desc { font-size: 12.5px; color: var(--text-faint); padding: 0 18px 18px; }

.program-card { padding: 22px; }
.program-name-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.program-name-left { display: flex; align-items: center; gap: 10px; }
.program-name { font-size: 16px; font-weight: 600; color: var(--text); }
.github-glyph { font-size: 13px; color: var(--text-faint); }
.program-desc { font-size: 13px; font-family: var(--mono); color: var(--text-dim); }

.list-row {
  display: flex; align-items: center; gap: 14px; padding: 16px 4px; border-top: 1px solid var(--hair);
  cursor: pointer; transition: opacity 0.2s ease;
}
.list-row:hover { opacity: 0.65; }
.list-row-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 6px; background: rgba(0,240,255,0.08);
  border: 1px solid rgba(0,240,255,0.2); display: flex; align-items: center; justify-content: center;
}
.list-row-main { flex: 1; min-width: 0; }
.list-row-title {
  font-size: 15px; color: var(--text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-row-sub { font-size: 12px; font-family: var(--mono); color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row-meta { font-size: 12px; font-family: var(--mono); color: var(--text-faint); flex-shrink: 0; white-space: nowrap; margin-left: 10px; }
.list-row-badge {
  font-size: 10px; font-family: var(--mono); font-weight: 700; letter-spacing: 0.05em; color: var(--text);
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,46,151,0.4); padding: 3px 8px; border-radius: 20px; flex-shrink: 0;
}
.more-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 12.5px; font-family: var(--mono);
  font-weight: 600; color: var(--accent); letter-spacing: 0.05em; cursor: pointer; transition: all 0.2s ease; text-decoration: none;
}
.more-link:hover { text-shadow: 0 0 10px rgba(0,240,255,0.6); gap: 9px; }

.video-embed-wrap { position: relative; width: 100%; padding-top: 56.25%; }
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.news-board { display: flex; flex-direction: column; }
.news-board .note-list { flex: 1; }
.news-board .list-row:first-child { border-top: none; }
.news-board .more-link { margin-top: 16px; align-self: flex-start; }

.portfolio-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }
.photo-card { cursor: pointer; transition: all 0.25s ease; }
.photo-card:hover { opacity: 0.9; filter: brightness(1.15); }
.photo-placeholder {
  aspect-ratio: 3/4; background: linear-gradient(160deg, rgba(0,240,255,0.09), rgba(255,46,151,0.07));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--hair);
  position: relative; overflow: hidden;
}
.photo-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-label { font-size: 11px; font-family: var(--mono); letter-spacing: 0.14em; color: var(--text-dim); font-weight: 700; }
.photo-caption { font-size: 12.5px; color: var(--text-dim); padding: 14px 18px 0; line-height: 1.5; max-width: 90%; }

footer.site-footer {
  position: relative; z-index: 2; border-top: 1px solid rgba(0,240,255,0.27); padding: 80px 40px 50px; text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo { font-family: var(--headline); font-size: 22px; color: var(--text); margin-bottom: 8px; text-shadow: 0 0 14px rgba(0,240,255,0.4); }
.footer-tagline { font-size: 13px; font-family: var(--mono); color: var(--text-faint); margin-bottom: 32px; letter-spacing: 0.03em; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a {
  font-size: 13.5px; font-family: var(--mono); color: var(--text-dim); cursor: pointer; transition: all 0.2s ease;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.footer-links a:hover { color: var(--accent); text-shadow: 0 0 10px rgba(0,240,255,0.67); }
.footer-divider { color: var(--text-faint); font-size: 12px; }
.footer-note { font-size: 11px; font-family: var(--mono); color: var(--text-faint); margin-bottom: 36px; }
.footer-copy { font-size: 11px; font-family: var(--mono); color: var(--text-faint); }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(4,2,10,0.75); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; animation: fadeUp 0.2s ease;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  position: relative; background: #0c0616; border: 1px solid rgba(0,240,255,0.33); border-radius: 10px;
  padding: 40px; max-width: 520px; width: 100%; max-height: 80vh; overflow: auto;
  box-shadow: 0 0 60px rgba(0,240,255,0.2), 0 30px 80px rgba(0,0,0,0.6);
}
.modal-corner-tl { position: absolute; top: 0; left: 0; width: 26px; height: 26px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.modal-corner-br { position: absolute; bottom: 0; right: 0; width: 26px; height: 26px; border-bottom: 2px solid var(--secondary); border-right: 2px solid var(--secondary); }
.modal-close {
  position: absolute; top: 20px; right: 24px; color: var(--text-dim); cursor: pointer; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s ease; background: none; border: none;
}
.modal-close:hover { background: rgba(255,255,255,0.08); }
.modal-title { font-family: var(--headline); font-size: 24px; color: var(--text); margin: 10px 0 10px; line-height: 1.4; text-shadow: 0 0 12px rgba(0,240,255,0.33); }
.modal-meta { font-size: 12px; font-family: var(--mono); color: var(--text-faint); margin-bottom: 18px; }
.modal-body { font-size: 14.5px; line-height: 1.8; color: var(--text-dim); white-space: pre-line; }

@media (max-width: 760px) {
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 80px; }
  .section-wrap { padding: 50px 20px; }
  .grid3, .grid2 { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2,1fr); }
}
