/* ============================================
   Planning Page Specific Styles - Specifys.ai
   ============================================
   Styles for the Architect Pro planning tool
*/

/* Planning container when inside hero section */
.hero-section .planning-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 15px;
}

.planning-page {
  min-height: 100vh;
  background-color: #F9FAFB;
  padding: 24px 15px;
  font-family: "Inter", sans-serif;
}

.planning-page .planning-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.planning-header {
  text-align: center;
  margin: 10px auto 10px;
  padding: 15px 15px;
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.planning-header,
.planning-pitch-input {
  visibility: visible;
  opacity: 1;
}

.planning-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #999;
  margin-bottom: 15px;
  font-family: "Montserrat", sans-serif;
  display: block;
}

/* White text for hero section */
.hero-section .planning-label {
  color: rgba(255, 255, 255, 0.8);
}

.planning-pitch-input {
  width: 100%;
  max-width: 1200px;
  min-height: 100px;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  text-align: center;
  border: 2px solid #666;
  border-radius: 16px;
  background: #FFFFFF;
  resize: vertical;
  color: #111827;
  font-family: "Montserrat", sans-serif;
  line-height: 1.5;
  padding: 20px;
  margin: 0 auto;
  display: block;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* White background for hero section */
.hero-section .planning-pitch-input {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  color: #111827;
}

.planning-pitch-input:hover {
  border-color: #999;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.planning-pitch-input:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 4px rgba(102, 102, 102, 0.15), 0 6px 16px rgba(0, 0, 0, 0.12);
}

.planning-pitch-input::placeholder {
  color: #999;
  font-weight: 500;
}

.planning-pitch-input:focus::placeholder {
  color: #CCC;
}

/* Pitch Input Wrapper */
.pitch-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 70px;
}

.character-count-wrapper {
  text-align: center;
  margin-top: 8px;
}

.character-count {
  font-size: 0.75rem;
  color: #666;
  font-family: "Inter", sans-serif;
}

.hero-section .character-count {
  color: rgba(255, 255, 255, 0.7);
}

/* Hero Section Adaptations */
.hero-section .planning-container {
  color: white;
}

.hero-section .section-panel {
  background: rgba(255, 255, 255, 0.98);
  color: #111827;
}

.hero-section .section-title {
  color: #111827;
}

.hero-section .section-description {
  color: #666;
}


.planning-header {
  order: 1;
}

/* Workspace Container */
.workspace-container {
  min-height: 500px;
  order: 3;
}

/* Navigation Buttons */
.home-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  margin-bottom: 5px;
  overflow-x: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
  order: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.home-nav.hidden {
  display: none;
}

