/**
 * Firetalk Features Page Stylesheet
 * 1-to-1 visual fidelity matching Paltalk's reference design:
 * - Centered title: "Get the most out of Firetalk"
 * - 3-column interactive showcase (Left 3 features, Center Smartphone Mockup, Right 3 features)
 * - Elevated active feature card with floating directional arrow indicator
 * - Interactive multi-screen smartphone device displaying rich feature previews
 * - "Get Started for Free" pill action buttons
 */

/* ==========================================================================
   PAGE HERO & TITLE
   ========================================================================== */
.features-page-main {
  background-color: #ffffff;
  padding: 52px 0 90px;
  overflow: hidden;
  position: relative;
}

/* Brand logo size guard */
img.brand-icon {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  object-fit: contain !important;
}

.features-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.features-title {
  font-size: 40px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin: 0 0 10px 0;
}

.features-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
  margin: 0;
  letter-spacing: -0.1px;
}

/* ==========================================================================
   3-COLUMN INTERACTIVE SHOWCASE
   ========================================================================== */
.features-showcase-container {
  display: grid;
  grid-template-columns: 1fr 340px 1fr;
  align-items: center;
  gap: 52px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Left & Right Columns (both left-aligned matching reference) */
.features-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.features-col-left,
.features-col-right {
  align-items: flex-start;
  text-align: left;
}

/* Feature Item */
.feat-item {
  width: 100%;
  max-width: 360px;
  padding: 18px 20px;
  border-radius: 18px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.feat-item:hover:not(.active) {
  background-color: #f8fafc;
  transform: translateY(-2px);
}

/* Active State (Elevated Card exactly like reference) */
.feat-item.active {
  background: #ffffff;
  border: 1px solid rgba(0, 132, 255, 0.16);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  padding: 22px 22px 20px;
}

/* Arrow indicator pointing to the center phone */
.features-col-right .feat-item.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 12px solid #ffffff;
  filter: drop-shadow(-3px 0 3px rgba(15, 23, 42, 0.05));
  z-index: 5;
}

.features-col-left .feat-item.active::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #ffffff;
  filter: drop-shadow(3px 0 3px rgba(15, 23, 42, 0.05));
  z-index: 5;
}

/* Feature Icon */
.feat-icon-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
  color: #1e293b;
  transition: color 0.2s ease;
}

.feat-item.active .feat-icon-wrap {
  color: #0084ff;
}

.feat-icon-svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Feature Headings & Text */
.feat-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
  margin: 0 0 7px 0;
  transition: color 0.2s ease;
}

.feat-item.active .feat-title {
  color: #0084ff;
}

.feat-desc {
  font-size: 12.8px;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 14px 0;
}

/* Pill Button "Get Started for Free" */
.feat-pill-btn {
  display: inline-block;
  padding: 7px 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  color: #0084ff;
  border: 1.5px solid #90caff;
  background-color: transparent;
  transition: all 0.2s ease;
}

.feat-pill-btn:hover {
  background-color: #0084ff;
  color: #ffffff;
  border-color: #0084ff;
  box-shadow: 0 3px 10px rgba(0, 132, 255, 0.25);
}

.feat-item.active .feat-pill-btn {
  border-color: #0084ff;
  background-color: #e7f3ff;
}

.feat-item.active .feat-pill-btn:hover {
  background-color: #0084ff;
  color: #ffffff;
}

/* ==========================================================================
   CENTER SMARTPHONE DEVICE MOCKUP
   ========================================================================== */
.features-col-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.phone-mockup-frame {
  width: 336px;
  height: 640px;
  background: #1f2327;
  border-radius: 46px;
  padding: 14px;
  position: relative;
  box-shadow: 0 28px 65px rgba(15, 23, 42, 0.22), 0 6px 20px rgba(15, 23, 42, 0.12);
  border: 4px solid #33383f;
}

