/* Everyday Conversions — Updated Visual Theme */

/* ========== COLOR VALUES ========== */
:root {
  --hunter-green: #2C5F34;         /* hunter green accent */ 
  --dark-gray: #2A2A2A;            /* primary dark background */
  --medium-gray: #3C3C3C;          /* mid-content background */
  --light-gray: #E7E7E7;           /* light neutral backgrounds */
  --text-dark: #111111;            /* main text */
  --text-light: #FFFFFF;           /* light text */
  --card-bg: #FFFFFF;              /* white cards */
  --border-gray: #555555;          /* subtle border */
  --hunter-glow: rgba(44, 95, 52, 0.5);
  --hunter-glow-strong: rgba(44, 95, 52, 0.8);
  --scanline: rgba(44, 95, 52, 0.12);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Saira Semi Condensed", "Rajdhani", "Exo 2", "Segoe UI", Arial, sans-serif;
  background: var(--light-gray);
  color: var(--text-dark);
}

a {
  color: var(--hunter-green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ========== LAYOUT HELPERS ========== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ========== HOMEPAGE APP LOOK ========== */
.homepage {
  background-color: var(--medium-gray);
  color: var(--text-light);
  background-image:
    radial-gradient(900px 420px at 50% -120px, rgba(44, 95, 52, 0.35), transparent 70%),
    radial-gradient(500px 320px at 10% 20%, rgba(44, 95, 52, 0.25), transparent 65%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.1)),
    repeating-linear-gradient(180deg, var(--scanline) 0px, var(--scanline) 1px, transparent 1px, transparent 6px);
  background-attachment: fixed;
}
.homepage a {
  color: var(--text-light);
  text-shadow: 0 0 10px rgba(44, 95, 52, 0.6);
}
.homepage .accent-border,
.homepage .accent-border-top {
  border-color: var(--hunter-green);
  box-shadow: 0 0 18px rgba(44, 95, 52, 0.35);
}

/* ========== HEADER ========== */
.site-header {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(22, 27, 24, 0.9));
  color: var(--text-light);
  border-bottom: 3px solid var(--hunter-green);
  padding: 14px 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25), 0 0 18px var(--hunter-glow);
}
.site-header .logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-light);
  letter-spacing: 0.6px;
  margin: 0 auto;
  text-align: center;
  display: inline-block;
}
.site-header nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.site-header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
}
.site-header nav a {
  color: #BEE3C0;
  padding: 8px 12px;
  border: 1px solid rgba(44, 95, 52, 0.65);
  border-radius: 8px;
  background: rgba(12, 16, 14, 0.75);
  box-shadow: inset 0 0 12px rgba(44, 95, 52, 0.25), 0 0 10px rgba(44, 95, 52, 0.45);
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.site-header nav a:hover {
  border: 1px solid var(--hunter-green);
  box-shadow: 0 0 14px var(--hunter-glow-strong);
  transform: translateY(-1px);
}

/* ========== HERO SECTION ========== */
.main-hero .hero {
  text-align: center;
  padding: 6px 0 22px;
}
.main-hero .hero h1 {
  font-size: 2.5rem;
  margin: 0;
  text-shadow: 0 0 18px rgba(44, 95, 52, 0.6);
}
.main-hero .lead {
  margin-top: 10px;
  font-size: 1.1rem;
  opacity: 0.92;
}

/* ========== CARD LAYOUT ========== */
.tool-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 22px 0;
}
.card {
  background: linear-gradient(160deg, rgba(18, 22, 20, 0.65), rgba(44, 95, 52, 0.15));
  border: 1px solid rgba(44, 95, 52, 0.45);
  border-radius: 10px;
  padding: 18px;
  color: var(--text-light);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25), inset 0 0 20px rgba(44, 95, 52, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 18px var(--hunter-glow);
  border: 1px solid rgba(44, 95, 52, 0.7);
}
.card h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.4px;
}
.card p {
  margin-top: 6px;
  opacity: 0.85;
}
.card a {
  color: var(--text-light);
}
.card .card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.tool-cards .card {
  padding: 0;
}
.tool-cards .card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px;
  box-sizing: border-box;
}
.card .card-link:focus-visible {
  outline: 2px solid rgba(44, 95, 52, 0.9);
  outline-offset: 3px;
}

