/* =============================================================
   Ultra-Neo Radical Redux  v1.0
   ─ Mobile-First & Fully Responsive ─
   Palette ▸  bg-gradient: linear-gradient(135deg,#1b1b2f,#0f0f1f,#2e003e);
               card-bg: #111;  accent1: #ff07a1;  accent2: #07e1ff;  
               highlight: #ffd800; txt: #f0f0f5
   Font ▸ 'Orbitron' 400/700 & 'Raleway' 300/600
==============================================================*/

/* ─── 1. 기본 Reset & Mobile-First 기준 ───────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Raleway:wght@300;600&display=swap");

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

html {
  font-size: 16px;              /* 기준 16px (모바일 기준) */
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #1b1b2f 0%, #0f0f1f 50%, #2e003e 100%);
  color: #f0f0f5;
  font-family: 'Raleway', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ─── 2. 모바일 기본 폰트 & 레이아웃 ───────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* 기본 버튼 스타일 */
button,
.button,
input[type="button"],
input[type="submit"] {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111;
  background: linear-gradient(45deg, #ff07a1, #07e1ff);
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1.8rem;
  box-shadow: 0 4px 12px rgba(255, 7, 161, 0.4), 0 0 20px rgba(7, 225, 255, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 7, 161, 0.6), 0 0 30px rgba(7, 225, 255, 0.5);
}
button:active,
.button:active {
  transform: translateY(0) scale(0.96);
  filter: brightness(0.9);
}

/* 링크 히어로 언더라인 효과 */
a {
  color: inherit;
  text-decoration: none;
  position: relative;
}
a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #ff07a1;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
a:hover::after {
  width: 100%;
}

/* ─── 3. 레이아웃 공통 ───────────────────────── */
#wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  gap: 1.5rem;
}

/* 헤더 공간 확보 */
#header {
  padding: 1.5rem 1rem;
  background: transparent;
  text-align: center;
  position: relative;
  z-index: 10;
}
#header .logo {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto;
  background: radial-gradient(circle at 30% 30%, #ff07a1 0%, #970072 80%);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(255, 7, 161, 0.5), 0 0 48px rgba(7, 225, 255, 0.3);
  display: grid;
  place-items: center;
  transform: rotate(15deg);
  animation: pulseLogo 2s infinite alternate ease-in-out;
}
#header .logo .icon:before {
  font-size: 1.8rem;
  color: #0f0f1f;
  transform: rotate(-15deg);
}
#header .content {
  margin-top: 1rem;
  margin-inline: auto;
  background: rgba(17, 17, 17, 0.9);
  border: 2px solid rgba(255, 216, 0, 0.8);
  border-radius: 1.5rem 0 1.5rem 0;
  padding: 1.5rem 1rem;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 12px 28px rgba(0,0,0,0.6);
}
#header .content h1 {
  font-size: 1.8rem;
  color: #ffd800;
  margin-bottom: 0.5rem;
}
#header .content p {
  font-size: 0.9rem;
  color: #e0e0e5;
  line-height: 1.4;
}

#header nav {
  margin-top: 1rem;
}
#header nav ul {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  list-style: none;
}
#header nav ul li {
  list-style: none;
}
#header nav ul li a {
  display: block;
  padding: 0.4rem 0.8rem;
  background: rgba(17,17,17,0.8);
  border: 2px solid #07e1ff;
  border-radius: 999px 0 999px 0;
  font-size: 0.75rem;
  color: #07e1ff;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}
#header nav ul li a:hover {
  background: #07e1ff;
  color: #111;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* ─── 4. 메인 컨텐츠 ───────────────────────── */
#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  position: relative;
  overflow: hidden;
}

/* 배경 블러 원 (장식용) */
#main::before {
  content: "";
  position: absolute;
  top: 5%;
  right: -25%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at center, #ff07a1 0%, transparent 70%);
  filter: blur(60px);
  opacity: 0.4;
  z-index: 0;
}
#main::after {
  content: "";
  position: absolute;
  bottom: 5%;
  left: -20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at center, #07e1ff 0%, transparent 70%);
  filter: blur(60px);
  opacity: 0.4;
  z-index: 0;
}

/* Article 카드 스타일 */
#main article {
  position: relative;
  z-index: 1;
  background: #111;
  border-radius: 1.2rem;
  width: 100%;
  max-width: 600px;
  padding: 1.5rem 1rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.75);
  margin-bottom: 1.5rem;
}
#main article.active {
  /* 예시 애니메이션(클래스 토글 시) */
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
}

