/* ==========================================================================
   Friends Video Call - Redirect Page Stylesheet
   ========================================================================== */

:root {
  --bg-dark: #090a0f;
  --card-bg: rgba(18, 20, 32, 0.7);
  --card-border: rgba(255, 255, 255, 0.12);
  --primary-glow: #6366f1;
  --secondary-glow: #a855f7;
  --accent-cyan: #06b6d4;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-lg: 24px;
  --radius-sm: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  padding: 20px;
}

/* Ambient Background Glow Effects */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  animation: floatPulse 10s infinite alternate ease-in-out;
}

.glow-1 {
  width: 450px;
  height: 450px;
  background: var(--primary-glow);
  top: -100px;
  left: -100px;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary-glow);
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
}

.glow-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-cyan);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.25;
}

@keyframes floatPulse {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(30px, -20px); }
}

/* Main Container & Glassmorphism Card */
.redirect-container {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 10;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7),
              0 0 30px rgba(99, 102, 241, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Live Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #a5b4fc;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: dotBlink 1.4s infinite ease-in-out;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Video Camera Visual & Pulse Rings */
.avatar-ring-container {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  pointer-events: none;
}

.avatar-ring-outer {
  width: 100%;
  height: 100%;
  border-color: rgba(168, 85, 247, 0.4);
  animation: ringExpand 2.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.avatar-ring-inner {
  width: 82%;
  height: 82%;
  border-color: rgba(99, 102, 241, 0.6);
  animation: ringExpand 2.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1) 0.6s;
}

@keyframes ringExpand {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

.avatar-box {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
  position: relative;
  z-index: 2;
}

.video-icon-wrapper {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cam-icon {
  width: 32px;
  height: 32px;
  animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Headings */
.main-heading {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8, #c084fc, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subhead {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: -12px;
}

/* Timer Section with Circular SVG Progress */
.timer-section {
  position: relative;
  margin: 6px 0;
}

.svg-timer {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-timer svg {
  transform: rotate(-90deg);
}

.timer-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.timer-progress {
  fill: none;
  stroke: url(#gradientStroke);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.72; /* 2 * PI * r = 2 * PI * 52 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

/* Fallback gradient styling via SVG or CSS */
.timer-progress {
  stroke: #818cf8;
}

.timer-number {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Primary Button CTA */
.action-wrapper {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #9333ea);
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(147, 51, 234, 0.6);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.feature-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
}

/* Fallback Footer */
.fallback-note {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: -4px;
}

.fallback-note a {
  color: #818cf8;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.fallback-note a:hover {
  color: #c084fc;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .glass-card {
    padding: 32px 20px;
    gap: 20px;
  }

  .main-heading {
    font-size: 1.85rem;
  }

  .subhead {
    font-size: 0.88rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature-item {
    flex-direction: row;
    justify-content: center;
  }
}
