/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at center, #ffffff 0%, #e5e5ea 60%, #a1a1a5 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 40px 20px;
}

/* No decorative corner text */

/* Page Container */
.page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  z-index: 5;
}

/* Profile Card */
.profile-card {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: 40px;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: auto;
}

.profile-card:hover {
  transform: translateY(-5px);
}

/* Cover Banner */
.cover-banner {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.cover-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.15) 100%);
  pointer-events: none; /* Allows clicks to pass through to underlying elements */
}

/* Social Icons Overlay on Cover Banner */
.cover-socials {
  position: absolute;
  top: 20px;   /* Relocated to top right to avoid overlap and click blockage */
  right: 30px;
  display: flex;
  gap: 12px;
  z-index: 4;   /* Ensure high z-index layered on top */
}

.cover-socials a {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.cover-socials a:hover {
  color: #ffffff;
  background: rgba(77, 162, 218, 0.85); /* Spinnify Blue */
  transform: scale(1.1);
}

.cover-social-icon {
  display: block;
}

/* Card Header Row (Avatar + Follow/Call Button) */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 30px;
  margin-top: -55px; /* Pulls the row up to overlap the banner */
  position: relative;
  z-index: 3;
}

/* Circular Avatar */
.avatar-container {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.avatar-bg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #4da2da; /* Spinnify brand blue */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.avatar-container:hover .avatar-bg {
  transform: rotate(10deg) scale(1.05);
}

.avatar-icon {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

/* Primary CTA Button (matches Follow button in reference) */
.header-action-container {
  margin-bottom: 8px;
}

.primary-action-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 44px;
  padding: 0 32px;
  border-radius: 22px;
  background-color: #0f172a; /* Slate 900 */
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.primary-action-btn:hover {
  background-color: #4da2da; /* Matches logo blue on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(77, 162, 218, 0.3);
}

.primary-action-btn:active {
  transform: translateY(0);
}

/* Card Body */
.card-body {
  padding: 24px 30px 40px 30px;
}

/* Brand Title & Logo Container */
.brand-logo-container {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 24px; /* Compact brand logo height */
  width: auto;
  display: block;
}

/* Handle/Link */
.brand-handle {
  margin-top: 2px;
  margin-bottom: 18px;
}

.brand-handle a {
  font-size: 14px;
  font-weight: 500;
  color: #64748b; /* Cool gray */
  text-decoration: none;
  transition: color 0.2s ease;
}

.brand-handle a:hover {
  color: #4da2da;
}

/* Description/Bio */
.brand-description {
  font-size: 14.5px;
  line-height: 1.6;
  color: #475569; /* Slate 600 */
  margin-bottom: 28px;
  font-weight: 400;
}

/* CTA Buttons / Actions List */
.actions-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Action Button Card */
.action-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.action-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.action-icon {
  width: 22px;
  height: 22px;
}

.action-text {
  flex-grow: 1;
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.action-label {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.action-value {
  font-size: 12px;
  color: #64748b;
  font-weight: 400;
}

.action-arrow {
  color: #94a3b8;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

/* Action Hover & Accent Styling */
.action-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.03);
}

.action-item:hover .action-arrow {
  transform: translateX(4px);
  color: #0f172a;
}

.action-item:hover .action-icon-wrapper {
  transform: scale(1.05);
}

/* 1. WhatsApp Button Styling */
.whatsapp-btn .action-icon-wrapper {
  background-color: #e8f5e9;
  color: #2e7d32;
}
.whatsapp-btn:hover {
  background-color: #f1fcf2;
  border-color: #a5d6a7;
}

/* 2. Location Button Styling */
.location-btn .action-icon-wrapper {
  background-color: #fee2e2;
  color: #ef4444;
}
.location-btn:hover {
  background-color: #fff5f5;
  border-color: #fca5a5;
}

/* 3. Call Button Styling */
.call-btn .action-icon-wrapper {
  background-color: #e0f2fe;
  color: #0288d1;
}
.call-btn:hover {
  background-color: #f0f9ff;
  border-color: #bae6fd;
}

/* 4. Website Button Styling */
.website-btn .action-icon-wrapper {
  background-color: #eff6ff;
  color: #4da2da;
}
.website-btn:hover {
  background-color: #f5f9ff;
  border-color: #90caf9;
}

/* Responsive Scaling for Mobiles & Layout Adjustments */
@media (max-width: 640px) {
  body {
    padding: 15px;
    background: radial-gradient(circle at center, #ffffff 0%, #e5e5ea 100%);
  }

  .profile-card {
    border-radius: 32px;
    max-width: 480px;
  }

  .actions-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cover-banner {
    height: 180px;
  }

  .card-header-row {
    padding: 0 20px;
    margin-top: -45px;
  }

  .avatar-container {
    width: 90px;
    height: 90px;
    padding: 4px;
    border-width: 4px;
  }

  .primary-action-btn {
    height: 38px;
    padding: 0 24px;
    font-size: 13px;
  }

  .card-body {
    padding: 20px 20px 30px 20px;
  }

  .brand-logo {
    height: 18px; /* Compact logo height on mobile screens */
  }

  .brand-description {
    font-size: 13.5px;
    margin-bottom: 22px;
  }

  .action-item {
    padding: 14px 16px;
    border-radius: 16px;
  }

  .action-icon-wrapper {
    width: 38px;
    height: 38px;
  }

  .action-icon {
    width: 18px;
    height: 18px;
  }

  .action-label {
    font-size: 14px;
  }

  .action-value {
    font-size: 11px;
  }
}
