/* Date Difference Calculator — Calcs.pro page styles */

/* Base Structural Layout Elements */
.breadcrumb-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 0.8rem;
  color: var(--textcolor);
}
.breadcrumb-bar a { color: #00AAFE; text-decoration: none; }
.breadcrumb-bar a:hover { text-decoration: underline; }

.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px 60px;
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 24px;
  align-items: start;
}
.page-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 4px;
}
.page-subtitle {
  font-size: 0.875rem;
  color: var(--textcolor);
  margin: 0 0 24px;
}
.card-dark {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 18px;
}

/* Sidebar Utilities */
.sidebar { display: flex; flex-direction: column; gap: 14px; }
.sidebar-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.sidebar-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 12px;
}
.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--bg3);
}
.related-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-item:hover { opacity: .8; }
.related-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.icon-date { background: rgba(168, 85, 247, .14); }
.icon-time { background: rgba(0, 170, 254, .14); }
.icon-calendar { background: rgba(34, 197, 94, .14); }
.related-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--input-color);
}
.related-desc {
  display: block;
  font-size: 0.74rem;
  color: var(--textcolor);
  margin-top: 1px;
  line-height: 1.35;
}
.tip-row { display: flex; gap: 8px; margin-bottom: 9px; align-items: flex-start; }
.tip-row:last-child { margin-bottom: 0; }
.tip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00AAFE;
  flex-shrink: 0;
  margin-top: 6px;
}
.tip-text { font-size: 0.8rem; color: var(--textcolor); line-height: 1.55; margin: 0; }
.tip-text strong { color: #9ca3af; }

/* Tabbed Configuration Interface */
.mode-toggle {
  display: flex;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
}
.mode-tab {
  flex: 1;
  padding: 9px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--textcolor);
  background: none;
  border: none;
  cursor: pointer;
  transition: all .14s;
  font-family: 'Inter', sans-serif;
}
.mode-tab:hover:not(.active) { color: var(--input-color); background: rgba(255,255,255,.025); }
.mode-tab.active { background: linear-gradient(90deg, #00AAFE, #005CFB); color: #fff; }
.mode-pane { display: none; }
.mode-pane.active { display: block; }

/* Interactive Form Engine */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.78rem; font-weight: 600; color: #9ca3af; }
.field-help { font-size: 0.72rem; color: #6b7280; line-height: 1.35; }
.input-wrap {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.input-wrap:focus-within {
  border-color: #00AAFE;
  box-shadow: 0 0 0 3px rgba(0,170,254,.15);
}
.input-prefix, .input-suffix {
  padding: 9px 10px;
  font-size: 0.85rem;
  color: var(--textcolor);
  background: var(--bg2);
  white-space: nowrap;
  flex-shrink: 0;
}
.input-wrap input, .input-wrap select {
  flex: 1;
  padding: 9px 10px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--input-color);
  background: transparent;
  border: none;
  outline: none;
  min-width: 0;
  color-scheme: dark;
}
.input-wrap select { cursor: pointer; }
.input-wrap select option { background: var(--bg2); color: var(--input-color); }
.input-wrap input::placeholder { color: #4b5563; }
.input-wrap input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .8; }
.operation-group { margin-bottom: 16px; }
.check-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0 0 18px;
  color: var(--textcolor);
  font-size: 0.82rem;
  cursor: pointer;
  user-select: none;
}
.check-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.custom-check {
  width: 17px;
  height: 17px;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  color: transparent;
  background: var(--input-bg);
  transition: all .15s;
}
.check-row input:checked + .custom-check {
  border-color: #00AAFE;
  background: #00AAFE;
  color: #fff;
}
.check-row input:focus-visible + .custom-check { box-shadow: 0 0 0 3px rgba(0,170,254,.18); }
.calc-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #00AAFE, #005CFB);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: opacity .14s, transform .12s;
  font-family: 'Inter', sans-serif;
}
.calc-btn:hover { opacity: .88; transform: translateY(-1px); }
.calc-btn:active { transform: translateY(0); }
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--textcolor);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 16px 0 10px;
}
hr.divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