/* ========== AD PLACEHOLDERS ========== */
.ad-slot {
  border: 1px dashed rgba(44, 95, 52, 0.6);
  border-radius: 12px;
  min-height: 90px;
  display: grid;
  place-items: center;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(120deg, rgba(16, 20, 18, 0.6), rgba(44, 95, 52, 0.1)),
    repeating-linear-gradient(90deg, rgba(44, 95, 52, 0.1) 0px, rgba(44, 95, 52, 0.1) 1px, transparent 1px, transparent 12px);
  box-shadow: inset 0 0 16px rgba(44, 95, 52, 0.2);
}

/* ========== FOOTER ========== */
.site-footer {
  background: linear-gradient(135deg, rgba(22, 27, 24, 0.95), rgba(18, 20, 20, 0.9));
  color: var(--text-light);
  padding: 14px 0;
  border-top: 3px solid var(--hunter-green);
  text-align: center;
  box-shadow: 0 -10px 22px rgba(0, 0, 0, 0.25), 0 0 16px var(--hunter-glow);
}
.site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  gap: 14px;
  justify-content: center;
}
.site-footer a {
  color: var(--text-light);
}
.site-footer p {
  margin: 4px 0 0;
  font-size: 14px;
  opacity: 0.85;
}

/* ========== MOTION ========== */
.homepage .hero,
.homepage .ad-slot,
.homepage .card {
  animation: rise-in 700ms ease both;
}
.homepage .card:nth-child(2) { animation-delay: 80ms; }
.homepage .card:nth-child(3) { animation-delay: 160ms; }
.homepage .card:nth-child(4) { animation-delay: 240ms; }
.homepage .card:nth-child(5) { animation-delay: 320ms; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ensure form text is light on app-themed pages */
.homepage input,
.homepage select,
.homepage textarea,
.homepage option,
.homepage label {
  color: var(--text-light);
}
.homepage button {
  color: #D7D7D7;
}
.homepage input,
.homepage select,
.homepage textarea {
  background-color: rgba(20, 24, 22, 0.75) !important;
  border-color: rgba(44, 95, 52, 0.6);
  box-shadow: inset 0 0 12px rgba(44, 95, 52, 0.2);
}
.homepage option {
  background-color: rgba(20, 24, 22, 0.95);
}
.homepage ::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.homepage #result,
.homepage #subresult {
  color: var(--text-light);
}
.homepage #result {
  background-color: rgba(20, 24, 22, 0.75) !important;
  border-color: rgba(44, 95, 52, 0.6);
  box-shadow: inset 0 0 12px rgba(44, 95, 52, 0.2);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 520px) {
  .site-footer nav ul {
    flex-direction: column;
    gap: 10px;
  }
}

/* ========== COOKIE CONSENT ========== */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 999;
  background: linear-gradient(120deg, rgba(18, 22, 20, 0.92), rgba(44, 95, 52, 0.35));
  border: 1px solid rgba(44, 95, 52, 0.6);
  color: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35), 0 0 18px var(--hunter-glow);
}
.cookie-banner__content {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  font-size: 14px;
  opacity: 0.92;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
}
.cookie-banner__btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(44, 95, 52, 0.7);
  background: rgba(20, 24, 22, 0.7);
  color: #D7D7D7;
  cursor: pointer;
  box-shadow: inset 0 0 12px rgba(44, 95, 52, 0.2);
}
.cookie-banner__btn:hover {
  box-shadow: 0 0 12px var(--hunter-glow);
}
/* ========== WIDGET LOOK (Converters/Calculators) ========== */

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.widget {
  position: relative;
}

.widget-ui {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06); /* slightly darker gray */
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.fake-input {
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(44, 95, 52, 0.35); /* hunter green outline */
  margin-bottom: 10px;
}

.fake-result {
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(44, 95, 52, 0.55); /* stronger hunter green */
  display: grid;
  place-items: center;
}

.fake-result::before {
  content: "Result";
  font-size: 13px;
  opacity: 0.65;
}
