/* site-fragments.css — minimal header/footer + cookie banner (no animations) */

/* Header */
.site-header {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  border-bottom: 1px solid rgba(46,106,255,0.08);
  padding: 22px 0 8px;
}
.site-header-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.site-title {
  color: #1f6de8;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 6px;
  text-align: center;
}
.site-lead {
  color: #46637f;
  text-align: center;
  margin: 0 0 12px;
  font-size: 13px;
}

/* Tagline Bar (static) */
.tagline-bar {
  display: flex;
  justify-content: center;
  margin: 8px 0 12px;
}
.tagline-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #2f5977;
}
.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px;
  white-space: nowrap;
}
.tag-item i { margin-right:6px; }
.tag-item span { display:inline-block; }

/* Footer */
.site-footer {
  background: linear-gradient(0deg,#f6fbff 0%, #ffffff 100%);
  border-top: 1px solid rgba(46,106,255,0.06);
  padding: 18px 0 36px;
  margin-top: 28px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; text-align: center; }
.footer-links { margin-bottom: 8px; display: inline-flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { color:#2b5fbf; text-decoration:none; font-weight:600; font-size:13px; }
.footer-links a:hover { text-decoration:underline; }
.footer-bottom { margin-top: 6px; color:#61788f; font-size:13px; }

/* Cookie banner (static) */
.gt-cookie-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  width: min(980px, calc(100% - 32px));
  background: linear-gradient(180deg,#ffffff,#f7fbff);
  border: 1px solid rgba(46,106,255,0.12);
  box-shadow: 0 6px 22px rgba(27,71,140,0.06);
  border-radius: 8px;
  padding: 14px;
  z-index: 99999;
  display: none;
}
.gt-cookie-banner[aria-hidden="false"] { display: block; }

.cookie-inner { display:flex; gap:12px; align-items:center; justify-content:space-between; padding:0 8px; }
.cookie-text { margin:0; color:#384f63; font-size:14px; text-align:left; max-width:72%; }
.cookie-text a { color:#1f6de8; font-weight:600; text-decoration:underline; }

.cookie-actions { display:flex; gap:10px; align-items:center; justify-content:flex-end; }
.cookie-actions .btn { padding:8px 14px; border-radius:8px; font-weight:700; border: none; cursor: pointer; }
.gt-accept { background: linear-gradient(180deg,#2f7df0,#1d56c8); color:#fff; }
.gt-decline { background: transparent; color:#1f6de8; border: 1px solid rgba(31,109,232,0.12); }

/* Responsive small tweaks */
@media (max-width:720px) {
  .gt-cookie-banner .cookie-inner { flex-direction:column; align-items:stretch; gap:10px; }
  .gt-cookie-banner .cookie-text { max-width:100%; text-align:center; }
  .cookie-actions { justify-content:center; }
  .site-title { font-size:22px; }
}

/* --- SVG Tagline: animated icons (local-only) --- */

/* Theme variables (change these to tune color/size) */
:root {
  --sg-accent: #1ea67a;        /* primary accent (sage-green) */
  --sg-accent-2: #2fc48f;      /* secondary accent for hover */
  --sg-icon-size: 22px;        /* icon visual size */
  --sg-burst-duration: 900ms;  /* micro animation burst length */
  --sg-replay-interval: 60000; /* ms between auto replays (60s) */
}

/* Tagline layout (keeps existing look) */
.tagline-bar { display:flex; justify-content:center; margin:10px 0 14px; }
.tagline-inner { display:flex; gap:20px; align-items:center; justify-content:center; font-size:13px; color:#2f5977; }
.tag-item { display:inline-flex; align-items:center; gap:10px; padding:4px 6px; white-space:nowrap; cursor:default; }
.tag-label { font-weight:600; color:#264a5f; font-size:13px; }

/* Icon wrapper */
.svg-wrap { display:inline-flex; width:var(--sg-icon-size); height:var(--sg-icon-size); align-items:center; justify-content:center; }

/* SVG base styles */
.icon { display:block; width:100%; height:100%; }
.icon-fill { fill: var(--sg-accent); transition: fill .18s ease; transform-origin: center; }
.icon-stroke { stroke: var(--sg-accent); transition: stroke .18s ease; transform-origin: center; }

/* Hover micro-interaction */
.tag-item:hover .icon-fill { fill: var(--sg-accent-2); }
.tag-item:hover .icon-stroke { stroke: var(--sg-accent-2); }
.tag-item:hover { transform: translateY(-3px); transition: transform .18s ease; }

/* --- Animations (played by adding .play class briefly) --- */

/* 1) Bolt pulse/scale + glow */
@keyframes sg-bolt-burst {
  0%   { transform: scale(1); filter: drop-shadow(0 0 0 rgba(30,166,122,0)); opacity:1; }
  35%  { transform: scale(1.18); filter: drop-shadow(0 8px 20px rgba(30,166,122,0.14)); opacity:0.98; }
  100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(30,166,122,0)); opacity:1; }
}
.icon-bolt.play .icon-fill { animation: sg-bolt-burst var(--sg-burst-duration) ease-in-out both; }

/* 2) Clock small rotate + hand nudge (combined) */
@keyframes sg-clock-swing {
  0%   { transform: rotate(0deg); }
  40%  { transform: rotate(18deg); }
  100% { transform: rotate(0deg); }
}
.icon-clock.play { animation: sg-clock-swing var(--sg-burst-duration) ease-in-out both; }
.icon-clock.play .icon-stroke { /* optionally nudge stroke opacity slightly */ opacity:0.98; }

/* 3) Cloud float + subtle rise */
@keyframes sg-cloud-float {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
.icon-cloud.play { animation: sg-cloud-float var(--sg-burst-duration) ease-in-out both; }

/* Utility: add .play to .svg-item to trigger its inner svg animation(s) */
.svg-item.play .icon { /* this ensures child icons animate if targeted */ }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .icon-bolt.play .icon-fill,
  .icon-clock.play,
  .icon-cloud.play { animation: none !important; transform: none !important; }
  .tag-item:hover { transform: none; }
}

/* Responsive adjustments */
@media (max-width:720px) {
  :root { --sg-icon-size: 18px; }
  .tagline-inner { gap:12px; }
  .tag-label { font-size:13px; }
}



/* Small screens */
@media (max-width: 720px) {
  .tool-nav-inner {
    gap: 6px;
  }
  .tool-nav-link {
    font-size: 12px;
    padding: 4px 9px;
  }
}
/* Active nav highlight */
.tool-nav-active {
  background: #1f6de8 !important;
  color: #fff !important;
  border-color: #1f6de8 !important;
}

.tool-nav-active .tool-nav-icon i {
  color: #fff !important;
}

/* Tool navigation under header */
.tool-nav {
  margin: 4px 0 8px;
}
.tool-nav-inner {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.tool-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid rgba(46,106,255,0.18);
  background: #ffffff;
  color: #1f4fa8;
  font-weight: 500;
  transition: background .2s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tool-nav-link:hover:not(.tool-nav-active) {
  text-decoration: none;
  background: rgba(31, 109, 232, 0.12);
  border-color: #1f6de8;
  color: #1f6de8;
  box-shadow: 0 2px 8px rgba(15,44,85,0.08);
  transform: translateY(-1px);
}
.tool-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Active state injected via JS */
.tool-nav-link.tool-nav-active {
  background: #1f6de8;
  color: #ffffff;
  border-color: #1f6de8;
}
.tool-nav-link.tool-nav-active .tool-nav-icon i {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 720px) {
  .tool-nav-inner {
    gap: 6px;
  }
  .tool-nav-link {
    font-size: 12px;
    padding: 4px 9px;
  }
}

/* =========================================
   MOBILE FLOATING ACTION BAR — GLOBAL
   ========================================= */
.tool-action-wrap {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

@media (max-width: 576px) {
  .tool-action-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    border-top: 1px solid rgba(46,106,255,0.18);
    box-shadow: 0 -10px 28px rgba(15,44,85,0.12);
  }

  .tool-action-wrap .btn {
    flex: 1 1 auto;
    max-width: 220px;
    justify-content: center;
  }

  body {
    padding-bottom: 80px;
  }
}
