/* css/style.css - Plain CSS (Tailwind CDN cannot process @apply in external files) */

/* ===== Form & Calculator Utilities ===== */
.calc-input {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  width: 100%;
  background: #fff;
  color: #1f2937;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.calc-input:focus {
  outline: none;
  border-color: #1a56db;
  box-shadow: 0 0 0 3px rgba(26,86,219,0.15);
}
select.calc-input { cursor: pointer; }

.label-sm {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.result-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 700;
  color: #1e40af;
  font-size: 1.125rem;
  min-width: 80px;
  text-align: center;
  display: inline-block;
}

.result-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.btn-primary {
  background: #1a56db;
  color: #fff;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background .15s;
  display: inline-block;
}
.btn-primary:hover { background: #1e429f; }

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background .15s;
  display: inline-block;
}
.btn-secondary:hover { background: #e5e7eb; }

.active-tab {
  color: #1a56db !important;
  border-bottom: 2px solid #1a56db !important;
}

/* ===== Article Content ===== */
.article-content { padding: 0.5rem 0; }
.article-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #e5e7eb;
}
.article-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-top: 1.1rem;
  margin-bottom: 0.4rem;
}
.article-content p {
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}
.article-content ul, .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
  color: #4b5563;
  font-size: 0.9rem;
}
.article-content li { margin-bottom: 0.35rem; line-height: 1.6; }
.article-content strong { color: #1f2937; font-weight: 600; }
.article-content:empty { display: none; }

/* ===== Scrollbar hide ===== */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== Line Clamp ===== */
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ===== Number input spinner removal ===== */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* ===== Tab buttons (generic) ===== */
.pct-tab, .ttab, .dtab, .ptab, .ddtab, .stab, .fop, .lbt {
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 1rem;
}

/* ===== Print ===== */
@media print {
  header, footer, aside, .adsbygoogle { display: none !important; }
  main { max-width: 100%; }
}

/* ===== Ad placeholder (before load) ===== */
.adsbygoogle:not([data-adsbygoogle-status]) {
  background: #f9fafb;
  border: 1px dashed #e5e7eb;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.75rem;
}

/* ===== Responsive table ===== */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ===== Unit toggle buttons ===== */
.unit-btn, .fuel-btn, .filter-btn, .tip-pct-btn {
  cursor: pointer;
  transition: all .15s;
}

/* ===== Checkbox sizing ===== */
input[type="checkbox"] { cursor: pointer; }

/* ===== FAQ icon transition ===== */
.faq-icon { transition: transform .2s; }
