/* ==============================
   J준 (Jjun) Official Website
   Design: Navy · Black · Sunset
   ============================== */

:root {
  --bg-primary: #07091a;
  --bg-secondary: #0d1228;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --accent-orange: #ff6b35;
  --accent-gold: #ffb347;
  --accent-peach: #e8956d;
  --accent-glow: rgba(255, 107, 53, 0.25);
  --text-primary: #f0f2ff;
  --text-secondary: #8b96c0;
  --text-muted: #4a5278;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(255, 107, 53, 0.3);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(255, 107, 53, 0.15);
  --font-ko: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-ko);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Noise Texture Overlay ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ---- Gradient Background ---- */
.bg-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 107, 53, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 179, 71, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 60%, rgba(13, 18, 40, 0.5) 0%, transparent 50%);
}

/* ---- Container ---- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ==============================
   HERO SECTION
   ============================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
  position: relative;
  text-align: center;
}

.hero-profile-wrap {
  position: relative;
  margin-bottom: 28px;
}

.hero-profile {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-accent);
  box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.08), var(--shadow-card);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.hero-profile-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a2040, #2a3560);
  border: 2px solid var(--border-accent);
  box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.08), var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--text-secondary);
}

.hero-profile-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--accent-orange), var(--accent-gold), transparent, var(--accent-orange));
  animation: ring-spin 6s linear infinite;
  opacity: 0.4;
  z-index: 0;
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.hero-name {
  font-size: clamp(42px, 10vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 20%, var(--accent-gold) 60%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.hero-name-en {
  font-size: clamp(14px, 3vw, 18px);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: clamp(14px, 3vw, 16px);
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 36px;
}

/* ---- Platform Links ---- */
.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  white-space: nowrap;
}

.platform-btn:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
}

.platform-btn.melon { background: linear-gradient(135deg, rgba(0, 180, 60, 0.12), rgba(0, 140, 50, 0.08)); border-color: rgba(0, 200, 80, 0.2); }
.platform-btn.melon:hover { border-color: rgba(0, 200, 80, 0.5); box-shadow: 0 8px 24px rgba(0, 200, 80, 0.15); }
.platform-btn.youtube { background: linear-gradient(135deg, rgba(255, 0, 0, 0.12), rgba(200, 0, 0, 0.08)); border-color: rgba(255, 50, 50, 0.2); }
.platform-btn.youtube:hover { border-color: rgba(255, 50, 50, 0.5); box-shadow: 0 8px 24px rgba(255, 0, 0, 0.15); }
.platform-btn.instagram { background: linear-gradient(135deg, rgba(225, 48, 108, 0.12), rgba(131, 58, 180, 0.08)); border-color: rgba(225, 48, 108, 0.2); }
.platform-btn.instagram:hover { border-color: rgba(225, 48, 108, 0.5); box-shadow: 0 8px 24px rgba(225, 48, 108, 0.15); }
.platform-btn.email { background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(255, 179, 71, 0.08)); border-color: rgba(255, 107, 53, 0.2); }
.platform-btn.email:hover { border-color: rgba(255, 107, 53, 0.5); box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15); }

.platform-icon { font-size: 18px; flex-shrink: 0; }

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.15em;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint svg { opacity: 0.5; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ==============================
   SECTIONS
   ============================== */
section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 36px;
}

.section-divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold));
  margin-bottom: 36px;
  border-radius: 2px;
}

/* ==============================
   LATEST RELEASE
   ============================== */
.latest-release {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 107, 53, 0.04) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.latest-release:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.latest-cover {
  width: 180px;
  height: 180px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.latest-cover-placeholder {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  flex-shrink: 0;
}

.latest-info {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.latest-badge {
  display: inline-block;
  padding: 3px 10px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold));
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #000;
  width: fit-content;
}

.latest-title {
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.latest-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.latest-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.latest-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn-primary {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
  color: #000;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
  opacity: 0.9;
}

.btn-secondary {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ==============================
   ALBUM CAROUSEL
   ============================== */
.album-carousel-wrap {
  position: relative;
  margin: 0 -20px;
}

.album-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 20px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.album-carousel::-webkit-scrollbar { display: none; }

.album-card {
  flex-shrink: 0;
  width: 180px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: var(--transition);
}

.album-card:hover { transform: translateY(-4px); }

.album-cover-wrap {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.album-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.album-card:hover .album-cover-img { transform: scale(1.05); }

.album-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.album-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.album-card:hover .album-cover-overlay { opacity: 1; }

.album-play-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.05em;
}

.album-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.album-type-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Scroll fade edges */
.album-carousel-wrap::before,
.album-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  z-index: 2;
  pointer-events: none;
}

.album-carousel-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.album-carousel-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

/* ==============================
   ABOUT SECTION
   ============================== */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.about-bio {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
  white-space: pre-line;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.about-tag {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

/* ==============================
   VIDEOS SECTION
   ============================== */
.video-grid {
  display: grid;
  gap: 16px;
}

.video-featured {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.video-featured iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.video-thumbnail-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.video-thumb-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.video-thumb-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.1);
}

.video-thumb-card.active {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 1px var(--accent-orange), 0 8px 24px rgba(255, 107, 53, 0.2);
}

.video-thumb-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #111;
}

.video-thumb-info {
  padding: 12px;
}

.video-thumb-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-thumb-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.video-type-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.2);
  color: var(--accent-orange);
}

.video-type-badge.shorts {
  background: rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.2);
  color: #ff4444;
}

/* ==============================
   CONTACT SECTION
   ============================== */
.contact-section {
  text-align: center;
  padding: 80px 20px;
}

.contact-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 107, 53, 0.04) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.contact-emoji { font-size: 40px; margin-bottom: 20px; }

.contact-title {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.contact-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
  color: #000;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.45);
  opacity: 0.95;
}

/* ==============================
   FOOTER
   ============================== */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.footer-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.footer-link {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-link:hover { color: var(--accent-orange); }

/* ==============================
   FADE IN ANIMATION
   ============================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 600px) {
  .hero { padding: 60px 20px 50px; }

  .latest-release {
    grid-template-columns: 1fr;
  }

  .latest-cover,
  .latest-cover-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 0;
  }

  .latest-info { padding: 20px; }

  .about-card { padding: 24px; }

  .contact-card { padding: 40px 24px; }

  .album-card { width: 150px; }
  .album-cover-wrap { width: 150px; height: 150px; }

  .video-thumbnail-row { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .hero-profile, .hero-profile-placeholder { width: 200px; height: 200px; }
}

/* ==============================
   LOADING STATE
   ============================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.06) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
