/* ==========================================================================
   PropNetwork - Platform Feature Showcase Section CSS
   Author: PropNetwork Product Design Team
   Description: 3-column enterprise SaaS feature showcase matching Apple x Stripe quality.
                Features vertical 10-item menu, rich feature detail content,
                and floating iPhone 16 Pro mockup with static app screenshots.
   ========================================================================== */

.platform-showcase-section {
  position: relative;
  padding: 6rem 0 7rem 0;
  background-color: #FAFAFA;
  overflow: hidden;
  color: #0F172A;
  z-index: 1;
}

/* Subtle Background Mesh & Radial Glow */
.platform-showcase-section::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle at 60% 50%, rgba(20, 184, 166, 0.08) 0%, rgba(139, 92, 246, 0.03) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.platform-showcase-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(15, 118, 110, 0.06) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Section Top Header (Stripe / Linear Editorial Style)
   ========================================================================== */
.platform-section-header {
  position: relative;
  max-width: 860px;
  margin-bottom: 3.5rem;
  padding-left: 1.5rem;
  z-index: 2;
}

.platform-header-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, #14B8A6 0%, #6366F1 50%, #8B5CF6 100%);
  border-radius: 3px;
}

.platform-category-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #14B8A6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.platform-header-title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(2.1rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin-bottom: 1.25rem;
}

.platform-text-gradient {
  background: linear-gradient(90deg, #0F766E 0%, #14B8A6 35%, #6366F1 75%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.platform-header-desc {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-weight: 500;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

/* Main 3-Column Layout Grid */
.platform-showcase-grid {
  display: grid;
  grid-template-columns: 260px 1fr 420px;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Column 1: Far-Left Vertical Feature Navigation (10 Items)
   ========================================================================== */
.platform-vert-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  padding-left: 0.25rem;
}

/* Thin Vertical Connecting Guideline */
.platform-vert-nav::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  left: 1.65rem;
  width: 1px;
  border-left: 1.5px dashed #CBD5E1;
  z-index: 0;
}

.platform-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 15px;
  color: #64748B;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  z-index: 1;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.22s ease-in-out;
  cursor: pointer;
}

.platform-nav-number {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94A3B8;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.platform-nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.22s ease-in-out;
}

.platform-nav-icon svg {
  width: 16px;
  height: 16px;
}

.platform-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.platform-nav-item:hover {
  color: #0F766E;
}

.platform-nav-item:hover .platform-nav-icon {
  background: #E6F7F5;
  color: #0F766E;
}

/* Active Nav Item State */
.platform-nav-item.active {
  background: #FFFFFF;
  color: #0F766E;
  border-color: #E2E8F0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.platform-nav-item.active .platform-nav-number {
  color: #0F766E;
}

.platform-nav-item.active .platform-nav-icon {
  background: #0F766E;
  color: #FFFFFF;
}

/* ==========================================================================
   Column 2: Middle Feature Detail Content Area
   ========================================================================== */
.platform-feature-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.22s ease-in-out, transform 0.22s ease-in-out;
}

.platform-feature-detail.fade-out {
  opacity: 0;
  transform: translateY(6px);
}

.platform-feature-badge-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.feature-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #E6F7F5;
  color: #0F766E;
  font-size: 0.82rem;
  font-weight: 700;
}

.feature-label-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-feature-title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin-bottom: 1.25rem;
}

.platform-feature-title span {
  color: #0F766E;
  display: block;
}

.platform-feature-desc {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.platform-feature-accent-bar {
  width: 36px;
  height: 3px;
  background-color: #14B8A6;
  border-radius: 2px;
  margin-bottom: 2rem;
}

/* Feature Bullet Points List */
.platform-checklist {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.platform-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.platform-checklist-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: #E6F7F5;
  color: #0F766E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-checklist-icon-badge svg {
  width: 22px;
  height: 22px;
}

.platform-checklist-text {
  display: flex;
  flex-direction: column;
}

.platform-checklist-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.15rem;
}

.platform-checklist-subtext {
  font-size: 0.92rem;
  color: #64748B;
  line-height: 1.45;
}

/* Primary CTA Button */
.platform-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 2.1rem;
  border-radius: 15px;
  background-color: #0F766E;
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.28);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-download-btn:hover {
  background-color: #14B8A6;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(20, 184, 166, 0.4);
}

.platform-download-btn svg {
  transition: transform 0.25s ease;
}

.platform-download-btn:hover svg {
  transform: translateY(2px);
}

/* ==========================================================================
   Column 3: Premium iPhone 16 Pro Floating Mockup & Static Screen
   ========================================================================== */
.platform-phone-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Radial Teal Backlight Glow */
.platform-phone-glow {
  position: absolute;
  width: 320px;
  height: 520px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.22) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.iphone-16-chassis {
  position: relative;
  width: 330px;
  height: 660px;
  background: #090d16;
  border-radius: 48px;
  padding: 10px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22), 0 10px 25px rgba(15, 118, 110, 0.15);
  border: 3.5px solid #1a2234;
  z-index: 1;
}

