/* ==========================================================================
   Grow Flex — Hologram Sorgulama sayfası
   Renk ve tipografi değişkenleri style.css içindeki :root bloğundan gelir.
   ========================================================================== */

.hg-body {
  background:
    radial-gradient(900px 460px at 80% -5%, rgba(87, 182, 229, .18), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(53, 160, 74, .12), transparent 62%),
    #f4f8fb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Üst bar ---------- */
.hg-top {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gf-line);
  padding: .55rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.hg-top .gf-logo img { height: 64px; }
.hg-top .gf-logo-text { font-size: 2rem; }
@media (max-width: 575.98px) {
  .hg-top .gf-logo img { height: 52px; }
  .hg-top .gf-logo-text { font-size: 1.6rem; }
}

/* ---------- Gövde ---------- */
/* Sayfa tek ekrana sığacak şekilde tasarlandı; dikey boşluklar bilinçli olarak dardır. */
.hg-main {
  flex: 1;
  padding: 12px 0 10px;
  display: flex;
  align-items: center;
}
@media (max-width: 575.98px) { .hg-main { padding: 12px 0 18px; } }

.hg-title {
  font-size: clamp(1.45rem, 4vw, 1.8rem);
  margin-bottom: .25rem;
}
.hg-lead { font-size: .89rem; color: var(--gf-muted); line-height: 1.5; }

/* ---------- Kodun yeri ---------- */
.hg-where {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: #fff;
  border: 1px solid var(--gf-line);
  border-radius: var(--gf-radius-sm);
  padding: .6rem .8rem;
  margin-bottom: .7rem;
  box-shadow: var(--gf-shadow-sm);
}
.hg-where-text b { display: block; font-family: var(--gf-head); font-size: .96rem; color: var(--gf-ink); margin-bottom: .1rem; }
.hg-where-text p { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--gf-muted); }

/* Hologram etiketi taklidi */
.hg-sticker {
  flex: 0 0 96px;
  width: 96px;
  border-radius: 12px;
  padding: .5rem .4rem;
  text-align: center;
  background: linear-gradient(135deg, #d9e6ef 0%, #f3f8fb 22%, #cfe3f2 42%, #e9d9f2 60%, #d4ecdf 78%, #eef4f8 100%);
  border: 2px solid #b9cbd8;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, .9);
  position: relative;
  overflow: hidden;
}
.hg-sticker::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .75) 48%, transparent 62%);
  animation: hg-shine 3.6s ease-in-out infinite;
}
@keyframes hg-shine {
  0%, 100% { transform: translateX(-70%); }
  50% { transform: translateX(70%); }
}
.hg-sticker-top {
  display: block;
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #5b7186;
  margin-bottom: .3rem;
}
.hg-sticker-code {
  display: block;
  font-family: ui-monospace, Consolas, monospace;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #14283c;
  background: #fff;
  border-radius: 5px;
  padding: .2rem 0;
}
.hg-sticker-site {
  display: block;
  font-size: .46rem;
  font-weight: 700;
  color: #5b7186;
  margin-top: .3rem;
}

@media (max-width: 420px) {
  .hg-where { flex-direction: column; text-align: center; }
}

/* ---------- Form ---------- */
.hg-form {
  background: #fff;
  border: 1px solid var(--gf-line);
  border-radius: var(--gf-radius);
  padding: 1rem;
  box-shadow: var(--gf-shadow);
  position: relative;
}

.hg-field { position: relative; margin-bottom: .5rem; }

.hg-field .hg-ic {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gf-muted);
  font-size: 1.05rem;
  pointer-events: none;
}

.hg-field .form-control {
  background: #eef4f8;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: .72rem 1rem .72rem 2.9rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gf-ink);
  transition: border-color .18s ease, background .18s ease;
}
.hg-field .form-control::placeholder { color: #9bb0c1; font-weight: 500; }
.hg-field .form-control:focus {
  background: #fff;
  border-color: var(--gf-blue);
  box-shadow: none;
}
.hg-field .form-control:focus + .hg-ic,
.hg-field:focus-within .hg-ic { color: var(--gf-blue); }

/* Kod alanı büyük ve aralıklı */
#hgKod {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
}
#hgKod::placeholder {
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--gf-text);
}
#hgKod.is-invalid { border-color: var(--gf-crimson); background: #fff5f6; }

