/* ==========================================================================
   Aoyama Naoto Official SNS Portal Stylesheet
   Designed by Aki (PM / Lead Assistant)
   Theme: Sophisticated Deep Slate & Aurora Emerald Glassmorphism
   Mobile 1-Screen Optimized (100dvh)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --font-base: 'Outfit', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Colors */
  --bg-dark: #090d16;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(28, 38, 60, 0.85);
  
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-hover: rgba(255, 255, 255, 0.22);

  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;

  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-dim: #64748b;

  --shadow-glow: 0 10px 25px -5px rgba(16, 185, 129, 0.15), 0 8px 10px -6px rgba(6, 182, 212, 0.1);
  --shadow-btn: 0 4px 12px rgba(0, 0, 0, 0.25);

  --radius-avatar: 50%;
  --radius-card: 16px;
  --radius-pill: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

/* --------------------------------------------------------------------------
   Aurora Background Glows
   -------------------------------------------------------------------------- */
.bg-glow {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-orb-1 {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(9, 13, 22, 0) 70%);
  filter: blur(40px);
  animation: pulseOrb 8s ease-in-out infinite alternate;
}

.glow-orb-2 {
  position: absolute;
  bottom: -15%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(9, 13, 22, 0) 70%);
  filter: blur(45px);
  animation: floatOrb 10s ease-in-out infinite alternate;
}

.glow-orb-3 {
  position: absolute;
  top: 40%;
  left: -20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(9, 13, 22, 0) 70%);
  filter: blur(40px);
}

@keyframes pulseOrb {
  0% { transform: translateX(-50%) scale(0.9); opacity: 0.6; }
  100% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

@keyframes floatOrb {
  0% { transform: translateY(0); }
  100% { transform: translateY(-30px); }
}

/* --------------------------------------------------------------------------
   Main Container (Mobile 1-Screen Optimized)
   -------------------------------------------------------------------------- */
.portal-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
}

/* Header & Share */
.portal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0.25rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: #34d399;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.btn-share {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-sub);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.btn-share:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Profile Hero Section
   -------------------------------------------------------------------------- */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0.75rem;
}

.avatar-container {
  position: relative;
  width: 86px;
  height: 86px;
  margin-bottom: 0.65rem;
}

.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4, #3b82f6);
  opacity: 0.9;
  animation: rotateRing 12s linear infinite;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-dark);
  z-index: 1;
}

.profile-name {
  font-family: var(--font-base);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1.2;
}

.profile-name span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-sub);
  margin-left: 0.35rem;
}

.profile-tagline {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-top: 0.2rem;
  letter-spacing: 0.03em;
}

.profile-bio {
  font-size: 0.74rem;
  color: var(--text-sub);
  margin-top: 0.25rem;
  max-width: 320px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   SNS Links Stack
   -------------------------------------------------------------------------- */
.links-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: background 0.2s ease;
}

.link-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.link-card:active {
  transform: scale(0.98);
}

/* Individual Brand Accents */
.link-card.brand-note:hover::before { background: #2cb696; }
.link-card.brand-note .link-icon-box { background: rgba(44, 182, 150, 0.15); color: #2cb696; }

.link-card.brand-x:hover::before { background: #ffffff; }
.link-card.brand-x .link-icon-box { background: rgba(255, 255, 255, 0.12); color: #ffffff; }

.link-card.brand-instagram:hover::before { background: #e1306c; }
.link-card.brand-instagram .link-icon-box { background: rgba(225, 48, 108, 0.15); color: #e1306c; }

.link-card.brand-line:hover::before { background: #06c755; }
.link-card.brand-line .link-icon-box { background: rgba(6, 199, 85, 0.15); color: #06c755; }

.link-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.link-card:hover .link-icon-box {
  transform: scale(1.08);
}

.link-icon-box svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.link-icon-box svg.icon-note {
  fill: currentColor;
}

.link-icon-box svg.icon-line {
  fill: none;
}


.link-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.link-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-featured {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
  line-height: 1.2;
}

.link-desc {
  font-size: 0.72rem;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}

.link-arrow {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: transform 0.2s ease, color 0.2s ease;
  margin-left: 0.25rem;
}

.link-card:hover .link-arrow {
  color: #fff;
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Sub-Project Quick Chips (Portfolio Highlights)
   -------------------------------------------------------------------------- */
.projects-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  transition: all 0.15s ease;
}

.project-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.portal-footer {
  text-align: center;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copy {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.footer-curation {
  font-size: 0.64rem;
  color: #059669;
  margin-top: 0.1rem;
}

/* --------------------------------------------------------------------------
   Toast Notification (for Share Copy)
   -------------------------------------------------------------------------- */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent-emerald);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

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

/* --------------------------------------------------------------------------
   Responsive Height Safeguard
   -------------------------------------------------------------------------- */
@media (max-height: 640px) {
  .portal-wrapper {
    height: auto;
    min-height: 100dvh;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .avatar-container {
    width: 72px;
    height: 72px;
    margin-bottom: 0.4rem;
  }
  .profile-bio {
    display: none;
  }
  .link-card {
    padding: 0.6rem 0.85rem;
  }
}
