@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --card-bg: #161616;
  --card-surface: #1e1e1e;
  --card-border: rgba(255, 255, 255, 0.12);
  --card-text-primary: #ffffff;
  --card-text-secondary: #aaaaaa;
  --card-gold: #d4af37;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background-color: #161616;
  font-family: 'Outfit', 'Inter', sans-serif;
}

#app {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
}

/* Page Layout Wrapper - Scoped to Public Card */
.card-layout-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  background-color: #161616 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Mobile-First Full-Bleed Card Container */
.public-card-container {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  background: #161616 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  padding: 16px 20px 16px 20px !important;
  position: relative !important;
  overflow: hidden !important;
  margin: 0 auto !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

/* Desktop Luxury Centered Card Container */
@media (min-width: 576px) {
  html, body {
    background-color: #0a0a0a;
  }

  .card-layout-wrapper {
    background-color: #0a0a0a !important;
    padding: 30px 0 !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: auto !important;
  }

  .public-card-container {
    max-width: 460px !important;
    height: auto !important;
    max-height: 92vh !important;
    min-height: auto !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 30px 80px rgba(0,0,0,0.9) !important;
    padding: 40px 32px 30px 32px !important;
    background: #161616 !important;
  }
}

/* Architectural Top Vertical Line */
.card-top-line {
  width: 1px;
  height: 45px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.7));
  margin-bottom: 8px;
  flex-shrink: 0;
}

/* Monogram Logo / Avatar Wrapper */
.card-monogram-wrapper {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #252525, #121212);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
  margin-bottom: 16px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.card-monogram-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent, rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-monogram-initials {
  font-family: 'Cinzel', serif;
  font-size: 2.3rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
  user-select: none;
}

.card-logo-img {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.card-avatar-photo {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Header Info - Classic Spaced Typography */
.card-header-info {
  text-align: center;
  margin-bottom: 14px;
  width: 100%;
  flex-shrink: 0;
}

.card-full-name {
  font-family: 'Cinzel', 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.card-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #dddddd;
  margin: 0;
}

.card-company-name {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
}

/* Primary Action Buttons */
.card-actions-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.card-btn-primary {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: #ffffff;
  color: #121212;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 1px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 25px rgba(255,255,255,0.15);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.card-btn-primary:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.card-contact-lines {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.card-info-link {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: #e0e0e0;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: all 0.2s ease;
  word-break: break-all;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.card-info-link:hover, .card-info-link:active {
  color: #ffffff;
  background: transparent;
}

/* User Loved Bio / Description Box */
.card-bio-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #e5e5e5;
  text-align: center;
  box-sizing: border-box;
  flex-shrink: 1;
}
}

/* Side by Side Action Buttons (QR Göster | Kartı Paylaş) */
.card-action-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin: 14px auto 8px auto;
  box-sizing: border-box;
}

.card-action-btn {
  flex: 1 1 0;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e0e0e0;
  background: transparent;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.card-action-btn:hover, .card-action-btn:active {
  color: #ffffff;
}

.card-action-divider {
  width: 1px;
  height: 35px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.7), transparent);
  margin: 0;
  flex-shrink: 0;
}

.card-action-separator {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
}

/* Social Links Grid */
.card-social-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  margin-bottom: 14px;
}

.card-social-pill {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.2s ease;
}

.card-social-pill:hover {
  background: #ffffff;
  color: #121212;
  transform: scale(1.05);
}

.card-social-pill:active {
  background: #ffffff;
  color: #121212;
  transform: scale(0.95);
}

/* Card Footer Area (Action Buttons + Brand Tag) */
.card-footer-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding-top: 14px;
  box-sizing: border-box;
}

.card-action-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 6px auto;
  box-sizing: border-box;
}

/* Footer Minimal Brand Tag */
.card-brand-footer {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  text-decoration: none;
  margin: 0;
}

/* QR Code Modal Overlay */
.qr-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.qr-modal-content {
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.9);
}

.qr-image {
  width: 200px;
  height: 200px;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  margin: 16px 0;
}
