/* Sell Page - Custom Styles */

/* Page wrapper prevents horizontal scroll */
.sell-page-wrapper {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Hero section with blue to white gradient */
.sell-hero {
  position: relative;
  min-height: 600px;
  overflow: visible;
  background: linear-gradient(
    180deg,
    #1e40af 0%,
    #2563eb 15%,
    #3b82f6 30%,
    #60a5fa 45%,
    #93c5fd 60%,
    #bfdbfe 75%,
    #dbeafe 85%,
    #f0f9ff 93%,
    #ffffff 100%
  ) !important;
}

/* Hero content positioning - matches find page */
.sell-hero .hero-content-wrapper {
  position: relative;
  z-index: 10;
  background: transparent;
  overflow: visible;
}

/* ===== BLINDS REVEAL PATTERN ===== */

.blinds-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* House image behind the blinds - always present but covered by panels */
.blinds-house-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 0;
}

/* Individual blind panel - each gets a slice of the gradient */
.blind-panel {
  flex: 1;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform-origin: top center;
  transform: perspective(600px) rotateX(0deg);
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
  will-change: transform, opacity;
  z-index: 1;
}

/* Each panel gets its slice of the gradient based on position */
.blind-panel:nth-child(2) { background: rgba(30, 64, 175, 0.97); }
.blind-panel:nth-child(3) { background: rgba(34, 78, 194, 0.96); }
.blind-panel:nth-child(4) { background: rgba(37, 99, 235, 0.95); }
.blind-panel:nth-child(5) { background: rgba(59, 130, 246, 0.93); }
.blind-panel:nth-child(6) { background: rgba(96, 165, 250, 0.90); }
.blind-panel:nth-child(7) { background: rgba(147, 197, 253, 0.85); }

/* Subtle highlight at top of each panel for depth */
.blind-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 100%
  );
}

/* On hover - blind rotates open and fades to reveal house slice */
.blind-panel:hover {
  transform: perspective(600px) rotateX(-50deg);
  opacity: 0.15;
}

/* Adjacent panel lifts slightly */
.blind-panel:hover + .blind-panel {
  transform: perspective(600px) rotateX(-20deg);
  opacity: 0.7;
}

/* ===== HERO TEXT REVEAL ANIMATIONS ===== */

/* Whimsical blur-to-sharp sweep reveal for headline */
@keyframes whimsicalReveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    filter: blur(6px);
    transform: scale(1.02);
  }
  40% {
    opacity: 1;
    filter: blur(3px);
  }
  100% {
    clip-path: inset(0 0% 0 0);
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

/* Slide up with fade for subheadline and form */
@keyframes slideUpReveal {
  0% {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Hero headline - whimsical blur-to-sharp sweep effect */
.sell-hero .hero-headline {
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  filter: blur(6px);
  animation: whimsicalReveal 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.3s;
}

/* Hero subheadline - slides up after headline */
.sell-hero .hero-subheadline {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUpReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 1.1s;
}

/* Hero form container - slides up after subheadline */
.sell-hero .hero-form-container {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUpReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 1.4s;
}

/* ===== HERO FORM STYLING ===== */

/* Elevated form with glow effect */
.sell-hero .hero-form-container input[type="text"] {
  background: white !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sell-hero .hero-form-container input[type="text"]:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sell-hero .hero-form-container input[type="text"]:focus {
  border-color: #f97316 !important;
  box-shadow:
    0 12px 40px rgba(249, 115, 22, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 0 0 4px rgba(249, 115, 22, 0.1);
}

/* ===== PANEL STRIP SECTION ===== */

.panel-strip-grid {
  overflow-x: auto;
  padding: 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.panel-card {
  position: relative;
  flex-shrink: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: center;
}

.panel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Varying heights for visual interest */
.panel-card-tall {
  width: 160px;
  height: 220px;
}

.panel-card-medium {
  width: 180px;
  height: 260px;
}

.panel-card-featured {
  width: 200px;
  height: 300px;
}

.panel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.panel-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .panel-strip-grid {
    justify-content: flex-start;
  }

  .panel-card-tall {
    width: 140px;
    height: 180px;
  }

  .panel-card-medium {
    width: 150px;
    height: 200px;
  }

  .panel-card-featured {
    width: 160px;
    height: 240px;
  }
}

/* ===== FAQ ACCORDION SECTION ===== */

.faq-item {
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-trigger:focus {
  outline: none;
}

.faq-trigger:focus-visible {
  outline: 2px solid #f16700;
  outline-offset: 2px;
}

.faq-icon i {
  transition: transform 0.3s ease;
}

.faq-icon i.rotate-180 {
  transform: rotate(180deg);
}

.faq-content {
  transition: all 0.3s ease;
}

.faq-content:not(.hidden) {
  animation: fadeIn 0.3s ease;
}

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

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .sell-hero .hero-headline,
  .sell-hero .hero-subheadline,
  .sell-hero .hero-form-container {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }
}