.home-nav:not(.hidden) {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.home-nav.fade-in {
  animation: fadeInNav 0.4s ease-in-out forwards;
}

@keyframes fadeInNav {
  from {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.nav-btn {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.25s ease;
  text-align: center;
  font-size: 0.9rem;
  color: #333;
  font-family: var(--font-family-primary, "Montserrat", sans-serif);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.nav-btn:hover {
  border-color: var(--primary-color, #FF6B35);
  background: var(--primary-color, #FF6B35);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.nav-btn-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
  display: none;
}

.nav-btn.has-data .nav-btn-indicator {
  display: block;
}

/* Section Panel */
.section-panel {
  background: white;
  border-radius: 32px;
  border: 1px solid #E5E7EB;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  min-height: 400px;
  scroll-margin-top: 20px;
}

.section-panel.hidden-el {
  display: none;
}

.section-panel:not(.hidden-el) {
  display: block;
}

.section-view.hidden-el {
  display: none;
}

.section-view:not(.hidden-el) {
  display: block;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.section-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  width: 100%;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #333;
  font-family: "Montserrat", sans-serif;
  margin: 0;
}

.section-description {
  font-size: 0.8rem;
  color: #666;
  font-family: "Inter", sans-serif;
  line-height: 1.5;
  max-width: 600px;
  margin: 0;
}

.help-tooltip {
  position: relative;
  cursor: help;
  margin-top: 4px;
}

.help-icon {
  color: #D1D5DB;
  font-size: 1rem;
}

.help-text {
  position: absolute;
  right: 0;
  top: 32px;
  width: 256px;
  padding: 16px;
  background: #1F2937;
  color: white;
  font-size: 0.75rem;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 50;
  font-family: "Inter", sans-serif;
}

.help-tooltip:hover .help-text {
  opacity: 1;
}

/* Section Views */
.section-view {
  margin-top: 12px;
  display: block;
  width: 100%;
  visibility: visible;
  opacity: 1;
  position: relative;
  z-index: 1;
}

/* Pages View */
.pages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .pages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-card {
  position: relative;
  padding: 20px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(0, 0, 0, 0.05) inset;
  transition: all 0.2s ease;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  background-image: 
    linear-gradient(to bottom, rgba(0,0,0,0.02) 0%, transparent 2px),
    linear-gradient(to right, rgba(0,0,0,0.02) 0%, transparent 2px);
  background-size: 20px 20px;
}

.page-card:hover {
  border-color: #999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.page-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #666, #999);
  border-radius: 12px 12px 0 0;
  opacity: 0.3;
}

.page-delete-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border: none;
  background: #F3F4F6;
  border-radius: 50%;
  color: #666;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

.page-delete-btn:hover {
  background: #EF4444;
  color: white;
}

.page-name-input {
  font-weight: 700;
  font-size: 1.125rem;
  width: 100%;
  border: none;
  margin-bottom: 12px;
  color: #333;
  font-family: "Montserrat", sans-serif;
  padding: 4px 0;
  padding-right: 30px;
}

.page-name-input:focus {
  outline: none;
  border-bottom: 2px solid #666;
}

.page-description-input {
  width: 100%;
  font-size: 0.875rem;
  color: #666;
  border: none;
  resize: none;
  min-height: 60px;
  background: transparent;
  font-family: "Inter", sans-serif;
  padding: 4px 0;
  line-height: 1.5;
}

.page-description-input:focus {
  outline: none;
  color: #333;
}

.page-description-input::placeholder {
  color: #999;
}

.pages-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.add-page-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px dashed #999 !important;
  background: #F9FAFB !important;
  min-height: 140px;
  padding: 20px;
  transition: all 0.2s ease;
}

.add-page-card:hover {
  border-color: #666 !important;
  background: #F3F4F6 !important;
  transform: translateY(-2px);
}

.add-page-card::before {
  display: none;
}

.add-page-icon {
  font-size: 3rem;
  font-weight: 300;
  color: #999;
  line-height: 1;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.add-page-card:hover .add-page-icon {
  color: #666;
  transform: scale(1.1);
}

.add-page-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  font-family: "Inter", sans-serif;
  text-align: center;
}

.add-page-card:hover .add-page-text {
  color: #333;
}

.predefined-pages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.predefined-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  font-family: "Montserrat", sans-serif;
}

.predefined-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.predefined-page-btn {
  padding: 8px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: white;
  color: #666;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

.predefined-page-btn:hover {
  background: #F9FAFB;
  border-color: #666;
  color: #333;
  transform: translateY(-1px);
}

/* Workflow View */
.workflow-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.workflow-wrapper {
  position: relative;
  margin-bottom: 24px;
  transition: all 0.2s ease;
  display: block;
  visibility: visible;
  opacity: 1;
}

.workflow-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: #F3F4F6;
  border-radius: 50%;
  color: #666;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
  padding: 0;
  z-index: 10;
}

.workflow-delete-btn:hover {
  background: #EF4444;
  color: white;
  transform: scale(1.1);
}

.workflow-steps-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 24px;
  min-height: 100px;
  overflow-x: auto;
}

.add-first-step-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 32px;
  border: 2px dashed #999;
  border-radius: 12px;
  background: #F9FAFB;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
  min-width: 200px;
}

.add-first-step-btn:hover {
  border-color: #666;
  background: #F3F4F6;
  color: #333;
  transform: translateY(-2px);
}

.add-icon-large {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  color: #999;
}

.add-first-step-btn:hover .add-icon-large {
  color: #666;
  transform: scale(1.1);
}

.add-text {
  font-size: 0.875rem;
  font-weight: 600;
}

.workflow-step-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  background: #F9FAFB;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid #E5E7EB;
  transition: all 0.2s ease;
  position: relative;
  width: 200px;
  min-height: 120px;
}

.workflow-step-wrapper:hover {
  border-color: #999;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.workflow-name-step {
  background: #E8F4F8;
  border: 2px solid #4A90E2;
}

.workflow-name-step:hover {
  border-color: #357ABD;
  background: #D4E8F0;
}

.workflow-name-textarea {
  background: white;
  border-color: #4A90E2;
}

.workflow-name-textarea:focus {
  border-color: #357ABD;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.workflow-step-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #333;
  font-family: "Inter", sans-serif;
  background: white;
  transition: all 0.2s ease;
  resize: vertical;
  line-height: 1.5;
}

.workflow-step-textarea:focus {
  outline: none;
  border-color: #666;
  box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.1);
}

.workflow-step-textarea::placeholder {
  color: #999;
}

.delete-step-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: #F3F4F6;
  border-radius: 50%;
  color: #666;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
  padding: 0;
  flex-shrink: 0;
  position: absolute;
  top: 8px;
  right: 8px;
}

.delete-step-btn:hover {
  background: #EF4444;
  color: white;
  transform: scale(1.1);
}

