/* landing.css - Volume of Revolution Calculator Custom Styles */

:root {
  --primary-purple: #6740cb;
  --primary-gradient: linear-gradient(135deg, #6740cb 0%, #8b5cf6 100%);
  --secondary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --card-shadow: 0 10px 30px rgba(103, 64, 203, 0.08);
  --accent-color: #f59e0b;
}

/* Header Topbar Fix */
.header .topbar {
  background-color: #5b35bc !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header .topbar a {
  color: #ffffff !important;
  text-decoration: none;
}

.header .topbar i {
  color: #ffffff !important;
}

/* Hero Section Formatting Fix */
.calc-hero-section {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
  color: #ffffff !important;
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
}

.calc-hero-section h1 {
  color: #ffffff !important;
  font-weight: 700;
  margin-top: 10px;
}

.calc-hero-section p {
  color: rgba(255, 255, 255, 0.95) !important;
}

.calc-hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Aggregate Rating Pill */
.hero-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 22px;
  border-radius: 50px;
  margin-top: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-rating-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.hero-rating-pill .stars-group {
  display: inline-flex;
  align-items: center;
}

.hero-rating-pill .stars-group i {
  color: #fbbf24;
  font-size: 1.05rem;
  margin-right: 3px;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.hero-rating-pill .rating-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.25);
  display: inline-block;
}

.calc-card-main {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2ff;
  padding: 32px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.form-label-custom {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.input-custom-group .form-control,
.input-custom-group .form-select {
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.input-custom-group .form-control:focus,
.input-custom-group .form-select:focus {
  border-color: #6740cb;
  box-shadow: 0 0 0 4px rgba(103, 64, 203, 0.15);
}

.preset-btn-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn-pill:hover {
  background: #6740cb;
  color: #ffffff;
  border-color: #6740cb;
}

.btn-calculate-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  box-shadow: 0 10px 20px rgba(103, 64, 203, 0.3);
  transition: all 0.2s ease;
  width: 100%;
}

.btn-calculate-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(103, 64, 203, 0.4);
  color: #ffffff;
}

.method-badge-detected {
  background: #e0e7ff;
  color: #3730a3;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.output-result-box {
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  margin-top: 24px;
}

.katex-step-box {
  background: #ffffff;
  border-left: 4px solid #6740cb;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.katex-step-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 8px;
}

.content-section-block {
  padding: 60px 0;
}

.comparison-table-custom {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.comparison-table-custom th {
  background: #4338ca;
  color: #ffffff;
  padding: 14px 18px;
  font-size: 0.95rem;
}

.comparison-table-custom td {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 0.925rem;
}

.comparison-table-custom tr:nth-child(even) td {
  background: #f8fafc;
}

@media (max-width: 768px) {
  .calc-hero-section {
    padding: 120px 0 60px;
  }
  .calc-card-main {
    padding: 20px;
    margin-top: -30px;
  }
}