/* Tabular Results Layout */
.results-section { display: none; margin-top: 18px; }
.results-section.show { display: block; }
.results-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 7px;
}
.result-label { margin: 0; }
.date-range-text { font-size: .75rem; color: #6b7280; text-align: right; }
.rate-table { width: 100%; border-collapse: collapse; }
.rate-table tr { border-bottom: 1px solid var(--bg3); }
.rate-table tr:last-child { border-bottom: none; }
.rate-table td { padding: 11px 14px; font-size: 0.9rem; }
.rate-table td:first-child { color: #9ca3af; }
.rate-table td:last-child { text-align: right; font-weight: 700; font-size: 1rem; color: var(--input-color); }
.rate-table .highlight-row td { background: rgba(0,170,254,.07); }
.rate-table .highlight-row td:first-child { color: #00AAFE; font-weight: 600; }
.rate-table .highlight-row td:last-child { color: #00AAFE; font-size: 1.15rem; }
.result-note {
  font-size: .74rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 10px 0 0;
}
.date-result-card {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(0,170,254,.22);
  background: rgba(0,170,254,.07);
  border-radius: 10px;
}
.date-result-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,170,254,.16);
  font-size: 19px;
}
.date-result-date { font-size: 1rem; font-weight: 700; color: #00AAFE; line-height: 1.35; }
.date-result-detail { color: var(--textcolor); font-size: .8rem; margin-top: 3px; }

/* Educational Content Blocks */
.blog-section { max-width: 1200px; margin: 0 auto; padding: 0 16px 72px; }
.blog-section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.blog-section-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #00AAFE;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: rgba(0,170,254,.1);
  border: 1px solid rgba(0,170,254,.22);
  border-radius: 20px;
  padding: 4px 12px;
}
.blog-section-title { font-size: 1.2rem; font-weight: 700; color: var(--heading); margin: 0; }
.blog-intro {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.75;
}
.blog-intro strong { color: var(--input-color); }
.blog-intro p { margin: 0 0 12px; }
.blog-intro p:last-child { margin-bottom: 0; }
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.blog-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
}
.blog-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(0,170,254,.13);
  border: 1px solid rgba(0,170,254,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 13px;
  color: #00AAFE;
}
.blog-card h3 { font-size: 0.92rem; font-weight: 700; color: var(--heading); margin: 0 0 8px; }
.blog-card p { font-size: 0.82rem; color: var(--textcolor); line-height: 1.7; margin: 0; }

/* Accordion Engine Component */
.faq-section-title { font-size: 1.05rem; color: var(--heading); font-weight: 700; margin: 0 0 12px; }
.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-item:hover { border-color: var(--card-hover-border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  gap: 12px;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.faq-q-text { font-size: 0.88rem; font-weight: 600; color: var(--input-color); }
.faq-chevron { width: 18px; height: 18px; color: #00AAFE; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner {
  padding: 13px 18px 15px;
  font-size: 0.84rem;
  color: var(--textcolor);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner strong { color: #9ca3af; }

/* Social Sharing Utilities */
.share-bar { max-width: 1200px; margin: 0 auto; padding: 0 16px 48px; }
.share-inner {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.share-heading { font-size: 0.88rem; font-weight: 700; color: var(--input-color); }
.share-sub { font-size: 0.76rem; color: var(--textcolor); }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .12s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.share-btn:hover { opacity: .88; transform: translateY(-1px); }
.share-btn-tw { background: #000; color: #fff; }
.share-btn-fb { background: #1877f2; color: #fff; }
.share-btn-wa { background: #25d366; color: #fff; }
.share-btn svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* Micro Fluid Responsive Architecture */
@media (max-width: 900px) {
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .page-wrap { padding: 20px 14px 40px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .sidebar { grid-template-columns: 1fr; }
  .card-dark { padding: 17px; }
  .mode-tab { font-size: .77rem; padding: 10px 5px; }
  .blog-section-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .results-heading-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .date-range-text { text-align: left; }
  .share-inner { padding: 18px; }
}