/* Speaker slit & camera at top */
.phone-top-bar {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.phone-speaker-slit {
  width: 52px;
  height: 4px;
  background: #3f4650;
  border-radius: 999px;
}

.phone-camera-lens {
  width: 8px;
  height: 8px;
  background: #111417;
  border-radius: 50%;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Home Button at bottom */
.phone-home-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #3a414b;
  background: #1a1e22;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Inner Screen Display */
.phone-screen {
  width: 100%;
  height: 554px;
  border-radius: 34px;
  overflow: hidden;
  background-color: #0084ff;
  position: relative;
  color: #ffffff;
}

/* Screen Stage for switching features */
.screen-content {
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.screen-content.active {
  display: flex;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   SCREEN 1: CHAT ANYWHERE, ANYTIME (Hero default in reference screenshot)
   -------------------------------------------------------------------------- */
.screen-anywhere {
  background: linear-gradient(180deg, #0084ff 0%, #0066cc 100%);
  padding: 42px 20px 20px;
  text-align: center;
  justify-content: space-between;
}

.screen-anywhere-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 20px;
}

.screen-platforms-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.platform-pill-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.platform-pill-circle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.platform-pill-circle span {
  font-size: 8px;
  font-weight: 700;
  margin-top: 2px;
  text-transform: capitalize;
  opacity: 0.85;
}

.screen-anywhere-mockup {
  position: relative;
  width: 100%;
  margin-top: auto;
  padding-bottom: 12px;
}

.mockup-laptop {
  background: #ffffff;
  border-radius: 8px 8px 0 0;
  border: 2px solid #0f172a;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.mockup-laptop-bar {
  background: #f1f5f9;
  height: 14px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 3px;
  border-bottom: 1px solid #e2e8f0;
}

.mockup-laptop-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mockup-laptop-body {
  height: 140px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 80px 1fr;
  font-size: 9px;
  color: #334155;
  text-align: left;
}

.mockup-sidebar {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-room-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  font-size: 8px;
  font-weight: 700;
}

.mockup-chat-area {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.mockup-laptop-base {
  height: 6px;
  background: #64748b;
  border-radius: 0 0 12px 12px;
  margin: 0 -10px;
}

.mockup-floating-phone {
  position: absolute;
  right: -4px;
  bottom: 10px;
  width: 95px;
  height: 170px;
  background: #0f172a;
  border-radius: 16px;
  border: 2px solid #475569;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.floating-phone-screen {
  background: #ffffff;
  flex: 1;
  display: flex;
  flex-direction: column;
  color: #0f172a;
}

.phone-cam-top {
  height: 55px;
  background: #1e293b;
  position: relative;
  overflow: hidden;
}

.phone-cam-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-chat-bottom {
  flex: 1;
  padding: 4px;
  font-size: 7px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

/* --------------------------------------------------------------------------
   SCREEN 2: VIDEO CHAT ROOMS
   -------------------------------------------------------------------------- */
.screen-video {
  background: #0f172a;
  padding: 34px 14px 16px;
  justify-content: space-between;
}

.screen-header-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.screen-header-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.screen-live-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.video-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  flex: 1;
  margin-bottom: 12px;
}

.video-tile {
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1.5px solid #334155;
}

.video-tile.active-speaker {
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.video-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-overlay-name {
  position: absolute;
  bottom: 4px;
  left: 6px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.6);
  padding: 1px 6px;
  border-radius: 4px;
}

.screen-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(30, 41, 59, 0.85);
  border-radius: 999px;
  padding: 8px 16px;
}

.control-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.control-icon-circle.danger {
  background: #ef4444;
}

/* --------------------------------------------------------------------------
   SCREEN 3: VARIETY OF LIVE CHAT ROOMS
   -------------------------------------------------------------------------- */
.screen-rooms {
  background: #f8fafc;
  padding: 34px 14px 16px;
  color: #0f172a;
}

.screen-rooms-header {
  margin-bottom: 12px;
  text-align: left;
}

.screen-rooms-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.screen-rooms-search {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  width: 100%;
  outline: none;
}

.screen-rooms-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.screen-room-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.screen-room-card img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.screen-room-card-info {
  flex: 1;
  min-width: 0;
}

.screen-room-card-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-room-card-meta {
  font-size: 9.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   SCREEN 4: MEANINGFUL CONVERSATIONS
   -------------------------------------------------------------------------- */
.screen-chat {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 14px 14px;
  color: #0f172a;
}

.screen-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.screen-chat-header img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.screen-chat-header-text {
  text-align: left;
}

.screen-chat-name {
  font-size: 12px;
  font-weight: 800;
}

.screen-chat-status {
  font-size: 9px;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 3px;
}

.screen-chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  overflow: hidden;
}

.bubble-received {
  align-self: flex-start;
  background: #f1f5f9;
  color: #0f172a;
  padding: 8px 12px;
  border-radius: 14px 14px 14px 2px;
  font-size: 11px;
  max-width: 80%;
  text-align: left;
}

.bubble-sent {
  align-self: flex-end;
  background: #0084ff;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 14px 14px 2px 14px;
  font-size: 11px;
  max-width: 80%;
  text-align: left;
}

.screen-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 12px;
}

.screen-chat-input-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 11px;
  flex: 1;
}

/* --------------------------------------------------------------------------
   SCREEN 5: LISTEN & WATCH TOGETHER
   -------------------------------------------------------------------------- */
.screen-media {
  background: #0f172a;
  display: flex;
  flex-direction: column;
  padding: 34px 14px 16px;
  color: #ffffff;
}

.screen-media-stage {
  height: 180px;
  background: #000000;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

.screen-media-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.media-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.6);
}

.media-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
}

