/* Michael Vereb - Connect Modal Design System (Updated) */

:root {
  --mv-orange: #ed5f45;
  --mv-orange-bg: rgba(237, 95, 69, 0.06);
  --mv-orange-glow: rgba(237, 95, 69, 0.15);
  --mv-border: #cccccc;
  --mv-title: #333333;
  --mv-subtitle: #808080;
}

.mv-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.7) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mv-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal Wrapper */
.mv-modal-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  width: 100%;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.mv-modal-backdrop.is-open .mv-modal-wrapper {
  transform: scale(1) translateY(0);
}

/* Modal Card */
.mv-modal-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0px 12px 40px rgba(0, 0, 0, 0.18), 0px 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* Base Option Card */
.mv-card {
  box-sizing: border-box;
  border: 1px solid var(--mv-border);
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: border-color 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
}

/* Orange hover border state requested by Michael */
.mv-card:hover,
.mv-card:focus-visible {
  border-color: var(--mv-orange) !important;
  transform: translateY(-2px);
  box-shadow: 0px 6px 22px var(--mv-orange-glow);
}

.mv-card:active {
  transform: translateY(0);
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.06);
}

/* Row 1: Large full-width Email card */
.mv-card-email-full {
  width: 100%;
  padding: 28px 32px;
  min-height: 128px;
}

/* Row 2: 2-column container for LinkedIn and Google Meet */
.mv-row-two-col {
  display: flex;
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

.mv-card-half {
  flex: 1;
  padding: 28px 32px;
  min-height: 132px;
}

/* Card Header Row */
.mv-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* Platform Icon inside Card */
.mv-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f7f7f8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222222;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease;
}

.mv-card:hover .mv-card-icon {
  background: var(--mv-orange-bg);
  color: var(--mv-orange);
}

.mv-card-icon svg {
  display: block;
}

/* Card Title */
.mv-card-title {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--mv-title);
  margin: 0;
  white-space: nowrap;
}

/* "Popular" Badge */
.mv-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mv-orange-bg);
  padding: 4px 9px;
  border-radius: 6.4px;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.4px;
  line-height: 1;
  color: var(--mv-orange);
  white-space: nowrap;
}

/* Card Subtitle */
.mv-card-subtitle {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.4px;
  color: var(--mv-subtitle);
  margin: 0;
  width: 100%;
  word-break: break-word;
  transition: color 0.18s ease;
}

.mv-card:hover .mv-card-subtitle {
  color: #444444;
}

/* Copied to clipboard Toast */
.mv-modal-copy-toast {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #111111;
  color: #ffffff;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.mv-modal-copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Row 3: Icon-Only Social Platforms Row */
.mv-socials-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding-top: 18px;
  margin-top: 4px;
  border-top: 1px solid #f0f0f2;
  box-sizing: border-box;
}

.mv-social-icon-btn {
  width: 52px;
  height: 52px;
  border: 1px solid var(--mv-border);
  border-radius: 12px;
  background: #ffffff;
  color: #333333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

/* Orange border on hover for social icons as well */
.mv-social-icon-btn:hover,
.mv-social-icon-btn:focus-visible {
  border-color: var(--mv-orange) !important;
  color: var(--mv-orange);
  transform: translateY(-2px);
  box-shadow: 0px 4px 14px var(--mv-orange-glow);
}

.mv-social-icon-btn:active {
  transform: translateY(0);
}

.mv-social-icon-btn svg {
  display: block;
}

/* Floating White Close Button ("X") - Absolute, 5% top right & 5% right margin */
.mv-modal-close-btn {
  position: fixed;
  top: 5%;
  right: 5%;
  z-index: 100005;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  outline: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.mv-modal-close-btn:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

.mv-modal-close-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 50%;
}

.mv-modal-close-btn svg {
  display: block;
  width: 48px;
  height: 48px;
}

.mv-modal-close-btn svg path {
  stroke: #ffffff !important;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .mv-modal-card {
    padding: 28px 20px;
    border-radius: 20px;
  }
  .mv-row-two-col {
    flex-direction: column;
    gap: 12px;
  }
  .mv-card-half,
  .mv-card-email-full {
    padding: 22px 20px;
    min-height: auto;
  }
  .mv-card-title {
    font-size: 24px;
  }
  .mv-card-subtitle {
    font-size: 16px;
  }
  .mv-card-icon {
    width: 32px;
    height: 32px;
  }
  .mv-socials-row {
    gap: 10px;
    flex-wrap: wrap;
  }
  .mv-social-icon-btn {
    width: 46px;
    height: 46px;
  }
  .mv-modal-close-btn {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  .mv-modal-close-btn svg {
    width: 40px;
    height: 40px;
  }
}
