/* ============================================================
   ConverterEveryone — app.css
   Modern Green Accent Theme
   ============================================================ */

/* ── Reset extras ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Gradient text ── */
.cve-grad {
  background: linear-gradient(135deg, #22c55e, #10b981, #059669);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
.cve-nav {
  background: rgba(3,10,6,.96);
  border-bottom: 1px solid rgba(34,197,94,.1);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
}
.cve-nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.cve-nav-link {
  display: inline-flex; align-items: center;
  padding: .375rem .75rem; border-radius: .5rem;
  font-size: .875rem; color: #9ca3af; font-weight: 500;
  background: none; border: none;
  transition: color .15s, background .15s; white-space: nowrap;
}
.cve-nav-link:hover { color: #fff; background: rgba(34,197,94,.08); }

/* Logo */
.cve-logo {
  display: inline-flex; align-items: center; gap: .625rem;
  color: #fff; font-family: 'Outfit', sans-serif;
  font-weight: 800; font-size: 1.2rem;
}
.cve-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #22c55e, #059669);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(34,197,94,.35); color: #fff; font-size: 14px; flex-shrink: 0;
}
.cve-logo-icon-sm { width: 28px; height: 28px; border-radius: 6px; font-size: 11px; }

.cve-logo-text {
  display: inline-flex; flex-direction: row; align-items: baseline;
}
.cve-logo-line1, .cve-logo-line2 { display: inline; }
@media (max-width: 480px) {
  .cve-logo-text {
    display: flex; flex-direction: column; align-items: flex-start;
    line-height: 1.15;
  }
  .cve-logo { font-size: .8rem; gap: .4rem; }
  .cve-logo-line1 { font-size: .72rem; }
  .cve-logo-line2 { font-size: .72rem; }
}

/* Dropdown */
.cve-dropdown { position: relative; }
.cve-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 240px;
  background: #0a1a0f; border: 1px solid rgba(34,197,94,.15);
  border-radius: 12px; padding: .5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,.7); z-index: 200;
  margin-top: 0; padding-top: 1rem;
}
.cve-dropdown-menu::before {
  content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.cve-dropdown:hover .cve-dropdown-menu { display: block; }
.cve-dd-item {
  display: flex; align-items: center; gap: .625rem;
  padding: .5rem .75rem; border-radius: 8px;
  font-size: .8125rem; color: #9ca3af;
  transition: background .15s, color .15s;
}
.cve-dd-item:hover { background: rgba(34,197,94,.08); color: #fff; }

/* Mobile nav */
.cve-mobile-nav {
  display: none;
  background: #080f0a; border-top: 1px solid rgba(34,197,94,.1);
  padding: .5rem 0 1rem;
}
.cve-mobile-nav.is-open { display: block; }
.cve-mob-link {
  display: flex; align-items: center;
  padding: .65rem 1.25rem; color: #9ca3af; font-size: .9rem;
  transition: background .15s, color .15s;
}
.cve-mob-link:hover { background: rgba(34,197,94,.06); color: #fff; }
.cve-mob-tools-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem 1.25rem; color: #9ca3af; font-size: .9rem;
  width: 100%; background: none; border: none; text-align: left;
  transition: color .15s;
}
.cve-mob-tools-toggle:hover { color: #fff; }
.cve-chev { transition: transform .2s; }
.cve-mob-tools-toggle.open .cve-chev { transform: rotate(180deg); }
.cve-mob-tools-list { display: none; background: rgba(0,0,0,.2); }
.cve-mob-tools-list.open { display: block; }
.cve-mob-divider { height: 1px; background: rgba(34,197,94,.08); margin: .4rem 1.25rem; }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.cve-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.4rem;
  background: linear-gradient(135deg, #22c55e, #059669);
  color: #fff; border-radius: .75rem;
  font-weight: 600; font-size: .9375rem; border: none;
  box-shadow: 0 4px 14px rgba(34,197,94,.3);
  transition: opacity .15s, transform .15s;
}
.cve-btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.cve-btn-primary:active { transform: translateY(0); }
.cve-btn-sm { padding: .4rem 1rem; font-size: .875rem; }

.cve-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.4rem;
  background: rgba(255,255,255,.06); color: #d1d5db;
  border-radius: .75rem; font-weight: 500; font-size: .9375rem;
  border: 1px solid rgba(255,255,255,.1);
  transition: background .15s, color .15s;
}
.cve-btn-ghost:hover { background: rgba(34,197,94,.1); color: #4ade80; border-color: rgba(34,197,94,.25); }

/* ══════════════════════════════════════════════
   FLASH MESSAGES
══════════════════════════════════════════════ */
.cve-flash {
  display: flex; align-items: center; gap: .625rem;
  padding: .75rem 1.5rem; font-size: .875rem; font-weight: 500;
}
.cve-flash-success {
  background: rgba(20,83,45,.5); border-bottom: 1px solid rgba(34,197,94,.2); color: #86efac;
}
.cve-flash-error {
  background: rgba(127,29,29,.5); border-bottom: 1px solid rgba(239,68,68,.2); color: #fca5a5;
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.cve-hero {
  padding: 5rem 1.5rem 4rem; text-align: center;
  background: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(34,197,94,.1), transparent);
}
.cve-hero-inner { max-width: 720px; margin: 0 auto; }
.cve-hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.22);
  border-radius: 9999px; padding: .375rem 1rem;
  font-size: .875rem; font-weight: 500; color: #4ade80; margin-bottom: 1.5rem;
}
.cve-hero-title {
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  color: #fff; line-height: 1.1; margin: 0 0 1.25rem;
}
.cve-hero-sub {
  color: #9ca3af; font-size: 1.125rem; line-height: 1.7;
  max-width: 540px; margin: 0 auto 2.5rem;
}
.cve-hero-btns {
  display: flex; flex-wrap: wrap; gap: .875rem; justify-content: center;
}

/* ══════════════════════════════════════════════
   TOOLS / CONVERTERS SECTION
══════════════════════════════════════════════ */
.cve-tools-section { padding: 3rem 1.5rem; }
.cve-section-inner { max-width: 1200px; margin: 0 auto; }
.cve-section-title {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 2rem;
  color: #fff; text-align: center; margin: 0 0 .5rem;
}
.cve-section-sub { color: #6b7280; text-align: center; margin: 0 0 2.5rem; }
.cve-section-label { font-family: 'Outfit', sans-serif; font-weight: 600; color: #fff; font-size: 1rem; }

.cve-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.cve-tool-card {
  display: block; padding: 1.5rem;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 1.25rem;
  transition: border-color .2s, background .2s, transform .2s;
}
.cve-tool-card:hover {
  border-color: rgba(34,197,94,.3);
  background: rgba(34,197,94,.04);
  transform: translateY(-2px);
}
.cve-tool-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.cve-tool-name {
  font-family: 'Outfit', sans-serif; font-weight: 600;
  color: #fff; font-size: 1.0625rem; margin: 0 0 .375rem;
}
.cve-tool-desc { color: #6b7280; font-size: .875rem; line-height: 1.55; margin: 0 0 .875rem; }
.cve-tool-arrow { color: #22c55e; font-size: .8125rem; font-weight: 500; }

/* Features */
.cve-features-section {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.cve-features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.cve-feature-card {
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07);
  border-radius: 1.25rem; padding: 1.75rem; text-align: center;
}
.cve-feature-icon { font-size: 1.5rem; margin-bottom: .875rem; }
.cve-feature-title {
  font-family: 'Outfit', sans-serif; font-weight: 700; color: #fff;
  font-size: 1.0625rem; margin: 0 0 .5rem;
}
.cve-feature-desc { color: #6b7280; font-size: .875rem; line-height: 1.6; margin: 0; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.cve-footer {
  background: #060d08; border-top: 1px solid rgba(34,197,94,.08);
  padding: 3rem 1.5rem 1.5rem;
}
.cve-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.cve-footer-heading { color: #fff; font-size: .875rem; font-weight: 600; margin: 0 0 .75rem; }
.cve-footer-link {
  display: block; color: #6b7280; font-size: .875rem;
  margin-bottom: .5rem; transition: color .15s;
}
.cve-footer-link:hover { color: #4ade80; }
.cve-footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(34,197,94,.08);
  padding-top: 1.25rem; text-align: center; color: #4b5563; font-size: .875rem;
}

/* ══════════════════════════════════════════════
   CONVERTER PAGE LAYOUT
══════════════════════════════════════════════ */
.cve-calc-page { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.cve-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8125rem; color: #4b5563; margin-bottom: 1.75rem;
}
.cve-breadcrumb a { color: #6b7280; transition: color .15s; }
.cve-breadcrumb a:hover { color: #4ade80; }

.cve-calc-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
@media (max-width: 768px) { .cve-calc-layout { grid-template-columns: 1fr; } }

/* Card wrappers */
.cve-calc-form-wrap, .cve-result-wrap {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1.5rem; padding: 1.75rem;
}

/* Converter header */
.cve-calc-header {
  display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem;
}
.cve-calc-icon-lg {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.cve-calc-title {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.375rem;
  color: #fff; margin: 0 0 .2rem;
}
.cve-calc-subtitle { color: #6b7280; font-size: .875rem; margin: 0; }

/* Form elements */
.cve-form { display: flex; flex-direction: column; gap: 1rem; }
.cve-field { display: flex; flex-direction: column; gap: .375rem; }
.cve-label {
  font-size: .8125rem; font-weight: 500; color: #9ca3af;
  text-transform: uppercase; letter-spacing: .04em;
}
.cve-input-wrap { position: relative; }
.cve-field-icon {
  position: absolute; left: .875rem; top: 50%; transform: translateY(-50%);
  color: #4b5563; font-size: .875rem; pointer-events: none;
}
.cve-input {
  width: 100%; padding: .7rem 1rem .7rem 2.5rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: .75rem; color: #f9fafb; font-size: .9375rem;
  font-family: inherit; transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.cve-input:focus {
  border-color: rgba(34,197,94,.4);
  box-shadow: 0 0 0 3px rgba(34,197,94,.08);
}
.cve-input::placeholder { color: #4b5563; }
.cve-input-no-icon { padding-left: 1rem; }

.cve-select {
  padding: .7rem 2rem .7rem 1rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: .75rem; color: #f9fafb; font-size: .9375rem;
  font-family: inherit; outline: none; cursor: pointer;
  transition: border-color .15s; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M8 10.5L2.5 5h11L8 10.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 12px;
}
.cve-select:focus { border-color: rgba(34,197,94,.4); box-shadow: 0 0 0 3px rgba(34,197,94,.08); }
.cve-select option { background: #0f1f14; }

/* Result area */
.cve-result-heading {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.125rem;
  color: #fff; margin: 0 0 1.25rem;
}
.cve-result-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.cve-result-row:last-child { border-bottom: none; }
.cve-result-label { color: #6b7280; font-size: .875rem; }
.cve-result-val { color: #d1d5db; font-weight: 500; font-size: .9375rem; }

/* Main result highlight box */
.cve-result-main {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem; margin-bottom: 1.25rem;
  background: rgba(34,197,94,.07);
  border: 1px solid rgba(34,197,94,.2); border-radius: 1rem;
}
.cve-result-arrow { flex-shrink: 0; font-size: 1.25rem; color: #4ade80; }
.cve-result-big {
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: 1.625rem; color: #fff; margin: 0;
}
.cve-result-big-green { color: #4ade80; }

/* Tabs */
.cve-tabs {
  display: flex; background: rgba(255,255,255,.05);
  border-radius: .75rem; padding: .25rem; gap: .25rem; flex-wrap: wrap;
}
.cve-tab {
  flex: 1; padding: .45rem .75rem; border-radius: .5rem; min-width: 60px;
  font-size: .8125rem; font-weight: 500; color: #6b7280;
  background: none; border: none; transition: background .15s, color .15s;
  white-space: nowrap;
}
.cve-tab.active { background: rgba(34,197,94,.2); color: #4ade80; }

/* Info section */
.cve-info-section {
  margin-top: 2rem; padding: 1.5rem;
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06);
  border-radius: 1rem;
}
.cve-info-title {
  font-family: 'Outfit', sans-serif; font-weight: 600; color: #fff;
  font-size: 1rem; margin: 0 0 .625rem;
}
.cve-info-text { color: #6b7280; font-size: .875rem; line-height: 1.7; margin: 0; }
.cve-info-text strong { color: #9ca3af; }

/* Reference grid */
.cve-ref-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .75rem;
}
.cve-ref-item {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: .625rem; padding: .625rem .875rem;
}
.cve-ref-label { font-size: .7rem; color: #4b5563; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .2rem; }
.cve-ref-val { font-family: 'Outfit', sans-serif; font-weight: 600; color: #d1d5db; font-size: .9375rem; margin: 0; }

/* Temperature all-in-one box */
.cve-temp-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: .75rem; margin-bottom: 1rem;
}
.cve-temp-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: .75rem; padding: .875rem; text-align: center;
}
.cve-temp-val { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.25rem; color: #fff; margin: 0 0 .2rem; }
.cve-temp-lbl { font-size: .75rem; color: #6b7280; margin: 0; }

/* Color preview */
.cve-color-preview {
  width: 100%; height: 90px; border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.1); margin-bottom: 1rem;
  transition: background .3s;
}
.cve-color-swatches {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.cve-color-swatch {
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer;
  border: 2px solid transparent; transition: border-color .15s, transform .15s;
  flex-shrink: 0;
}
.cve-color-swatch:hover { border-color: rgba(255,255,255,.4); transform: scale(1.1); }
.cve-color-copy {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .75rem; color: #6b7280; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08); border-radius: .5rem;
  padding: .25rem .625rem; cursor: pointer; transition: background .15s, color .15s;
  white-space: nowrap;
}
.cve-color-copy:hover { background: rgba(34,197,94,.1); color: #4ade80; }
.cve-color-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.05); gap: .5rem;
}
.cve-color-row:last-child { border-bottom: none; }
.cve-color-format { font-size: .75rem; color: #4b5563; text-transform: uppercase; letter-spacing: .05em; min-width: 50px; }
.cve-color-code { font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: .875rem; color: #d1d5db; }

/* Timezone result */
.cve-tz-display {
  text-align: center; padding: 1.25rem;
  background: rgba(34,197,94,.07);
  border: 1px solid rgba(34,197,94,.2); border-radius: 1rem; margin-bottom: 1.25rem;
}
.cve-tz-clock { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 2.25rem; color: #4ade80; margin: 0 0 .25rem; }
.cve-tz-date { color: #9ca3af; font-size: .9375rem; margin: 0; }

/* Data storage */
.cve-ds-result {
  padding: 1.25rem; background: rgba(34,197,94,.07);
  border: 1px solid rgba(34,197,94,.2); border-radius: 1rem; margin-bottom: 1.25rem;
  text-align: center;
}
.cve-ds-val { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.75rem; color: #4ade80; margin: 0 0 .25rem; }
.cve-ds-sub { color: #6b7280; font-size: .875rem; margin: 0; }

/* ══════════════════════════════════════════════
   STATIC PAGES
══════════════════════════════════════════════ */
.cve-page-content { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.cve-page-h1 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(1.75rem,4vw,2.5rem); color: #fff; margin: 0 0 .75rem; }
.cve-page-lead { color: #9ca3af; font-size: 1.125rem; line-height: 1.7; margin: 0 0 2rem; }
.cve-page-body { color: #9ca3af; line-height: 1.8; }
.cve-page-body h2 { font-family: 'Outfit', sans-serif; font-weight: 700; color: #fff; font-size: 1.25rem; margin: 2rem 0 .75rem; }
.cve-page-body p { margin: 0 0 1rem; }
.cve-page-body a { color: #4ade80; }
.cve-page-body a:hover { text-decoration: underline; }
.cve-page-body strong { color: #d1d5db; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .cve-hero { padding: 3rem 1.25rem 2.5rem; }
  .cve-hero-title { font-size: 2rem; }
  .cve-hero-sub { font-size: 1rem; }
  .cve-tools-section { padding: 2rem 1.25rem; }
  .cve-calc-form-wrap, .cve-result-wrap { padding: 1.25rem; }
  .cve-result-main { flex-direction: column; text-align: center; }
  .cve-temp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cve-ref-grid { grid-template-columns: 1fr; }
}
