@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-fallback: #0c0d10;
  --text-main: #f3f4f6;
  --text-soft: #cbd0d8;
  --text-muted: #828794;
  --line-color: rgba(255, 255, 255, 0.1);
  --line-color-hover: rgba(255, 255, 255, 0.25);

  --card-bg: rgba(14, 16, 22, 0.68);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(255, 255, 255, 0.18);
  --tag-bg: rgba(255, 255, 255, 0.05);

  --font-mono: "JetBrains Mono", Consolas, monospace;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 580px;
  --radius: 14px;
}

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

html {
  background-color: var(--bg-fallback);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  background-color: var(--bg-fallback);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  transition: background-image 0.3s ease;
}

/* ===== Responsive Wallpapers ===== */
@media (min-width: 769px) {
  body {
    background-image: url('assets/bg-desktop-mountains.jpg?v=9');
  }
}

@media (max-width: 768px) {
  body {
    background-image: url('assets/bg-mobile-original.jpg?v=9');
    background-attachment: scroll;
  }
}

/* ===== Dark Overlay + PC Corner Vignette (Light & Bright) ===== */
.bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(10, 12, 16, 0.1) 0%, rgba(6, 7, 10, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 769px) {
  .bg-overlay {
    background:
      radial-gradient(ellipse at 0% 0%, rgba(0, 0, 0, 0.35) 0%, transparent 55%),
      radial-gradient(ellipse at 100% 0%, rgba(0, 0, 0, 0.35) 0%, transparent 55%),
      radial-gradient(ellipse at 0% 100%, rgba(0, 0, 0, 0.35) 0%, transparent 55%),
      radial-gradient(ellipse at 100% 100%, rgba(0, 0, 0, 0.35) 0%, transparent 55%),
      radial-gradient(circle at 50% 30%, rgba(10, 12, 16, 0.08) 0%, rgba(6, 7, 10, 0.4) 100%);
  }
}

/* ===== Ambient Canvas ===== */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
}

/* ===== Main Container ===== */
.page {
  position: relative;
  z-index: 10;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 40px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 768px) {
  .page {
    width: min(calc(100% - 24px), var(--max-width));
    padding: 24px 0 84px;
    gap: 12px;
  }
}

/* ===== Language Switcher (Bottom-Right Fixed) ===== */
.lang-switch {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 16, 22, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-soft);
}

.lang-btn.active {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.lang-divider {
  color: var(--line-color);
  user-select: none;
}

/* ===== General Glass Cards ===== */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-color: var(--card-hover-border);
}

@media (max-width: 768px) {
  .card {
    padding: 16px 18px;
    border-radius: 12px;
  }
}

/* ===== Profile Header Card ===== */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 44px 24px 24px;
}

@media (max-width: 768px) {
  .profile-card {
    padding: 22px 16px 18px;
    gap: 12px;
  }
}

.avatar-wrapper {
  position: relative;
  width: 104px;
  height: 104px;
}

@media (max-width: 768px) {
  .avatar-wrapper {
    width: 86px;
    height: 86px;
  }
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.avatar-wrapper:hover .avatar-img {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.6);
}

.avatar-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  filter: blur(8px);
  z-index: 1;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nickname {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .nickname {
    font-size: 1.35rem;
  }
}

/* Sharp Moon Icon */
.moon-icon {
  width: 20px;
  height: 20px;
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
  display: inline-block;
  vertical-align: middle;
}



/* ===== Social Links & Buttons ===== */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .links {
    gap: 8px;
  }
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-color);
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .link-btn {
    font-size: 0.76rem;
    padding: 7px 11px;
    gap: 6px;
  }
}

.link-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--line-color-hover);
  transform: translateY(-2px);
  color: #ffffff;
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== Combined Discord Split Button ===== */
.link-btn-group {
  display: inline-flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-color);
  border-radius: 8px;
  transition: all 0.2s ease;
  overflow: hidden;
}

.link-btn-group:hover {
  border-color: var(--line-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.link-btn-part {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-main);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-link {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.main-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.copy-tag-btn {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  gap: 6px;
  padding: 8px 12px;
}

.copy-tag-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.copy-tag-btn .user-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: #d1d5db;
  transition: color 0.2s ease;
}

.copy-tag-btn:hover .user-tag {
  color: #ffffff;
}

.copy-icon {
  color: var(--text-muted);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.copy-tag-btn:hover .copy-icon {
  color: #ffffff;
}

@media (max-width: 768px) {
  .link-btn-part {
    font-size: 0.76rem;
    padding: 7px 10px;
  }
  .copy-tag-btn {
    padding: 7px 9px;
  }
  .copy-tag-btn .user-tag {
    font-size: 0.72rem;
  }
}

/* ===== Content Sections ===== */
.content-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 768px) {
  .content-sections {
    gap: 10px;
  }
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.3px;
  color: #ffffff;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 0.88rem;
  }
}

.section-text {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .section-text {
    font-size: 0.85rem;
  }
}

/* ===== Games Grid ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.game-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.game-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.game-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  text-transform: none;
}

.game-name {
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 500;
}

@media (max-width: 768px) {
  .game-item {
    padding: 10px 12px;
  }

  .game-name {
    font-size: 0.82rem;
  }
}

/* ===== Interest Tags ===== */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 6px 14px;
  background: var(--tag-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: var(--text-soft);
  transition: all 0.2s ease;
}

.tag:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .tag {
    font-size: 0.76rem;
    padding: 5px 11px;
  }
}

/* ===== Collapsible Details (Playlist) ===== */
.custom-details {
  cursor: pointer;
}

.details-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  user-select: none;
  list-style: none;
}

.details-summary::-webkit-details-marker {
  display: none;
}

.summary-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.summary-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-icon {
  width: 22px;
  height: 22px;
  color: #f3f4f6;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
  flex-shrink: 0;
}

/* 100% Seamless Transparent Copy Icon (Zero background box, completely blends into card) */
.sc-copy-btn {
  all: unset !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 3px !important;
  color: var(--text-muted) !important;
  opacity: 0.45 !important;
  line-height: 1 !important;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

.sc-copy-btn:hover {
  opacity: 1 !important;
  color: #ffffff !important;
  transform: scale(1.15) !important;
}

.sc-copy-btn.copied {
  color: #22c55e !important;
  opacity: 1 !important;
}

.sc-copy-icon {
  flex-shrink: 0;
  display: block;
}

.expand-icon {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
  line-height: 1;
}

.custom-details[open] .expand-icon {
  transform: rotate(90deg);
  color: #ffffff;
}

.custom-details[open] .details-summary {
  margin-bottom: 12px;
}

.details-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.soundcloud-embed {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.soundcloud-embed iframe {
  display: block;
  border: none;
  border-radius: 8px;
  width: 100%;
}

/* ===== Footer — Official Crisp Vector Render Badge ===== */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 0;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-name {
  color: var(--text-soft);
  font-weight: 500;
}

.footer-dot {
  opacity: 0.3;
}

.footer-hosted {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.footer-hosted:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.hosted-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.render-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.render-svg-icon {
  width: 17px;
  height: 17px;
  color: #ffffff;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.render-wordmark {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

@media (max-width: 768px) {
  .footer {
    font-size: 0.78rem;
    padding: 16px 0;
    gap: 8px;
  }
  .footer-hosted {
    padding: 5px 12px;
  }
  .render-svg-icon {
    width: 15px;
    height: 15px;
  }
  .render-wordmark {
    font-size: 0.88rem;
  }
}

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 20, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 10px 18px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  z-index: 100;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