.media-progress-fill {
  width: 65%;
  height: 100%;
  background: #0084ff;
}

.media-listeners-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-listener-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  padding: 6px 10px;
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   SCREEN 6: FUN GIFTS AND STICKERS
   -------------------------------------------------------------------------- */
.screen-gifts {
  background: linear-gradient(180deg, #2e1065 0%, #4c1d95 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 14px 16px;
  color: #ffffff;
}

.gift-banner-celebration {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
}

.gift-sender-line {
  font-size: 11px;
  font-weight: 700;
  color: #fef08a;
}

.gift-trophy-display {
  font-size: 42px;
  margin: 8px 0;
  animation: giftBounce 2s infinite ease-in-out;
}

@keyframes giftBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.1); }
}

.gift-tray-grid {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gift-item-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gift-item-box:hover {
  background: rgba(2, 132, 199, 0.4);
  border-color: #38bdf8;
}

.gift-emoji {
  font-size: 22px;
  display: block;
  margin-bottom: 2px;
}

.gift-cost {
  font-size: 8.5px;
  font-weight: 800;
  color: #fde047;
}

/* ==========================================================================
   BOTTOM CTA BANNER SECTION
   ========================================================================== */
.features-cta-section {
  background: linear-gradient(135deg, #0084ff 0%, #0057b8 100%);
  padding: 64px 0;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.features-cta-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.features-cta-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.features-cta-title {
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

.features-cta-desc {
  font-size: 15px;
  opacity: 0.9;
  max-width: 580px;
  margin: 0 auto 26px;
}

.features-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.btn-cta-white {
  background: #ffffff;
  color: #0084ff;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-cta-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-cta-outline-white {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-cta-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 1080px) {
  .features-showcase-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-col-left,
  .features-col-right {
    align-items: center;
    text-align: center;
  }

  .features-col-left .feat-item.active::after,
  .features-col-right .feat-item.active::before {
    display: none;
  }
}

/* ==========================================================================
   Universal Theme Integration for Features Page
   ========================================================================== */
.features-page-main {
  background-color: var(--bg-page);
  color: var(--text-primary);
}

.features-title {
  color: var(--text-primary);
}

.features-subtitle {
  color: var(--text-secondary);
}

.feat-item {
  color: var(--text-primary);
}

.feat-item:hover:not(.active) {
  background-color: var(--bg-surface-hover);
}

.feat-item.active {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xl);
}

.feat-title {
  color: var(--text-primary);
}

.feat-desc {
  color: var(--text-secondary);
}

.feat-icon-wrap {
  color: var(--text-primary);
}

.features-col-right .feat-item.active::before {
  border-right-color: var(--bg-surface);
}

.features-col-left .feat-item.active::after {
  border-left-color: var(--bg-surface);
}
