﻿/* Date Calculator — Tool Styles */
/* Extends /style.css */

/* ── Ad slots hidden ── */
.ad-slot,.ad-leaderboard,.ad-in-article,.ad-anchor,.ad-placeholder,[class*='ad-slot']{display:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;}

/* ── Page hero ── */
.tool-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tool-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 40%),
    radial-gradient(circle at bottom left, rgba(255,255,255,0.07), transparent 35%);
  pointer-events: none;
}
.tool-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff !important;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.tool-hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  backdrop-filter: blur(6px);
}

/* ── Main layout ── */
.tool-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ── Card ── */
.calc-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(15,23,42,0.06);
  margin-bottom: 1.5rem;
}

/* ── Form fields ── */
.form-field {
  margin-bottom: 1.25rem;
}
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text, #0f172a);
  margin-bottom: 0.4rem;
}

/* Inputs and selects — including those outside .form-field */
.form-field input,
.form-field select,
.calc-card input.input,
.calc-card select.input {
  width: 100%;
  background: var(--bg, #f8fafc);
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: var(--text, #0f172a);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
  appearance: auto;
}
.form-field input:focus,
.form-field select:focus,
.calc-card input.input:focus,
.calc-card select.input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
  background: #fff;
}

/* ── Date tabs ── */
.date-tabs.tabs {
  border-bottom: 2px solid var(--border, #e2e8f0);
  margin-bottom: 1.75rem;
}
.date-tabs.tabs ul { border-bottom: none; }
.date-tabs.tabs a {
  color: var(--text-muted, #64748b) !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 1rem;
  transition: color 0.15s, border-color 0.15s;
}
.date-tabs.tabs li:hover a {
  color: #4f46e5 !important;
}
.date-tabs.tabs li.is-active a {
  color: #4f46e5 !important;
  border-bottom-color: #4f46e5 !important;
}

/* ── Buttons ── */
.calc-btn {
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(79,70,229,0.28);
}
.calc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(79,70,229,0.35);
  opacity: 0.96;
}
.calc-btn:active {
  transform: translateY(0);
}

/* ── Copy button ── */
.copy-btn {
  background: transparent;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  margin-right: 0.5rem;
  float: right;
  transition: all 0.2s;
}
.copy-btn:hover { border-color: #4f46e5; color: #4f46e5; }
.copy-btn.copied { border-color: #10b981; color: #10b981; }

/* ── Result notifications ── */
.notification.is-light {
  border-radius: 14px;
  border: 1px solid var(--border, #e2e8f0);
  background: #f8fafc;
}

/* ── "People Also Use" section ── */
.related-tools-section { margin: 2rem 0; }
.related-tools-section h2,
.related-tools-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Tool cards (related section) ── */
.tool-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 1.1rem;
  text-decoration: none;
  color: var(--text, #0f172a);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,0.09);
  border-color: rgba(79,70,229,0.3);
}
.icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-title {
  font-weight: 700;
  font-size: 0.9rem;
}
.tool-desc {
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
}

/* ── Content section ── */
.content-section { margin-top: 2rem; }
.content-section h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text, #0f172a);
  margin: 2rem 0 0.75rem;
  border-left: 3px solid #4f46e5;
  padding-left: 0.75rem;
}
.content-section p {
  color: var(--text-muted, #64748b);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Steps box */
.steps-box {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 1.5rem;
  counter-reset: steps;
}
.steps-box li {
  list-style: none;
  padding: 0.5rem 0 0.5rem 2.5rem;
  position: relative;
  color: var(--text-muted, #64748b);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.steps-box li:last-child { border-bottom: none; }
.steps-box li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Feature pills */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-pill {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.feature-pill strong {
  color: #4f46e5;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.feature-pill p {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  margin: 0;
  line-height: 1.5;
}

/* FAQ */
.faq-item {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.85rem;
}
.faq-item h2,
.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin-bottom: 0.4rem;
}
.faq-item p {
  font-size: 0.875rem;
  color: var(--text-muted, #64748b);
  margin: 0;
  line-height: 1.65;
}

/* Related list */
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { border-bottom: 1px solid var(--border, #e2e8f0); }
.related-list li:last-child { border-bottom: none; }
.related-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0;
  color: var(--text-muted, #64748b);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.related-list a:hover { color: #4f46e5; }
.related-list a::before {
  content: "→";
  color: #4f46e5;
  font-weight: 700;
  flex-shrink: 0;
}

/* Compact grid for related tools */
.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
