/* ==============================================================
 * NOVA PRISM THEME — ULTRA-MODERN FROSTED GLASS & NEON PRISM
 * Fully supports Dark Mode & Light Mode
 * ============================================================== */

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

.tg-public-profile-app.tg-design--nova_prism {
  background:
    radial-gradient(circle at 50% 0%, #3b82f6 0%, #8b5cf6 30%, transparent 600px),
    radial-gradient(circle at 90% 40%, #ec4899 0%, transparent 500px),
    linear-gradient(180deg, #09152b 0%, #0d1e3a 50%, #050b14 100%) !important;
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Default / Dark Mode Card Base */
.tg-pp__card--nova-prism {
  background: rgba(13, 25, 48, 0.88) !important;
  backdrop-filter: blur(32px) saturate(210%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(210%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 36px !important;
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  overflow: hidden !important;
  color: #ffffff !important;
  padding: 0 0 24px 0 !important;
  box-sizing: border-box !important;
  position: relative;
}

/* Cover Prism Banner */
.tg-nova-cover-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.7), transparent 60%),
    linear-gradient(135deg, #0284c7 0%, #3b82f6 40%, #8b5cf6 70%, #d946ef 100%);
}
.tg-nova-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: overlay;
}
.tg-nova-cover-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(9, 21, 43, 0.1) 0%, rgba(13, 25, 48, 0.95) 100%);
}

/* Floating 3D Geometric Crystal Prism Accent */
.tg-nova-prism-accent {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 130px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(59,130,246,0.3) 100%);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.5);
  transform: rotate(15deg);
  opacity: 0.6;
  pointer-events: none;
}

/* Avatar Header & Top Menu Button */
.tg-nova-avatar-header {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  margin-top: -64px;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}
.tg-nova-avatar-container {
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}
.tg-nova-avatar-ring {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  padding: 4px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 40%, #6b11ff 100%) !important;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4), 0 0 25px rgba(0, 242, 254, 0.5);
  flex-shrink: 0;
}
.tg-nova-avatar-wrap {
  margin: 0 !important;
  width: 100px !important;
  height: 100px !important;
  border-radius: 50% !important;
}
.tg-nova-avatar-wrap .tg-pp__avatar {
  width: 100px !important;
  height: 100px !important;
  border-radius: 50% !important;
  border: 3px solid #0f172a !important;
  background: #ffffff !important;
  object-fit: cover !important;
  display: block;
}

.tg-nova-menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  margin-bottom: 12px;
}
.tg-nova-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.05);
}

.tg-nova-body {
  display: flex;
  flex-direction: column;
  padding: 16px 24px 20px 24px;
}

/* Name & Verification Badge */
.tg-nova-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.tg-nova-name {
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.tg-nova-badge {
  color: #3b82f6 !important;
  filter: drop-shadow(0 2px 6px rgba(59, 130, 246, 0.6));
}

.tg-nova-tagline {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  color: #60a5fa !important;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Bio Box with Left Accent Bar */
.tg-nova-bio-callout {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.tg-nova-bio-bar {
  width: 3.5px;
  border-radius: 4px;
  background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
  flex-shrink: 0;
}
.tg-nova-bio {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #cbd5e1 !important;
  line-height: 1.45;
  margin: 0 !important;
}

.tg-nova-section {
  width: 100%;
  margin-bottom: 24px !important;
}
.tg-nova-section__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #94a3b8;
  margin-bottom: 12px !important;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tg-nova-section__label svg {
  margin: 0 !important;
  flex: 0 0 auto;
}

/* Quick Actions Grid (4 Floating Cards) */
.tg-nova-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}
@media (max-width: 480px) {
  .tg-nova-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.tg-nova-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}
.tg-nova-quick-card:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.3);
  border-color: #60a5fa;
}

