/* =========================================
   ADVANCED AI TOOLS PAGE STYLING
========================================= */

@import url("/static/css/home.css");

/* =========================================
   GLOBAL
========================================= */

.tool-workspace-container {
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  flex-grow: 1;
}

@media (min-width: 1100px) {
  .tool-workspace-container {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.workspace-panel {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );

  backdrop-filter: blur(14px);

  border: 1px solid var(--border-color);
  border-radius: 28px;

  padding: 2.5rem;

  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  position: relative;
  overflow: hidden;
}

/* =========================================
   HERO SECTION
========================================= */

.tool-hero-section {
  padding: 5rem 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-inner-wrapper {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: var(--accent-color);

  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;

  margin-bottom: 1.5rem;
}

.hero-main-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.05;
  font-weight: 800;

  margin-bottom: 1.5rem;

  color: var(--text-primary);

  letter-spacing: -2px;
}

.hero-subtitle {
  max-width: 900px;
  margin: auto;

  color: var(--text-secondary);

  font-size: 1.15rem;
  line-height: 1.9;

  margin-bottom: 2rem;
}

.hero-keywords-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  justify-content: center;
  align-items: center;
}

/* =========================================
   KEYWORD CHIPS
========================================= */

.keyword-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;

  border-radius: 999px;

  background-color: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: var(--text-secondary);

  font-size: 0.85rem;
  font-weight: 600;

  transition: all 0.25s ease;
}

.keyword-chip:hover {
  transform: translateY(-2px);

  border-color: var(--accent-color);

  color: white;

  background-color: var(--accent-color);
}

/* =========================================
   PANEL HEADER
========================================= */

.panel-header {
  margin-bottom: 2rem;
}

.top-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  margin-bottom: 1.25rem;
}

.badge-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 14px;

  border-radius: 10px;

  background-color: rgba(255, 255, 255, 0.06);

  color: var(--accent-color);

  border: 1px solid rgba(255, 255, 255, 0.06);

  font-size: 0.8rem;
  font-weight: 700;

  letter-spacing: 1px;
}

.panel-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;

  color: var(--text-primary);

  letter-spacing: -1px;
}

.tool-editorial-text {
  color: var(--text-secondary);

  font-size: 1rem;
  line-height: 1.8;
}

/* =========================================
   FORMS
========================================= */

.form-element-group {
  margin-bottom: 1.5rem;
}

.form-element-group label {
  display: block;

  margin-bottom: 0.6rem;

  color: var(--text-primary);

  font-size: 0.95rem;
  font-weight: 600;
}

.input-select option {
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
}

.input-field,
.input-textarea,
.input-select {
  width: 100%;

  padding: 15px 16px;

  border-radius: 16px;

  background-color: rgba(255, 255, 255, 0.03);

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: var(--text-primary);

  font-size: 1rem;
  font-family: var(--font-stack);

  outline: none;

  transition: all 0.25s ease;
}

.input-textarea {
  resize: vertical;
  min-height: 140px;
}

.input-field:focus,
.input-textarea:focus,
.input-select:focus {
  border-color: var(--accent-color);

  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);

  transform: translateY(-1px);
}

/* =========================================
   BUTTONS
========================================= */

.execute-submit-btn {
  width: 100%;

  padding: 16px;

  border: none;
  border-radius: 18px;

  background: linear-gradient(135deg, var(--accent-color), #8e44ff);

  color: white;

  font-size: 1rem;
  font-weight: 700;

  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  transition: all 0.3s ease;

  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.35);
}

.execute-submit-btn:hover {
  transform: translateY(-2px);

  box-shadow: 0 14px 40px rgba(108, 92, 231, 0.45);
}

.execute-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.copy-action-btn {
  border: none;

  padding: 10px 16px;

  border-radius: 12px;

  background-color: rgba(255, 255, 255, 0.05);

  color: var(--text-primary);

  font-size: 0.85rem;
  font-weight: 600;

  cursor: pointer;

  transition: all 0.25s ease;
}

.copy-action-btn:hover {
  background-color: var(--accent-color);
  color: white;

  transform: translateY(-2px);
}

/* =========================================
   OUTPUT PANEL
========================================= */

.output-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 1.5rem;

  padding-bottom: 1rem;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.output-panel-header h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
}

.output-display-canvas {
  min-height: 350px;

  padding: 1.5rem;

  border-radius: 18px;

  background-color: rgba(255, 255, 255, 0.02);

  border: 1px solid rgba(255, 255, 255, 0.06);

  white-space: pre-wrap;

  line-height: 1.8;

  color: var(--text-primary);

  overflow-x: auto;
}

.placeholder-canvas-text {
  text-align: center;

  margin-top: 6rem;

  color: var(--text-secondary);

  font-style: italic;
}

/* =========================================
   SEO CONTENT
========================================= */

.seo-content-container {
  max-width: 1150px;
  margin: 5rem auto;

  padding: 0 1.5rem;
}

.seo-section,
.faq-item,
.cta-section {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 26px;

  padding: 2.5rem;

  margin-bottom: 2rem;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.seo-section h2,
.faq-section h2,
.cta-section h2 {
  font-size: 2rem;

  color: var(--text-primary);

  margin-bottom: 1rem;

  letter-spacing: -1px;
}

.seo-section p,
.faq-item p,
.cta-section p {
  color: var(--text-secondary);

  line-height: 1.9;

  font-size: 1.02rem;
}

/* =========================================
   FAQ GRID
========================================= */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;

  margin-top: 2rem;
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-4px);

  border-color: var(--accent-color);
}

.faq-item h3 {
  color: var(--text-primary);

  margin-bottom: 0.8rem;

  line-height: 1.5;
}

/* =========================================
   RELATED TOOLS
========================================= */

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 1rem;

  margin-top: 1.5rem;
}

.related-tool-card {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 80px;

  padding: 1rem;

  border-radius: 18px;

  background-color: rgba(255, 255, 255, 0.03);

  border: 1px solid rgba(255, 255, 255, 0.06);

  color: var(--text-primary);

  text-decoration: none;

  font-weight: 600;
  text-align: center;

  transition: all 0.25s ease;
}

.related-tool-card:hover {
  background-color: var(--accent-color);

  color: white;

  transform: translateY(-3px);
}

/* =========================================
   CTA SECTION
========================================= */

.cta-section {
  text-align: center;
}

.cta-section .execute-submit-btn {
  max-width: 320px;
  margin: 2rem auto 0;
}

/* =========================================
   SPINNER
========================================= */

.spinner {
  width: 22px;
  height: 22px;

  border-radius: 50%;

  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: white;

  animation: rotate 0.8s linear infinite;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================
   MOBILE OPTIMIZATION
========================================= */

@media (max-width: 768px) {
  .tool-hero-section {
    padding-top: 3rem;
  }

  .hero-main-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.7;
  }

  .tool-workspace-container {
    padding: 0 1rem;
    margin-top: 2rem;
  }

  .workspace-panel {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .panel-header h2 {
    font-size: 1.5rem;
  }

  .seo-section,
  .faq-item,
  .cta-section {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .seo-section h2,
  .faq-section h2,
  .cta-section h2 {
    font-size: 1.5rem;
  }

  .input-field,
  .input-textarea,
  .input-select {
    font-size: 16px;
  }

  .execute-submit-btn {
    font-size: 1rem;
  }
}
