/* ==========================================================================
   ToolIxa Views CSS — Page Views & Specific Section Layouts
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HOMEPAGE HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
  text-align: center;
  overflow: hidden;
  background: var(--gradient-glow);
}

.hero-badge-wrapper {
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  background: var(--gradient-hero-badge);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-500);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Large Hero Search Box */
.hero-search-wrapper {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  margin-bottom: 2rem;
}

.hero-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-normal);
}

.hero-search-box:focus-within {
  border-color: var(--primary-500);
  box-shadow: var(--shadow-glow), var(--shadow-xl);
}

.hero-search-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-500);
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.hero-search-input {
  width: 100%;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
}

.hero-search-btn {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* Hero CTA Buttons */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   2. SECTION LAYOUTS & GRIDS
   -------------------------------------------------------------------------- */
.section-padding {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-500);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Grids */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   3. TOOL CATALOG VIEW (/tools)
   -------------------------------------------------------------------------- */
.catalog-header {
  background: var(--bg-surface-elevated);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
}

.catalog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.filter-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-tab.active, .filter-tab:hover {
  background: var(--primary-500);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   4. INDIVIDUAL TOOL PAGE TEMPLATE (/tools/:id)
   -------------------------------------------------------------------------- */
.tool-page-container {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--primary-500);
}

.breadcrumb-separator {
  color: var(--text-muted);
}

/* Tool Page Header */
.tool-page-header {
  margin-bottom: 2rem;
}

.tool-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.tool-page-title {
  font-size: 2.5rem;
  font-weight: 800;
}

.tool-page-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 800px;
}

/* Features Grid & Step-by-Step Layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.feature-box h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Steps List */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: #FFFFFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Accordion FAQ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-main);
  background: none;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. LEGAL & STATIC PAGES (/about, /privacy, /terms, etc.)
   -------------------------------------------------------------------------- */
.static-page-container {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.static-article {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.static-article h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.static-article p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.static-article h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.static-article ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.static-article li {
  margin-bottom: 0.5rem;
}
