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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  transition: background 0.5s ease, color 0.4s ease;
}

/* ===== Theme: Rose Pink + Gold ===== */
[data-theme="rose"] {
  --bg-start: #fdf2f8;
  --bg-end: #fce7f3;
  --text-primary: #831843;
  --text-secondary: #9d174d;
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: rgba(219, 39, 119, 0.15);
  --card-hover-bg: rgba(219, 39, 119, 0.1);
  --card-hover-border: rgba(219, 39, 119, 0.35);
  --card-shadow: 0 2px 12px rgba(219, 39, 119, 0.08);
  --card-hover-shadow: 0 6px 24px rgba(219, 39, 119, 0.15);
  --accent: #db2777;
  --accent-gold: #d97706;
  --brand-gradient: linear-gradient(135deg, #db2777, #d97706);
  --footer-color: #9d174d;
  --switcher-bg: rgba(255, 255, 255, 0.6);
  background: linear-gradient(160deg, var(--bg-start), var(--bg-end));
}

/* ===== Theme: Deep Red + Black + Gold ===== */
[data-theme="deep"] {
  --bg-start: #1a0a0a;
  --bg-end: #2d0f0f;
  --text-primary: #fcd9d9;
  --text-secondary: #f0abab;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(220, 38, 38, 0.25);
  --card-hover-bg: rgba(220, 38, 38, 0.12);
  --card-hover-border: rgba(234, 179, 8, 0.5);
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --card-hover-shadow: 0 6px 24px rgba(234, 179, 8, 0.15);
  --accent: #dc2626;
  --accent-gold: #eab308;
  --brand-gradient: linear-gradient(135deg, #dc2626, #eab308);
  --footer-color: #f0abab;
  --switcher-bg: rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, var(--bg-start), var(--bg-end));
}

/* ===== Theme: Baby Pink + White ===== */
[data-theme="baby"] {
  --bg-start: #fff5f7;
  --bg-end: #ffe4e9;
  --text-primary: #6b2140;
  --text-secondary: #a3365e;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(244, 163, 188, 0.3);
  --card-hover-bg: rgba(251, 207, 222, 0.5);
  --card-hover-border: rgba(244, 114, 152, 0.4);
  --card-shadow: 0 2px 12px rgba(244, 163, 188, 0.12);
  --card-hover-shadow: 0 6px 24px rgba(244, 114, 152, 0.18);
  --accent: #e8467c;
  --accent-gold: #f472b6;
  --brand-gradient: linear-gradient(135deg, #e8467c, #f9a8d4);
  --footer-color: #a3365e;
  --switcher-bg: rgba(255, 255, 255, 0.7);
  background: linear-gradient(160deg, var(--bg-start), var(--bg-end));
}

/* ===== Theme Switcher ===== */
.theme-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  background: var(--switcher-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 10px;
  border-radius: 40px;
  z-index: 100;
  border: 1px solid var(--card-border);
}

.theme-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, transform 0.2s;
}

.theme-btn.active {
  border-color: var(--accent);
  transform: scale(1.15);
}

.theme-btn:hover {
  transform: scale(1.1);
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.swatch-rose {
  background: linear-gradient(135deg, #db2777, #d97706);
}

.swatch-deep {
  background: linear-gradient(135deg, #dc2626, #eab308);
}

.swatch-baby {
  background: linear-gradient(135deg, #e8467c, #f9a8d4);
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 420px;
  padding: 60px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ===== Profile ===== */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.profile-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  border: 3px solid var(--card-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.4s;
}

.brand-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.4s;
}

/* ===== Link List ===== */
.link-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.link-item:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-2px);
}

.link-item:active {
  transform: translateY(0);
}

.link-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent);
  transition: color 0.3s;
}

.link-item span {
  flex: 1;
}

.link-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.35;
  transition: opacity 0.3s, transform 0.3s;
}

.link-item:hover .link-arrow {
  opacity: 0.7;
  transform: translateX(3px);
}

/* ===== Footer ===== */
.footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--footer-color);
  opacity: 0.6;
  margin-top: 12px;
  transition: color 0.4s;
}

.footer-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile {
  animation: fadeInUp 0.6s ease both;
}

.link-item:nth-child(1) { animation: fadeInUp 0.5s 0.15s ease both; }
.link-item:nth-child(2) { animation: fadeInUp 0.5s 0.25s ease both; }
.link-item:nth-child(3) { animation: fadeInUp 0.5s 0.35s ease both; }
.link-item:nth-child(4) { animation: fadeInUp 0.5s 0.45s ease both; }

.footer {
  animation: fadeInUp 0.5s 0.55s ease both;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .container {
    padding: 50px 16px 32px;
  }

  .profile-logo {
    width: 80px;
    height: 80px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .link-item {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
}
