/*
Theme Name: AtlasCalc Child
Template: astra
Version: 1.0
*/

/* =========================
   DESIGN SYSTEM
========================= */
:root {
  --bg: #ffffff;
  --border: #eaeaea;
  --text: #111827;
  --muted: #6b7280;
  --accent: #4338ca;
}

/* =========================
   GLOBAL
========================= */
body {
  background: var(--bg);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
}

.site-content {
  padding: 0 !important;
}

/* =========================
   MAIN CONTAINER
========================= */
.converter-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================
   TYPOGRAPHY
========================= */
h1 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

h2 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 14px;
}

p {
  font-size: clamp(14px, 2.5vw, 16px);
  margin-bottom: 12px;
  line-height: 1.6;
}

/* =========================
   CONVERTER CARD
========================= */
.converter-box.premium {
  max-width: 520px;
  margin: 20px auto;
  text-align: center;
}

.converter-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =========================
   CLEAN INPUT / OUTPUT
========================= */

.io-block {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;

  min-height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px;
}

/* INPUT */
.io-block input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;

  font-size: clamp(22px, 6vw, 34px);
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

/* OUTPUT */
#converter-answer {
  font-size: clamp(22px, 6vw, 34px);
  font-weight: 700;
  text-align: center;
}

/* base conversion (optional small text) */
#base-conversion {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* SWAP BUTTON */
.swap-center {
  width: 44px;
  height: 44px;

  margin: 6px auto;

  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  cursor: pointer;
}

.swap-center:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}

/* =========================
   QUICK CONVERSIONS
========================= */
.quick-grid {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

#quick-conversions .quick-item {
  display: block;
  padding: 10px 12px;

  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;

  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}

#quick-conversions .quick-item:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}

/* =========================
   HUB
========================= */
.converter-hub {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.hub-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;

  display: flex;
  align-items: center;
  min-height: 52px;
}

/* =========================
   LAYOUT FIXES
========================= */
.converter-container > h1,
.converter-container > h2,
.converter-container > p {
  margin-left: auto;
  margin-right: auto;
}

.ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* H1 stabilumas */
#dynamic-h1 {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swap-center {
  width: 44px;
  height: 44px;

  margin: 6px auto;

  border-radius: 12px;
  border: 1px solid #d1d5db;

  background: #ffffff; /* 🔥 kontrastas */

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  font-weight: 700; /* 🔥 svarbu */
  color: #111827;   /* 🔥 tamsus */

  cursor: pointer;

  transition: transform 0.25s ease, background 0.2s ease, border 0.2s ease;
}

/* hover */
.swap-center:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  transform: rotate(180deg);
}

/* REMOVE ALL INPUT SHADOWS */
.io-block input {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

/* jei dar lieka (Astra focus efektai) */
.io-block input:focus {
  box-shadow: none !important;
  outline: none;
}

/* =========================
   HEIGHT STABILITY FIX
========================= */

/* INPUT + OUTPUT blokai */
.io-block {
  height: 72px;       /* 🔥 fiksuotas aukštis */
  min-height: 72px;
}

/* INPUT viduje */
.io-block input {
  height: 100%;
  line-height: 1;
}

/* OUTPUT stabilumas */
#converter-answer {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   QUICK CONVERSIONS FIXED HEIGHT
========================= */

#quick-conversions {
  min-height: 220px; /* 🔥 stabilus aukštis */
}

/* =========================
   MOBILE HEADER FIX
========================= */

.ast-mobile-header-wrap {
  min-height: 80px; /* 🔥 stabilus aukštis */
  display: flex;
  align-items: center;
}

.hub-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* CENTER OUR OWN LAYOUT */
.converter-container.fullwidth {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-template-page-converters .converter-container {
  max-width: 720px;
  margin: 0 auto;
}

/* HEADER */
.site-header-clean {
  border-bottom: 1px solid #eaeaea;
  background: #fff;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-weight: 700;
  font-size: 18px;
  color: #111827;
  text-decoration: none;
}

.nav a {
  color: #1a73e8;
  text-decoration: none;
  font-size: 14px;
}

/* FOOTER */
.site-footer-clean {
  border-top: 1px solid #eaeaea;
  margin-top: 40px;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

.converter-subtitle,
.converter-hint {
  text-align: center;
}

.all-converters-link {
    text-align: center;
    margin-top: 20px;
}

.show-all-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    background: #f1f3f4;
    color: #202124;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.show-all-btn:hover {
    background: #e2e5e7;
}

.result-base {
  opacity: 0.7;
  font-weight: 500;
}