/* Hardware Side Buttons (Mute, Volume Up/Down Left & Power Right) */
.iphone-16-chassis::before {
  content: '';
  position: absolute;
  top: 105px;
  left: -5px;
  width: 4px;
  height: 28px;
  background: #1a2234;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 45px 0 #1a2234, 0 90px 0 #1a2234;
}

.iphone-16-chassis::after {
  content: '';
  position: absolute;
  top: 145px;
  right: -5px;
  width: 4px;
  height: 56px;
  background: #1a2234;
  border-radius: 0 3px 3px 0;
}

.iphone-screen-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island & Status Bar */
.iphone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 6px 24px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F172A;
  position: relative;
  z-index: 10;
  background: #FFFFFF;
}

.dynamic-island-pill {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 19px;
  background: #000000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  z-index: 35;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.island-camera-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1a1a1a;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.25);
}

/* Static App Screenshot Viewport Container */
.app-screen-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #F8FAFC;
  transition: opacity 0.22s ease-in-out;
}

.app-screen-content.fade-out {
  opacity: 0;
}

/* App Screen Header Section */
.app-screen-header {
  padding: 0.75rem 1.25rem 0.5rem;
  background: #FFFFFF;
}

.app-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.app-screen-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #0F766E;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* App Search Bar */
.app-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #F1F5F9;
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  color: #94A3B8;
  margin-bottom: 0.75rem;
}

/* Category Filter Pills */
.app-category-pills {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.app-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #F1F5F9;
  color: #64748B;
  white-space: nowrap;
}

.app-pill.active {
  background: #0F766E;
  color: #FFFFFF;
}

/* Scrollable Property Feed List inside Phone */
.app-feed-scroll {
  flex: 1;
  padding: 0.85rem 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.app-property-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.app-card-media {
  position: relative;
  height: 120px;
  background-size: cover;
  background-position: center;
}

.app-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #0F766E;
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.app-card-like-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card-body {
  padding: 0.75rem;
}

.app-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.15rem;
}

.app-card-subtitle {
  font-size: 0.72rem;
  color: #64748B;
  margin-bottom: 0.35rem;
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}

.app-card-location {
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 2px;
}

.app-card-price {
  font-weight: 800;
  color: #0F766E;
  font-size: 0.85rem;
}

/* Bottom Phone Nav Bar */
.iphone-bottom-nav {
  height: 54px;
  background: #FFFFFF;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
}

.iphone-nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #94A3B8;
  font-size: 0.65rem;
  font-weight: 600;
  text-decoration: none;
}

.iphone-nav-tab.active {
  color: #0F766E;
}

.iphone-nav-center-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0F766E;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iphone-home-bar {
  width: 110px;
  height: 4px;
  background: #000000;
  border-radius: 2px;
  margin: 4px auto 6px;
}

/* ==========================================================================
   Responsive Adaptations for Tablet & Mobile
   ========================================================================== */
@media (max-width: 1199.98px) {
  .platform-showcase-grid {
    grid-template-columns: 220px 1fr 340px;
    gap: 1.5rem;
  }
}

@media (max-width: 991.98px) {
  .platform-showcase-section {
    padding: 40px 0 50px 0;
  }

  .platform-section-header {
    margin-bottom: 24px;
    padding-left: 0.85rem;
    max-width: 100%;
  }

  .platform-category-label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
  }

  .platform-header-desc {
    font-size: clamp(0.95rem, 3.6vw, 1.08rem);
    line-height: 1.55;
  }

  .platform-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .platform-vert-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .platform-vert-nav::-webkit-scrollbar {
    display: none;
  }

  .platform-vert-nav::before {
    display: none;
  }

  .platform-nav-item {
    flex-shrink: 0;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
  }

  .platform-nav-number {
    font-size: 0.75rem;
    width: auto;
  }

  .platform-nav-icon {
    width: 24px;
    height: 24px;
  }

  .platform-nav-icon svg {
    width: 13px;
    height: 13px;
  }

  .platform-nav-label {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .platform-feature-title {
    font-size: clamp(1.85rem, 6.5vw, 2.3rem);
    line-height: 1.15;
    margin-bottom: 0.85rem;
  }

  .platform-feature-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.15rem;
    max-width: 100%;
  }

  .platform-feature-accent-bar {
    margin-bottom: 1.25rem;
  }

  .platform-checklist {
    gap: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .platform-checklist-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .platform-checklist-icon-badge svg {
    width: 18px;
    height: 18px;
  }

  .platform-checklist-title {
    font-size: 0.95rem;
  }

  .platform-checklist-subtext {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .platform-download-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .platform-phone-wrapper {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .iphone-16-chassis {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 330 / 660;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .platform-showcase-section {
    padding: 32px 0 42px 0;
  }

  .platform-section-header {
    margin-bottom: 18px;
    padding-left: 0.75rem;
  }

  .iphone-16-chassis {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 330 / 660;
    margin: 0 auto;
  }
}