/* ProToolHub Tools - Calculator Styles
   Clean, white, mobile-first, AdSense friendly */

.pth-calc-wrapper {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  max-width: 520px;
}

.pth-calc-title {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}

.pth-calc-row {
  margin-bottom: 16px;
}

.pth-calc-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.pth-calc-row input[type="number"],
.pth-calc-row input[type="date"],
.pth-calc-row select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.pth-calc-row input:focus,
.pth-calc-row select:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.12);
}

.pth-calc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  margin-top: 8px;
  background: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.pth-calc-btn:hover {
  background: #0b5ed7;
}

.pth-calc-btn:active {
  transform: scale(0.99);
}

.pth-calc-result {
  margin-top: 20px;
  padding: 16px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
}

.pth-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e0f2fe;
  font-size: 0.95rem;
}

.pth-result-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pth-result-item span {
  color: #4b5563;
}

.pth-result-item strong {
  color: #0c4a6e;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Mobile refinements */
@media (max-width: 480px) {
  .pth-calc-wrapper {
    padding: 18px;
    margin: 16px 0 24px;
    border-radius: 10px;
  }

  .pth-calc-title {
    font-size: 1.15rem;
  }
}

.pth-currency-row select { font-weight: 600; }
.pth-currency-hint { margin: 6px 0 0; font-size: 0.8rem; color: #64748b; }
.pth-calc-note { font-size: 0.9rem; color: #64748b; margin: 0 0 12px; }
.pth-tool-content h2 { margin-top: 1.75em; font-size: 1.25rem; }
.pth-tool-content h3 { margin-top: 1.1em; font-size: 1.05rem; }
.pth-tool-content .pth-intro { font-size: 1.05rem; line-height: 1.65; color: #334155; }
.pth-page-disclaimer { margin-top: 2em; padding: 14px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.9rem; color: #64748b; }

/* Time calculator — calculator.net style grid */
.pth-time-grid-wrap { margin: 8px 0 16px; }
.pth-time-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
}
.pth-time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.pth-time-grid input {
  width: 100%;
  padding: 10px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  text-align: center;
  font-size: 1rem;
  background: #fff;
}
.pth-time-grid input[readonly] {
  background: #f1f5f9;
  font-weight: 600;
}
.pth-time-ops {
  text-align: center;
  margin: 10px 0 14px;
  font-size: 0.95rem;
}
.pth-time-ops label { margin: 0 12px; cursor: pointer; }
.pth-time-eq {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 6px 0 10px;
  color: #334155;
}
.pth-time-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.pth-calc-btn-secondary {
  background: #94a3b8 !important;
}
.pth-calc-btn-secondary:hover { background: #64748b !important; }
.pth-calc-subtitle { margin: 0 0 8px; font-size: 1.1rem; }