/* ---------- Butonlar ---------- */
.hg-btn-main,
.hg-btn-wa {
  display: block;
  width: 100%;
  font-family: var(--gf-head);
  font-weight: 500;
  font-size: .97rem;
  border-radius: 12px;
  padding: .7rem 1rem;
  border: 0;
  margin-top: .45rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.hg-btn-main {
  background: var(--gf-ink);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(20, 40, 60, .9);
}
.hg-btn-main:hover:not(:disabled) { background: #1d3a55; color: #fff; transform: translateY(-2px); }
.hg-btn-main:disabled { opacity: .7; }

.hg-btn-wa { background: #25D366; color: #fff; box-shadow: 0 12px 24px -14px rgba(37, 211, 102, .95); }
.hg-btn-wa:hover { background: #1fbb59; color: #fff; transform: translateY(-2px); }

/* ---------- Sonuç ---------- */
.hg-result { display: none; margin: .8rem 0 .1rem; }
.hg-result.show { display: block; animation: hg-in .35s ease; }
@keyframes hg-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.hg-card {
  border-radius: 14px;
  padding: .95rem 1.1rem;
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}
.hg-card .hg-card-ic {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.3rem;
  color: #fff;
}
.hg-card b {
  display: block;
  font-family: var(--gf-head);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: .25rem;
}
.hg-card p { margin: 0; font-size: .92rem; line-height: 1.65; }
.hg-card .hg-code {
  display: inline-block;
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
  letter-spacing: .08em;
  background: rgba(255, 255, 255, .75);
  border-radius: 6px;
  padding: .1rem .5rem;
  margin-top: .5rem;
  font-size: .88rem;
}

.hg-card.ok { background: rgba(53, 160, 74, .1); border: 1px solid rgba(53, 160, 74, .28); }
.hg-card.ok .hg-card-ic { background: linear-gradient(135deg, #6cc47c, var(--gf-green)); }
.hg-card.ok b { color: #1f6b30; }
.hg-card.ok p { color: #2f5a3a; }

.hg-card.no { background: rgba(181, 32, 60, .08); border: 1px solid rgba(181, 32, 60, .25); }
.hg-card.no .hg-card-ic { background: linear-gradient(135deg, #e2607c, var(--gf-crimson)); }
.hg-card.no b { color: #8e1b30; }
.hg-card.no p { color: #6d3540; }

.hg-card.warn { background: rgba(243, 156, 61, .12); border: 1px solid rgba(243, 156, 61, .32); }
.hg-card.warn .hg-card-ic { background: linear-gradient(135deg, #f8bd76, var(--gf-orange)); }
.hg-card.warn b { color: #8a5313; }
.hg-card.warn p { color: #7a5220; }

/* ---------- Kısa ekranlar (1366x768 gibi laptop'lar) ----------
   Sonuç kartı göründüğünde de kaydırma çubuğu çıkmasın diye
   dikey boşluklar bir kademe daha daraltılır. */
@media (min-width: 768px) and (max-height: 820px) {
  .hg-top { padding: .4rem 0; }
  .hg-top .gf-logo img { height: 56px; }
  .hg-main { padding: 8px 0 8px; }
  .hg-title { font-size: 1.55rem; margin-bottom: .2rem; }
  .hg-where { padding: .5rem .7rem; margin-bottom: .55rem; }
  .hg-sticker { flex: 0 0 88px; width: 88px; }
  .hg-form { padding: .85rem; }
  .hg-field { margin-bottom: .42rem; }
  .hg-field .form-control { padding: .62rem 1rem .62rem 2.8rem; }
  .hg-btn-main, .hg-btn-wa { padding: .62rem 1rem; margin-top: .4rem; }
  .hg-result { margin: .6rem 0 .1rem; }
  .hg-card { padding: .8rem .95rem; }
  .hg-footer { padding: .55rem 0; }
}

/* ---------- Footer ---------- */
.hg-footer {
  border-top: 1px solid var(--gf-line);
  background: #fff;
  padding: .7rem 0;
  font-size: .82rem;
  color: var(--gf-muted);
}
.hg-footer a { color: var(--gf-blue); }
