/* ============================================================
   CrowdCut Bug Fix & Improvements Styles - Round 1
   - Global search bar
   - Social proof stats bar
   - Countdown timers
   - Geo prompt fix
   ============================================================ */

/* ── Global Search Bar ─────────────────────────────────── */
.global-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.global-search-toggle {
  background: none;
  border: none;
  color: var(--color-text-muted, #8b8b9e);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
}

.global-search-toggle:hover {
  color: #ff2d78;
  background: rgba(255, 45, 120, 0.08);
}

.global-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-width: 90vw;
  background: #151520;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  overflow: hidden;
  animation: searchDropIn 0.2s ease;
}

@keyframes searchDropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.global-search-input {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #f0f0f5;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.global-search-input::placeholder {
  color: #5a5a6e;
}

.global-search-results {
  max-height: 360px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: #f0f0f5;
  transition: background 0.15s;
  cursor: pointer;
}

.search-result-item:hover {
  background: rgba(255, 45, 120, 0.06);
}

.search-result-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 12px;
  color: #8b8b9e;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-no-results {
  padding: 24px 16px;
  text-align: center;
  color: #5a5a6e;
  font-size: 14px;
}

/* ── Social Proof Stats Bar ─────────────────────────────── */
.social-proof-bar {
  background: linear-gradient(135deg, rgba(255, 45, 120, 0.06) 0%, rgba(0, 229, 255, 0.04) 100%);
  border-top: 1px solid rgba(255, 45, 120, 0.12);
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
  padding: 20px 0;
  animation: proofFadeIn 0.6s ease;
}

@keyframes proofFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.social-proof-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}

.proof-number {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff2d78, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.proof-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8b8b9e;
  font-weight: 500;
}

.proof-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Countdown Timers ───────────────────────────────────── */
[data-event-date] {
  font-size: 12px;
  font-weight: 600;
  color: #00e5ff;
  letter-spacing: 0.5px;
}

.countdown-live {
  color: #ff2d78 !important;
  animation: countdownPulse 2s infinite;
}

@keyframes countdownPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ── Mobile Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .global-search-dropdown {
    width: calc(100vw - 32px);
    right: -60px;
  }
  
  .social-proof-inner {
    gap: 16px;
  }
  
  .proof-number {
    font-size: 20px;
  }
  
  .proof-label {
    font-size: 10px;
  }
  
  .proof-divider {
    display: none;
  }
  
  .proof-stat {
    min-width: 60px;
  }
}

@media (max-width: 480px) {
  .social-proof-inner {
    gap: 12px;
  }
  
  .proof-stat {
    min-width: 50px;
  }
  
  .proof-number {
    font-size: 18px;
  }
}
