/* ============================================================
   CerfLand Media — Cerfi Widget Page Styles v1.0
   Ultra-Luxe · ElevenLabs Convai Integration
   ============================================================ */

/* ---- HERO SECTION ---- */
.cerfi-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--cl-black);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cerfi-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cerfi-hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cerfi-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 200;
  color: var(--cl-white);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: var(--space-sm) 0;
}

.cerfi-hero__lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--cl-muted);
  line-height: 1.75;
  max-width: 560px;
  margin: var(--space-md) auto 0;
  font-weight: 300;
}

/* ---- WIDGET SECTION ---- */
.cerfi-widget-section {
  padding: var(--space-xl) 0;
  background: var(--cl-black);
}

.cerfi-widget-wrapper {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* Status indicator */
.cerfi-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-caps);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cl-gold);
}

.cerfi-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: cerfiPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes cerfiPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 16px rgba(74, 222, 128, 0.9); }
}

/* Widget frame */
.cerfi-widget-frame {
  width: 100%;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 2px;
  background: #0d0d0d;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(201, 168, 76, 0.08);
}

/* Corner accents */
.cerfi-widget-frame::before,
.cerfi-widget-frame::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(201, 168, 76, 0.4);
  border-style: solid;
  z-index: 2;
}

.cerfi-widget-frame::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.cerfi-widget-frame::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.cerfi-widget-inner {
  padding: 3rem 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

/* ElevenLabs widget customization */
elevenlabs-convai {
  --elevenlabs-convai-button-color: #c9a84c;
  --elevenlabs-convai-button-text-color: #0a0a0a;
  display: block;
  width: 100%;
}

/* Privacy note */
.cerfi-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--cl-muted);
  line-height: 1.6;
  max-width: 560px;
  text-align: center;
  padding: 0 var(--space-sm);
}

.cerfi-privacy-note svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: rgba(201, 168, 76, 0.5);
}

.cerfi-privacy-note a {
  color: rgba(201, 168, 76, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.cerfi-privacy-note a:hover {
  color: var(--cl-gold);
}

/* ---- INFO SECTION ---- */
.cerfi-info-section {
  padding: var(--space-xl) 0;
}

.cerfi-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.cerfi-info-item {
  text-align: center;
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s;
}

.cerfi-info-item:hover {
  border-color: rgba(201, 168, 76, 0.2);
}

.cerfi-info-item__icon {
  font-size: 1.5rem;
  color: var(--cl-gold);
  margin-bottom: var(--space-sm);
  display: block;
}

.cerfi-info-item__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--cl-white);
  margin-bottom: 0.75rem;
}

.cerfi-info-item__text {
  font-size: 0.9rem;
  color: var(--cl-muted);
  line-height: 1.7;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .cerfi-widget-inner {
    padding: 2rem 1.5rem;
    min-height: 350px;
  }

  .cerfi-info-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .cerfi-privacy-note {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .cerfi-hero__title {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .cerfi-widget-inner {
    padding: 1.5rem 1rem;
    min-height: 300px;
  }

  .cerfi-widget-frame::before,
  .cerfi-widget-frame::after {
    width: 12px;
    height: 12px;
  }
}

/* ---- PREFERS-REDUCED-MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  .cerfi-status__dot {
    animation: none;
  }
}