.tg-nova-quick-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.tg-nova-quick-icon-badge svg {
  width: 22px;
  height: 22px;
}
.tg-nova-badge--purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}
.tg-nova-badge--cyan {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}
.tg-nova-badge--violet {
  background: linear-gradient(135deg, #d946ef 0%, #a855f7 100%);
}
.tg-nova-badge--teal {
  background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
}

.tg-nova-quick-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tg-nova-quick-sub {
  font-size: 10.5px;
  font-weight: 500;
  color: #94a3b8;
  text-align: center;
}

/* Links & Resources (2-Column Frosted Cards) */
.tg-nova-links-list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  width: 100%;
}
.tg-nova-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}
.tg-nova-link-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(3px);
  border-color: #38bdf8;
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.25);
}
.tg-nova-link-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}
.tg-nova-link-icon-wrap svg {
  width: 20px;
  height: 20px;
}
.tg-nova-icon--blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.tg-nova-icon--purple {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
}
.tg-nova-link-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  text-align: start;
}
.tg-nova-link-title {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tg-nova-link-sub {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 10.5px;
  font-weight: 500;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tg-nova-link-arrow {
  flex: 0 0 16px;
  transition: transform 0.22s ease;
}

[dir="rtl"] .tg-nova-link-card,
.tg-public-profile-app[dir="rtl"] .tg-nova-link-card {
  gap: 8px;
  padding-inline: 10px;
}

[dir="rtl"] .tg-nova-link-title,
[dir="rtl"] .tg-nova-link-sub,
.tg-public-profile-app[dir="rtl"] .tg-nova-link-title,
.tg-public-profile-app[dir="rtl"] .tg-nova-link-sub {
  text-align: right;
}

[dir="rtl"] .tg-nova-link-arrow,
.tg-public-profile-app[dir="rtl"] .tg-nova-link-arrow {
  transform: scaleX(-1);
}

/* Social Dock Circular Buttons */
.tg-nova-social-dock {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
}
.tg-nova-social-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 46px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.22s ease;
}
.tg-nova-social-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.35);
}
.tg-nova-social-btn svg {
  width: 20px;
  height: 20px;
}

.tg-nova-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
}

/* ==============================================================
 * LIGHT MODE OVERRIDES (.tg-mode--light)
 * ============================================================== */

.tg-mode--light .tg-pp__card--nova-prism {
  background: rgba(240, 246, 255, 0.92) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 35px 90px rgba(7, 17, 31, 0.15), 0 0 50px rgba(59, 130, 246, 0.15) !important;
  color: #0f172a !important;
}
.tg-mode--light .tg-nova-cover-overlay {
  background: linear-gradient(180deg, rgba(9, 21, 43, 0.1) 0%, rgba(240, 246, 255, 0.4) 100%) !important;
}
.tg-mode--light .tg-nova-name {
  color: #0f172a !important;
  text-shadow: none !important;
}
.tg-mode--light .tg-nova-tagline {
  color: #6366f1 !important;
}
.tg-mode--light .tg-nova-bio-callout {
  background: rgba(255, 255, 255, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
}
.tg-mode--light .tg-nova-bio {
  color: #334155 !important;
}
.tg-mode--light .tg-nova-section__label {
  color: #64748b !important;
}
.tg-mode--light .tg-nova-quick-card {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04) !important;
}
.tg-mode--light .tg-nova-quick-card:hover {
  background: #ffffff !important;
}
.tg-mode--light .tg-nova-quick-title {
  color: #0f172a !important;
}
.tg-mode--light .tg-nova-quick-sub {
  color: #64748b !important;
}
.tg-mode--light .tg-nova-link-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03) !important;
}
.tg-mode--light .tg-nova-link-card:hover {
  background: #ffffff !important;
}
.tg-mode--light .tg-nova-link-title {
  color: #0f172a !important;
}
.tg-mode--light .tg-nova-link-sub {
  color: #64748b !important;
}
.tg-mode--light .tg-nova-social-btn {
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  color: #3b82f6 !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05) !important;
}
.tg-mode--light .tg-nova-menu-btn {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  color: #475569 !important;
}
.tg-mode--light .tg-nova-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.6) !important;
  color: #64748b !important;
}
