/* ======================================================
   DIGITAL BUSINESS CARD — card-styles.css
   Standalone styles for page-card.php
   ====================================================== */

/* ── Tokens (mirrored from main theme) ── */
:root {
  --teal: #1ea2b1;
  --teal-light: #26c0d1;
  --teal-dark: #178a97;
  --teal-muted: rgba(30,162,177,.15);
  --gold: #e8a838;
  --gold-light: #f0be5c;
  --gold-dark: #c88e28;
  --gold-muted: rgba(232,168,56,.12);
  --navy-950: #010814;
  --navy-900: #020c1e;
  --navy-850: #051428;
  --navy-800: #07182c;
  --text: #eaf2fb;
  --text-secondary: #a8bdd0;
  --muted: #6d8299;
  --card-bg: rgba(7,24,44,.7);
  --card-border: rgba(255,255,255,.06);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }

.card-body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--navy-950);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-x: hidden;
}

/* ── Wrapper with ambient glow ── */
.card-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  animation: cardEnter .8s var(--ease-out) forwards;
  opacity: 0;
}

.card-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.card-glow--teal {
  width: 260px; height: 260px;
  background: rgba(30,162,177,.1);
  top: -60px; left: -80px;
  animation: glowDrift 8s ease-in-out infinite alternate;
}
.card-glow--gold {
  width: 200px; height: 200px;
  background: rgba(232,168,56,.07);
  bottom: -40px; right: -60px;
  animation: glowDrift 8s ease-in-out 4s infinite alternate-reverse;
}

/* ── Card shell ── */
.bcard {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0 28px 28px;
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  box-shadow:
    0 1px 3px rgba(0,0,0,.3),
    0 12px 40px rgba(0,0,0,.25),
    0 0 60px rgba(30,162,177,.04);
  overflow: hidden;
}

/* Top accent bar */
.bcard-accent {
  height: 4px;
  margin: 0 -28px 28px;
  background: linear-gradient(90deg, var(--teal), var(--gold-light), var(--teal-light));
  background-size: 200% 100%;
  animation: shimmer 6s ease-in-out infinite;
}

/* ── Avatar ── */
.bcard-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.bcard-avatar-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  box-shadow:
    0 0 0 6px rgba(7,24,44,.6),
    0 4px 24px rgba(30,162,177,.2);
  animation: avatarIn .7s var(--ease-out) .15s both;
}
.bcard-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ── Identity ── */
.bcard-identity {
  text-align: center;
  margin-bottom: 20px;
  animation: fadeUp .6s var(--ease-out) .25s both;
}
.bcard-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.bcard-title {
  font-size: .95rem;
  color: var(--teal-light);
  font-weight: 600;
  margin-bottom: 12px;
}
.bcard-company {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.bcard-company-logo {
  height: 20px;
  width: auto;
  border-radius: 4px;
}

/* ── Divider ── */
.bcard-divider {
  height: 1px;
  margin: 0 0 20px;
  background: linear-gradient(90deg, transparent, rgba(30,162,177,.2), transparent);
}

/* ── Contact details ── */
.bcard-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  animation: fadeUp .6s var(--ease-out) .35s both;
}
.bcard-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.04);
  text-decoration: none;
  color: inherit;
  transition: all .25s var(--ease-out);
}
.bcard-detail:hover {
  background: rgba(30,162,177,.06);
  border-color: rgba(30,162,177,.15);
  transform: translateX(4px);
}
.bcard-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal-muted), rgba(30,162,177,.06));
  border: 1px solid rgba(30,162,177,.12);
  color: var(--teal);
}
.bcard-detail-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.bcard-detail-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.bcard-detail-value {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
}

/* ── CTA Buttons ── */
.bcard-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  animation: fadeUp .6s var(--ease-out) .45s both;
}
.bcard-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .3s var(--ease-out);
}
.bcard-btn--primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(30,162,177,.3);
}
.bcard-btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 8px 30px rgba(30,162,177,.4);
  color: #fff;
}
.bcard-btn--secondary {
  background: transparent;
  color: var(--teal-light);
  border: 1px solid rgba(30,162,177,.25);
}
.bcard-btn--secondary:hover {
  background: rgba(30,162,177,.08);
  border-color: rgba(30,162,177,.4);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Footer ── */
.bcard-footer {
  text-align: center;
  padding-top: 4px;
  animation: fadeUp .6s var(--ease-out) .55s both;
}
.bcard-footer-link {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .03em;
  transition: color .2s;
}
.bcard-footer-link:hover {
  color: var(--teal-light);
}

/* ── Animations ── */
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes avatarIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes glowDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(15px, 10px); }
}

/* ── Responsive ── */
@media (max-width: 440px) {
  .bcard { padding: 0 20px 20px; }
  .bcard-accent { margin: 0 -20px 24px; }
  .bcard-name { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .card-wrapper { opacity: 1; }
}