.workflow-arrow {
  color: #999;
  font-size: 1.5rem;
  font-weight: 300;
  user-select: none;
  flex-shrink: 0;
  margin: 0 8px;
  align-self: center;
}

.add-step-after-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #999;
  border-radius: 50%;
  background: white;
  color: #666;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
  flex-shrink: 0;
  align-self: center;
}

.add-step-after-btn:hover {
  border-color: #666;
  background: #F9FAFB;
  color: #333;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.workflow-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.create-flow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: #1F2937;
  color: white;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

.create-flow-btn:hover {
  background: #111827;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.create-flow-icon {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1;
}

/* Design View */
.design-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 768px) {
  .design-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.design-card {
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  padding: 24px 20px;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 140px;
  align-self: flex-start;
}

.design-card:hover {
  border-color: #666;
  z-index: 10;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.design-card {
  position: relative;
}

.design-card.selected {
  border-color: #666;
  background: #F9FAFB;
}

.design-card.selected .selected-check-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
}

.design-preview-btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.75rem;
  margin-bottom: 0;
  border: none;
  cursor: default;
  font-family: "Inter", sans-serif;
}

.design-name {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #333;
  font-family: "Montserrat", sans-serif;
  margin: 0;
}

.design-description {
  font-size: 0.7rem;
  color: #666;
  font-family: "Inter", sans-serif;
  line-height: 1.4;
  margin: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease, margin-top 0.4s ease;
  text-align: center;
  font-size: 0.7rem;
  padding: 0 4px;
}

.design-card:hover .design-description {
  opacity: 1;
  max-height: 60px;
  margin-top: 8px;
}

/* Design Style Variants */
.design-minimal {
  border: 1px solid #000;
  border-radius: 0;
  background: white;
  color: #000;
}

.design-saas {
  background: #FF956D;
  color: white;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.design-cyberpunk {
  background: #000;
  color: #84CC16;
  border: 2px solid #84CC16;
  font-style: italic;
  font-weight: 900;
}

.design-corporate {
  background: #1E3A8A;
  color: white;
  border-radius: 4px;
}

.design-playful {
  background: #FCD34D;
  border: 4px solid #000;
  border-radius: 16px;
  box-shadow: 4px 4px 0px #000;
  color: #000;
}

.design-glass {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid white;
  backdrop-filter: blur(8px);
  border-radius: 12px;
  color: #333;
}

.design-brutalist {
  background: white;
  border: 2px solid #000;
  box-shadow: 6px 6px 0px #FF956D;
  color: #000;
}

.design-elegant {
  border-bottom: 1px solid #D1D5DB;
  font-style: italic;
  font-family: serif;
  background: transparent;
  color: #333;
}

.design-dark {
  background: #27272A;
  color: #F4F4F5;
  border-radius: 8px;
}

.design-futuristic {
  background: #4F46E5;
  color: white;
  border-radius: 12px 0 0 12px;
}

/* Integrations View */
.integrations-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.integration-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.integration-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "Montserrat", sans-serif;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .integration-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.integration-btn {
  padding: 16px;
  border: 1px solid #F3F4F6;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  color: #333;
  font-family: "Inter", sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.integration-btn:hover {
  background: #F9FAFB;
}

.integration-btn.selected {
  background: #F9FAFB;
  border-color: #666;
}

.integration-check-icon {
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF6B35;
  color: white;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.integration-check-icon i {
  font-size: 11px;
}

.integration-btn.selected .integration-check-icon {
  display: flex;
}

/* Selected check icon - universal style for all cards */
.selected-check-icon {
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF6B35;
  color: white;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.selected-check-icon i {
  font-size: 11px;
}

/* Features View */
.features-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-btn {
  padding: 16px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  background: white;
  color: #666;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
  text-align: left;
}

.feature-btn:hover {
  border-color: #999;
  background: #F9FAFB;
  color: #333;
  transform: translateY(-1px);
}

.feature-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feature-btn.selected {
  border-color: #666;
  background: #F9FAFB;
  color: #333;
  font-weight: 600;
}

.feature-btn.selected .selected-check-icon {
  display: flex;
}

.feature-custom-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 16px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  background: white;
  transition: all 0.2s ease;
}

.feature-custom-wrapper:hover {
  border-color: #999;
  background: #F9FAFB;
}

.feature-custom-input {
  width: 100%;
  border: none;
  background: transparent;
  color: #333;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  padding: 0;
  padding-right: 30px;
}

.feature-custom-input:focus {
  outline: none;
}

.feature-custom-input::placeholder {
  color: #999;
}

.feature-delete-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border: none;
  background: #F3F4F6;
  border-radius: 50%;
  color: #666;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
  padding: 0;
  flex-shrink: 0;
}

.feature-delete-btn:hover {
  background: #EF4444;
  color: white;
  transform: scale(1.1);
}

.features-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.add-feature-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px dashed #999;
  border-radius: 12px;
  background: white;
  color: #666;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

.add-feature-btn:hover {
  border-color: #666;
  background: #F9FAFB;
  color: #333;
  transform: translateY(-1px);
}

.add-feature-btn .add-icon {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1;
}

/* Generic Grid */
.generic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .generic-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Export Area */
.export-area {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  text-align: center;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  background: transparent;
  border: none;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.export-area.hidden {
  opacity: 0;
  visibility: hidden;
}

.export-area:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.export-btn {
  background: var(--primary-color, #FF6B35);
  color: white;
  padding: 10px 24px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
  font-family: var(--font-family-primary, "Montserrat", sans-serif);
}

.export-btn:hover {
  background: var(--button-hover, #FF8551);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Utility Classes */
.planning-container.hidden {
  display: none;
}

.hidden {
  display: none;
}

.hidden-el {
  display: none;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Audience View */
#view-audience {
  display: block;
  visibility: visible;
  opacity: 1;
}

#view-audience.hidden-el {
  display: none;
}

.audience-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  visibility: visible;
  opacity: 1;
  width: 100%;
  min-height: 200px;
  padding: 0;
  margin: 0;
}

.audience-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  visibility: visible;
  opacity: 1;
}

.audience-section-row {
  display: flex;
  gap: 24px;
  width: 100%;
  flex-wrap: wrap;
}

.audience-section-compact {
  flex: 1;
  min-width: 280px;
  max-width: 50%;
}

@media (max-width: 768px) {
  .audience-section-row {
    flex-direction: column;
  }
  
  .audience-section-compact {
    max-width: 100%;
  }
}

.audience-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Platform Selector */
.platform-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-btn {
  flex: 1;
  min-width: 80px;
  padding: 12px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
}

.platform-btn:hover {
  border-color: #666;
  background: #F9FAFB;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.platform-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.platform-btn.selected {
  border-color: #666;
  background: #F9FAFB;
}

.platform-btn.selected .selected-check-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
}

.platform-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #666;
}

.platform-icon i {
  font-size: 1.5rem;
  color: #666;
}

.platform-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
}

