/* ==================== CARD PAGE - Enhanced ==================== */
.card-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #f0f2f5;
}

.business-card {
  background: white;
  border-radius: 28px;
  max-width: 440px;
  width: 100%;
  overflow: visible;
  position: relative;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  animation: cardSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.business-card > .card-banner {
  border-radius: 28px 28px 0 0;
  overflow: hidden;
}

@keyframes cardSlideIn {
  from { transform: translateY(30px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Dark style */
.card-style-dark .business-card {
  background: #111827;
  color: #f3f4f6;
}

.card-style-dark .card-body { color: #f3f4f6; }
.card-style-dark .card-name { color: #ffffff; }
.card-style-dark .card-job { color: #9ca3af; }
.card-style-dark .card-description { color: #9ca3af; }
.card-style-dark .card-info li { color: #d1d5db; border-color: #1f2937; }
.card-style-dark .card-info a { color: #d1d5db; }
.card-style-dark .card-hours { background: #1f2937; border-color: #374151; }
.card-style-dark .card-hours-title { color: #f3f4f6; }
.card-style-dark .card-hours-text { color: #9ca3af; }
.card-style-dark .btn-share { background: #1f2937; color: #f3f4f6; }
.card-style-dark .card-qr p { color: #6b7280; }
.card-style-dark .card-date { color: #6b7280; border-color: #1f2937; }
.card-style-dark .card-tagline { color: #9ca3af; }

/* Bold style */
.card-style-bold .card-banner { height: 160px; }
.card-style-bold .card-name { font-size: 1.9rem; letter-spacing: -0.5px; }

/* Elegant style */
.card-style-elegant .business-card { border-radius: 4px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.card-style-elegant .card-name { letter-spacing: 2px; text-transform: uppercase; font-size: 1.3rem; }
.card-style-elegant .card-photo-container .card-photo,
.card-style-elegant .card-photo-container .card-photo-placeholder { border-width: 3px; }

/* Font styles */
.font-serif { font-family: Georgia, 'Times New Roman', serif; }
.font-serif .card-name { font-family: Georgia, 'Times New Roman', serif; }
.font-mono { font-family: 'SF Mono', 'Fira Code', monospace; }
.font-mono .card-name { font-family: 'SF Mono', 'Fira Code', monospace; }

/* ==================== BANNER ==================== */
.card-banner {
  height: 140px;
  position: relative;
  overflow: hidden;
}

.banner-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 50px;
}

.card-style-dark .banner-wave path { fill: #111827; }

.card-photo-container {
  position: absolute;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.card-photo {
  width: 104px;
  height: 104px;
  border: 4px solid white;
  object-fit: cover;
  background: #e5e7eb;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.card-photo:hover { transform: scale(1.05); }

.card-photo-placeholder {
  width: 104px;
  height: 104px;
  border: 4px solid white;
  background: linear-gradient(135deg, #e0e7ff, #ddd6fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card-style-dark .card-photo,
.card-style-dark .card-photo-placeholder { border-color: #111827; }

/* Photo shapes */
.photo-round .card-photo,
.photo-round .card-photo-placeholder { border-radius: 50%; }
.photo-rounded .card-photo,
.photo-rounded .card-photo-placeholder { border-radius: 20px; }
.photo-square .card-photo,
.photo-square .card-photo-placeholder { border-radius: 8px; }

/* ==================== CARD BODY ==================== */
.card-body {
  padding: 64px 28px 28px;
  text-align: center;
}

.card-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.2;
}

.card-job {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 2px;
}

.card-company {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-tagline {
  font-size: 0.9rem;
  color: #94a3b8;
  font-style: italic;
  margin-bottom: 14px;
  padding: 0 16px;
}

.card-description {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 8px;
}

/* ==================== HOURS ==================== */
.card-hours {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.card-hours-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0f172a;
}

.card-hours-title svg {
  flex-shrink: 0;
  vertical-align: middle;
}

.card-hours-text {
  font-family: inherit;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

/* ==================== CONTACT INFO ==================== */
.card-info {
  list-style: none;
  text-align: left;
  margin-bottom: 20px;
  padding: 0;
}

.card-info li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92rem;
  color: #374151;
  transition: background 0.15s;
}

.card-info li:last-child { border-bottom: none; }

.card-info li:hover { background: #f8fafc; margin: 0 -12px; padding: 12px 12px; border-radius: 12px; }

.card-info .info-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-info .info-icon svg {
  flex-shrink: 0;
}

.card-info a {
  color: inherit;
  text-decoration: none;
  word-break: break-word;
  font-weight: 500;
}

.card-info a:hover { text-decoration: underline; }

/* ==================== SOCIALS ==================== */
.card-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.social-btn svg {
  flex-shrink: 0;
}

.social-btn.facebook { background: #1877f2; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.linkedin { background: #0a66c2; }
.social-btn.tiktok { background: #000000; }
.social-btn.whatsapp { background: #25d366; }
.social-btn.youtube { background: #ff0000; }
.social-btn.twitter { background: #000000; }
.social-btn.snapchat { background: #fffc00; color: #000; }
.social-btn.telegram { background: #229ed9; }

/* ==================== CTA BUTTON ==================== */
.card-cta-btn {
  display: block;
  padding: 16px 24px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: white;
  margin-bottom: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  animation: ctaPulse 2s infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
  50% { box-shadow: 0 6px 24px rgba(0,0,0,0.25); }
}

.card-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

/* ==================== ACTION BUTTONS ==================== */
.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.card-actions a,
.card-actions button {
  flex: 1;
  min-width: 100px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card-actions a:hover,
.card-actions button:hover {
  transform: translateY(-2px);
}

.btn-save-contact {
  background: linear-gradient(135deg, var(--theme-color, #2563eb), var(--theme-color2, #1e40af));
  color: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.btn-share {
  background: #f1f5f9;
  color: #374151;
}

.btn-call {
  background: #10b981;
  color: white;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
}

/* ==================== QR CODE ==================== */
.card-qr {
  margin-top: 16px;
  text-align: center;
  padding: 16px;
  background: #f8fafc;
  border-radius: 16px;
}

.card-style-dark .card-qr { background: #1f2937; }

.card-qr img {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card-qr p {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 8px;
}

.card-date {
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

/* ==================== BRANDING ==================== */
.card-branding {
  margin-top: 20px;
  text-align: center;
}

.card-branding a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.card-branding a:hover { color: #2563eb; }
.card-branding strong { color: #64748b; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 500px) {
  .card-page { padding: 12px 8px; }
  .business-card { border-radius: 20px; }
  .card-body { padding: 56px 20px 20px; }
  .card-name { font-size: 1.5rem; }
  .card-actions { flex-direction: column; }
}