/* 제목 및 텍스트 */
#main h2 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(120deg, #07e1ff, #ff07a1);
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}
#main h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #07e1ff;
  margin-bottom: 0.7rem;
}
#main p {
  font-size: 0.95rem;
  color: #e0e0e5;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* 메인 이미지 (반응형) */
#main .image.main {
  width: 100%;
  border-radius: 0.8rem;
  overflow: hidden;
  border: 2px solid #07e1ff;
  margin: 1.2rem 0;
}
#main .image.main img {
  display: block;
  width: 100%;
  height: auto;
}

/* 닫기 버튼 */
#main .close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.5rem;
  height: 2.5rem;
  background: #222;
  color: #ffd800;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
#main .close:hover {
  background-color: #ff07a1;
  transform: rotate(90deg);
  color: #111;
}

/* ─── 5. 푸터 ───────────────────────── */
#footer {
  text-align: center;
  background: transparent;
  padding: 1rem 1rem;
  font-size: 0.75rem;
  color: #e0e0e5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}
#footer::before {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #ff07a1, #07e1ff);
  margin: 0 auto 0.5rem;
  border-radius: 2px;
}

/* ─── 6. 반응형 확장 ───────────────────────── */

/* ── (태블릿 이하: 768px 이하) ── */
@media (max-width: 768px) {
  html {
    font-size: 15px;  /* 폰트 약간 축소 */
  }
  #header .logo {
    width: 4rem;
    height: 4rem;
  }
  #header .content {
    padding: 1.2rem 0.8rem;
  }
  #header .content h1 {
    font-size: 1.6rem;
  }
  #header .content p {
    font-size: 0.85rem;
  }
  #header nav ul li a {
    padding: 0.35rem 0.8rem;
    font-size: 0.7rem;
  }

  #main {
    padding: 1.2rem 0.8rem;
  }
  #main::before, #main::after {
    filter: blur(50px);
  }
  #main article {
    padding: 1.2rem 0.8rem;
  }
  #main h2 {
    font-size: 1.4rem;
  }
  #main h3 {
    font-size: 1.1rem;
  }
  #main p {
    font-size: 0.9rem;
  }
  #main .image.main {
    margin: 1rem 0;
  }
  #main .close {
    width: 2.2rem;
    height: 2.2rem;
    top: 0.6rem;
    right: 0.6rem;
  }

  .button {
    padding: 0.7rem 1.6rem;
    font-size: 0.85rem;
  }

  #footer {
    font-size: 0.7rem;
    padding: 0.8rem 1rem;
  }
}

/* ── (PC: 1024px 이상) ── */
@media (min-width: 1025px) {
  html {
    font-size: 18px;  /* PC에서 폰트 키움 */
  }
  #wrapper {
    gap: 2.5rem;
  }
  #header {
    padding: 2rem 1rem;
  }
  #header .logo {
    width: 6rem;
    height: 6rem;
  }
  #header .content {
    max-width: 700px;
    padding: 2.5rem 1.8rem;
  }
  #header .content h1 {
    font-size: 2.4rem;
  }
  #header .content p {
    font-size: 1rem;
  }
  #header nav ul li a {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
  }

  #main {
    padding: 2.5rem 1rem;
  }
  #main::before {
    width: 250px;
    height: 250px;
    top: 8%;
    right: -20%;
    filter: blur(70px);
  }
  #main::after {
    width: 230px;
    height: 230px;
    bottom: 6%;
    left: -18%;
    filter: blur(70px);
  }
  #main article {
    max-width: 720px;
    padding: 2rem 1.5rem;
  }
  #main h2 {
    font-size: 1.8rem;
  }
  #main h3 {
    font-size: 1.3rem;
  }
  #main p {
    font-size: 1rem;
  }
  #main .image.main {
    margin: 1.5rem 0;
  }
  #main .close {
    width: 3rem;
    height: 3rem;
    top: 1rem;
    right: 1rem;
  }

  .button {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  #footer {
    font-size: 0.8rem;
    padding: 1.2rem 1rem;
  }
}

/* ─── 7. 애니메이션 키프레임 ───────────────────────── */
@keyframes pulseLogo {
  0%   { transform: rotate(15deg) scale(1); }
  100% { transform: rotate(15deg) scale(1.08); }
}