/* Interests Grid */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .interests-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .interests-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.interest-btn {
  padding: 16px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  font-family: "Inter", sans-serif;
  text-align: center;
}

.interest-btn:hover {
  border-color: #666;
  background: #F9FAFB;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.interest-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.interest-btn.selected {
  border-color: #666;
  background: #F9FAFB;
  color: #333;
}

.interest-btn.selected .selected-check-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
}

/* Age Range */
.age-range-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.age-range-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.age-slider-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.age-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #666;
  font-family: "Montserrat", sans-serif;
  padding: 0 4px;
}

.age-slider-track {
  position: relative;
  height: 8px;
  background: #D1D5DB;
  border-radius: 4px;
  margin: 8px 0;
}

.age-slider-fill {
  position: absolute;
  height: 100%;
  background: #FF6B35;
  border-radius: 4px;
  top: 0;
  transition: all 0.2s ease;
}

.age-slider {
  position: absolute;
  width: 100%;
  height: 8px;
  top: 0;
  left: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  pointer-events: none;
  z-index: 2;
}

.age-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF6B35;
  border: 3px solid white;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.age-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.age-slider::-webkit-slider-thumb:active {
  transform: scale(1.05);
  cursor: grabbing;
}

.age-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF6B35;
  border: 3px solid white;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  -moz-appearance: none;
  appearance: none;
}

.age-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.age-slider::-moz-range-thumb:active {
  transform: scale(1.05);
  cursor: grabbing;
}

.age-slider-min {
  z-index: 3;
}

.age-slider-max {
  z-index: 2;
}

.age-display {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  font-family: "Montserrat", sans-serif;
  padding: 4px 0;
}


/* Gender Selector */
.gender-selector {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.gender-btn {
  flex: 1;
  min-width: 120px;
  padding: 20px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: "Inter", sans-serif;
}

.gender-btn:hover {
  border-color: #666;
  background: #F9FAFB;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gender-btn {
  position: relative;
}

.gender-btn.selected {
  border-color: #666;
  background: #F9FAFB;
}

.gender-btn.selected .selected-check-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
}

.gender-icon {
  font-size: 2rem;
  font-weight: bold;
}

.gender-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .planning-page {
    padding: 20px 15px;
  }

  .section-panel {
    padding: 24px 20px;
  }

  .section-header {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .home-nav {
    justify-content: flex-start;
    padding: 8px 5px;
  }

  .nav-btn {
    font-size: 0.85rem;
    padding: 10px 18px;
    min-height: 40px;
  }

  .pages-actions {
    flex-direction: column;
  }

  .workflow-steps {
    flex-direction: column;
  }

  .workflow-arrow {
    transform: rotate(90deg);
  }
}
