/* ==========================================================================
   PYRAMID CALCULATOR SUITE - PAGE STYLES
   Designed for all 16 individual calculator pages and the /pyramid-calculators/ hub.
   Fully responsive, high-contrast, accessible, and glassmorphic.
   ========================================================================== */

/* Breadcrumbs Navigation */
.breadcrumbs-nav {
  padding: 1.5rem 0 0.5rem 0;
  position: relative;
  z-index: 2;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumbs-link:hover {
  color: var(--primary-light);
}

.breadcrumbs-separator {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.breadcrumbs-current {
  color: var(--text-main);
  font-weight: 500;
}

/* Calculator Page Header */
.calc-page-header {
  padding: 2rem 0 2.5rem 0;
  text-align: left;
  max-width: 900px;
}

.calc-page-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.calc-page-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.calc-page-intro {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 2-Column Calculator App Grid */
.calc-app-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .calc-app-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Calculator Box */
.calc-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.calc-box-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--card-border);
}

.calc-box-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.calc-box-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Form Groups & Inputs */
.calc-field-group {
  margin-bottom: 1.4rem;
}

.calc-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.calc-input-row {
  display: flex;
  gap: 0.5rem;
}

.calc-input-field {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.calc-input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.calc-unit-select {
  width: 95px;
  background: #000000;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  outline: none;
  cursor: pointer;
}

.calc-btn-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Dynamic Live Results Card */
.calc-result-panel {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.result-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.result-main-value-wrap {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.result-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.result-number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  word-break: break-all;
}

.result-unit {
  font-size: 1.1rem;
  color: var(--primary-light);
  margin-left: 0.35rem;
}

.result-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-subcard {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.result-subcard-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.result-subcard-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Unit Conversion Grid */
.conversions-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.conversions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
}

.conv-chip {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
}

.conv-chip-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: block;
}

.conv-chip-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Step by Step Breakdown */
.step-solution-box {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 3.5rem;
}

.step-solution-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #0b0f19;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-desc strong {
  color: var(--text-main);
}

/* Formula & Content Article */
.calc-content-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3.5rem;
}

.calc-content-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-content-card h2:first-child {
  margin-top: 0;
}

.calc-content-card p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.calc-content-card ul,
.calc-content-card ol {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 0 1.5rem 1.5rem;
}

.calc-content-card li {
  margin-bottom: 0.5rem;
}

/* Other Calculators Section (Sister Solvers) */
.more-calculators-section {
  padding: 4.5rem 0;
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid var(--card-border);
  position: relative;
}

.more-calcs-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.more-filter-btn {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.more-filter-btn:hover {
  color: var(--text-main);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(30, 41, 59, 0.9);
}

.more-filter-btn.active {
  background: var(--primary);
  color: #0b0f19;
  border-color: var(--primary);
  box-shadow: 0 2px 10px var(--primary-glow);
}

.more-calcs-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.75rem;
}

.more-filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.more-filter-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(30, 41, 59, 0.85);
}

.more-filter-btn.active {
  background: #f59e0b;
  color: #ffffff;
  border-color: #fbbf24;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.45);
}

.more-calcs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (max-width: 1100px) {
  .more-calcs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .more-calcs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .more-calcs-grid {
    grid-template-columns: 1fr;
  }
}

.home-calc-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.85rem 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 165px;
  gap: 1.15rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.home-calc-card:hover,
.home-calc-card:focus-visible {
  border-color: #f59e0b;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35), inset 0 0 15px rgba(245, 158, 11, 0.08);
  transform: translateY(-4px);
}

.home-calc-card.active-calc-card {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35), inset 0 0 15px rgba(245, 158, 11, 0.1);
  cursor: default;
}

.home-calc-card.active-calc-card:hover {
  transform: none;
}

.home-calc-card.active-calc-card .home-calc-title {
  color: #fbbf24;
}

.calc-current-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: #f59e0b;
  color: #0f172a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.home-calc-icon-wrap {
  width: 68px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.home-calc-icon-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.home-calc-card:hover .home-calc-icon-wrap svg {
  transform: scale(1.1);
}

.home-calc-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.home-calc-card:hover .home-calc-title {
  color: #ffffff;
}

.more-calcs-cta-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(56, 189, 248, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg, 20px);
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

