/**
 * PE Filter Cards - Simple Centered Chat
 * Sidebar on left, chat properly centered without overflow
 */

/* MAIN SIDEBAR - Fixed on left, at the very top */
.pe-filter-sidebar {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important; /* Moved to the very top */
  width: 420px !important;
  height: 100vh !important; /* Full viewport height */
  background: #f5f2e8 !important;
  overflow: hidden !important;
  box-shadow: 10px 0 30px rgba(13, 53, 62, 0.1) !important;
  z-index: 10 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* SIMPLE FIX: Just push the chat container to account for sidebar */
.sffc-opportunities-wrapper {
  padding-left: 420px !important; /* Use padding instead of margin to prevent overflow */
  width: 100% !important;
  box-sizing: border-box !important; /* Include padding in width calculation */
}

/* Center the main container within available space - WIDER */
.sffc-main-container {
  max-width: 1200px !important; /* Increased from 800px */
  margin: 0 auto !important;
  padding: 0 40px !important; /* More padding for breathing room */
}

/* Conversation view - normal flow, no pushing up */
.sffc-conversational-view {
  width: 100% !important;
  /* Remove any top margins or transforms that push content up */
  margin-top: 0 !important;
  padding-top: 20px !important; /* Reduced padding since sidebar is now at the top */
}

/* Messages centered - EXTRA WIDE */
.senna-messages {
  width: 100% !important;
  max-width: 1400px !important; /* Increased for wider cards */
  margin: 0 auto !important;
  /* Ensure welcome message is visible with avatar */
  padding-top: 40px !important; /* Increased for better visibility */
}

/* Ensure first message (welcome) has proper spacing */
.senna-messages .message:first-child {
  margin-top: 20px !important;
}

/* Ensure Senna's avatar is visible */
.message.senna-message {
  padding-top: 10px !important;
}

/* Job cards - Expanded width for better content display */
.job-card-vogue:not(.chat-compact),
.sffc-match-card:not(.chat-compact) {
  max-width: 800px !important; /* Increased for better content display */
  margin: 20px auto !important;
}

/* Input wrapper - Center within input area - WIDER */
.senna-input-wrapper {
  max-width: 900px !important; /* Match messages width */
  margin: 0 auto !important;
  padding: 0 20px !important; /* Reduced vertical padding */
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Input field - REDUCED HEIGHT, INCREASED WIDTH */
.senna-input {
  width: 100% !important;
  height: 45px !important; /* Reduced from default */
  padding: 29px 16px !important; /* Smaller padding */
  font-size: 17px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(13, 53, 62, 0.15) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 10px rgba(13, 53, 62, 0.08) !important;
  transition: all 0.2s ease !important;
}

.senna-input:focus {
  outline: none !important;
  border-color: rgba(13, 53, 62, 0.3) !important;
  box-shadow: 0 2px 15px rgba(13, 53, 62, 0.15) !important;
}

/* Input actions buttons - match reduced height */
.senna-input-actions {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

.senna-send-btn,
.senna-action-btn {
  height: 40px !important;
  width: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* STORIES BAR - At the top inside sidebar */
.pe-quick-filters,
.stories-bar {
  position: relative !important;
  width: 100% !important;
  height: 100px !important;
  min-height: 100px !important;
  background: linear-gradient(
    to bottom,
    rgba(245, 242, 232, 0.98),
    rgba(245, 242, 232, 0.8)
  ) !important;
  padding: 20px 16px !important;
  display: flex !important;
  gap: 12px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  border-bottom: 1px solid #e0ddd3 !important;
  flex-shrink: 0 !important;
  margin-top: 0 !important; /* Ensure it's at the very top */
}

.pe-quick-filters::-webkit-scrollbar {
  display: none !important;
}

/* Story bubbles */
.pe-quick-filter-item {
  flex-shrink: 0 !important;
  width: 60px !important;
  text-align: center !important;
  cursor: pointer !important;
}

.pe-quick-icon {
  width: 60px !important;
  height: 60px !important;
  border-radius: 16px !important;
  padding: 3px !important;
  position: relative !important;
  transition: all 0.3s ease !important;
}

.pe-quick-icon:hover {
  transform: scale(1.1) rotate(3deg) !important;
}

/* Bubble shapes */
.pe-quick-filter-item:nth-child(1) .pe-quick-icon {
  background: linear-gradient(
    135deg,
    #0d353e 0%,
    #6b8e8f 50%,
    #0d353e 100%
  ) !important;
  border-radius: 50% !important;
  animation: pulse-glow 3s infinite !important;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(13, 53, 62, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(13, 53, 62, 0.2);
  }
}

.pe-quick-filter-item:nth-child(2) .pe-quick-icon {
  background: conic-gradient(from 45deg, #0d353e, #6b8e8f, #0d353e) !important;
  border-radius: 20px !important;
}

.pe-quick-filter-item:nth-child(3) .pe-quick-icon {
  background: linear-gradient(
      45deg,
      #e0ddd3 25%,
      transparent 25%,
      transparent 75%,
      #e0ddd3 75%,
      #e0ddd3
    ),
    linear-gradient(45deg, #e0ddd3 25%, #6b8e8f 25%, #6b8e8f 75%, #e0ddd3 75%) !important;
  background-size: 20px 20px !important;
  background-position: 0 0, 10px 10px !important;
  border-radius: 50% !important;
}

.pe-quick-filter-item:nth-child(4) .pe-quick-icon {
  background: linear-gradient(
    to right,
    #0d353e 0%,
    #0d353e 33%,
    #6b8e8f 33%,
    #6b8e8f 66%,
    #0d353e 66%,
    #0d353e 100%
  ) !important;
  border-radius: 50% 20% 50% 20% !important;
}

.pe-quick-filter-item:nth-child(5) .pe-quick-icon {
  background: radial-gradient(
    circle at center,
    #6b8e8f 0%,
    #0d353e 70%
  ) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

.pe-quick-filter-item:nth-child(6) .pe-quick-icon {
  background: repeating-linear-gradient(
    45deg,
    #e0ddd3,
    #e0ddd3 5px,
    #6b8e8f 5px,
    #6b8e8f 10px
  ) !important;
  border-radius: 50% !important;
}

/* Inner avatar */
.pe-quick-icon-inner {
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 2px solid #f5f2e8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  color: #0d353e !important;
  font-weight: 700 !important;
}

.pe-filter-label {
  color: #0d353e !important;
  font-size: 10px !important;
  margin-top: 4px !important;
  font-weight: 500 !important;
}

/* SCROLL AREA for cards */
.pe-main-filters,
.content-scroll {
  flex: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
  padding-top: 0 !important;
  padding-bottom: 20px !important;
  background: #f5f2e8 !important;
}

.pe-main-filters::-webkit-scrollbar {
  display: none !important;
}

/* QUESTION CARDS - DESKTOP ONLY */
@media (min-width: 769px) {
  .question-card {
    min-height: 60vh !important;
    max-height: 70vh !important;
    scroll-snap-align: start !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 80px 20px 60px !important;
    background: linear-gradient(135deg, #0d353e 0%, #1a5a65 100%) !important;
    margin-bottom: 20px !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }
}

.question-card:first-child {
  margin-top: 12px !important;
}

.question-card::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(107, 142, 143, 0.1) 0%,
    transparent 50%
  ) !important;
  pointer-events: none !important;
}

.question-card:nth-child(2) {
  background: linear-gradient(145deg, #0d353e 0%, #2a6a75 100%) !important;
}

.question-card:nth-child(3) {
  background: linear-gradient(125deg, #0d353e 0%, #1f5460 100%) !important;
}

.question-card:nth-child(4) {
  background: linear-gradient(155deg, #0d353e 0%, #3a7a85 100%) !important;
}

/* Card content */
.question-content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  max-width: 340px !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 1 !important;
}

.question-category {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-bottom: 8px !important;
}

.question-title {
  color: white !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-bottom: 20px !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.question-preview {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin-bottom: 30px !important;
}

.question-bullets {
  list-style: none !important;
  padding: 0 !important;
  margin: 20px 0 !important;
}

.question-bullets li {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  padding-left: 20px !important;
  position: relative !important;
}

.question-bullets li:before {
  content: "→" !important;
  position: absolute !important;
  left: 0 !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

.filter-meta {
  display: flex !important;
  gap: 8px !important;
  margin-top: 16px !important;
  flex-wrap: wrap !important;
}

.meta-tag {
  display: inline-block !important;
  padding: 4px 10px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.trending-badge {
  position: absolute !important;
  top: 20px !important;
  left: 20px !important;
  background: rgba(245, 242, 232, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  z-index: 2 !important;
}

.trending-icon {
  width: 16px !important;
  height: 16px !important;
  background: #0d353e !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #f5f2e8 !important;
  font-size: 10px !important;
  font-weight: bold !important;
}

.trending-text {
  color: #0d353e !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.bottom-cta {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 20px !important;
  background: linear-gradient(
    to top,
    rgba(13, 53, 62, 0.9),
    transparent
  ) !important;
}

.ask-senna-btn {
  width: 100% !important;
  padding: 16px !important;
  background: #f5f2e8 !important;
  border: 2px solid #f5f2e8 !important;
  border-radius: 12px !important;
  color: #0d353e !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.ask-senna-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px rgba(245, 242, 232, 0.3) !important;
  background: white !important;
}

/* Hide old elements */
.pe-filter-section,
.pe-filter-options,
input[type="checkbox"] {
  display: none !important;
}
