/*
Theme Name: IC7 Official
Theme URI: https://www.ic7-login.com/
Author: ic7 game
Description: Mobile-first official website for the ic7 game Android APK. English (en-IN) and Hindi (hi-IN), with canonical tags, hreflang, and a fixed download bar.
Version: 1.0.0
Requires at least: 6.4
Text Domain: ic7
*/

:root {
  --bg: #071018;
  --bg-2: #0d1a28;
  --card: #112233;
  --card-2: #173044;
  --line: rgba(224, 194, 122, 0.28);
  --gold: #f0d48a;
  --gold-deep: #c79645;
  --ink: #1b1408;
  --text: #f4f7fb;
  --muted: #c5d0de;
  --teal: #8ee0cf;
  --warn: #ffd7a8;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --header: 68px;
  --max: 1080px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Nirmala UI", "Noto Sans Devanagari", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(199, 150, 69, 0.16), transparent 55%),
    radial-gradient(900px 420px at -10% 20%, rgba(30, 90, 110, 0.35), transparent 50%),
    var(--bg);
}

body.lang-hi { line-height: 1.75; }

img { max-width: 100%; height: auto; }

a { color: var(--gold); text-underline-offset: 0.18em; }

a:hover { color: #fff6de; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-150%);
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 80;
}

.skip-link:focus { transform: none; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header);
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid rgba(224, 194, 122, 0.18);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.logo img {
  width: 58px;
  height: auto;
  display: block;
  border-radius: 12px;
}

.footer-logo { display: inline-block; margin-bottom: 10px; }

.footer-logo img { width: 72px; }

.primary-nav { margin-left: auto; }

.primary-nav summary {
  list-style: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.primary-nav summary::-webkit-details-marker { display: none; }

.primary-nav summary i,
.primary-nav summary i::before,
.primary-nav summary i::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  content: "";
}

.primary-nav summary i::before { position: absolute; top: -6px; }
.primary-nav summary i::after { position: absolute; top: 6px; }

.primary-nav nav {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(var(--header) - 6px);
  display: grid;
  gap: 6px;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.primary-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
}

.primary-nav a[aria-current="page"],
.primary-nav a:hover { background: rgba(240, 212, 138, 0.12); color: var(--gold); }

.lang-switch { display: flex; gap: 8px; padding: 8px 12px 4px; }

.lang-switch a {
  border: 1px solid var(--line);
  min-width: 44px;
  text-align: center;
  color: var(--gold);
}

.header-cta { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(199, 150, 69, 0.28);
}

.btn-primary:hover { color: #000; }

.btn-ghost,
button.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.hero { padding: 28px 0 10px; }

.hero-grid {
  display: grid;
  gap: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.03em; }

h1 { font-size: clamp(1.85rem, 4vw, 3.15rem); margin: 0 0 12px; }

.lede { font-size: 1.08rem; color: var(--muted); margin: 0 0 18px; }

.lede strong { font-weight: 800; color: var(--text); }

.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

.device-note, .notice {
  margin: 12px 0 0;
  color: var(--warn);
  font-size: 0.95rem;
}

.phone {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 14px;
  background: linear-gradient(180deg, #183049, #0d1824);
  box-shadow: var(--shadow);
  max-width: 280px;
}

.phone-top {
  height: 8px;
  width: 72px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 auto 14px;
}

.phone-logo { width: 92px; height: auto; display: block; margin: 0 auto 12px; border-radius: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }

.chips li, .badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--gold);
  font-size: 0.85rem;
}

.spec, .data-card, .card, .faq-item, .post-card, .responsible, .retain, .author-box {
  background: rgba(17, 34, 51, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.spec { width: 100%; border-collapse: collapse; margin: 22px 0 8px; overflow: hidden; }

.spec th, .spec td { padding: 14px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(224, 194, 122, 0.14); }

.spec th { width: 38%; color: var(--gold); font-weight: 700; background: rgba(240, 212, 138, 0.06); }

.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

.section { padding: 28px 0; }

.section h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); margin: 0 0 10px; }

.prose p, .section p { color: var(--muted); }

.prose strong, .section strong { color: var(--text); }

.grid-2, .grid-3, .grid-4, .app-showcase { display: grid; gap: 14px; }

.app-shot { margin: 0; text-align: center; }

.app-shot img {
  width: min(100%, 280px);
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.app-shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-shot strong { display: block; color: var(--text); margin-bottom: 4px; }

.card, .faq-item, .post-card, .author-box, .retain, .responsible, .data-card { padding: 18px; }

.card h3, .faq-item h2, .post-card h2, .data-card h2 { margin: 0 0 8px; font-size: 1.15rem; }

.faq-item { margin-bottom: 14px; }

.retain form { margin-top: 16px; }

.steps { margin: 0; padding-left: 1.2rem; color: var(--muted); }

.steps li { margin: 8px 0; }

.steps strong { color: var(--text); }

.responsible { border-color: rgba(255, 215, 168, 0.45); }

.age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #8d2f2f;
  color: white;
  font-weight: 800;
  margin-bottom: 8px;
}

.crumbs { padding-top: 18px; color: var(--muted); font-size: 0.92rem; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }

.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: rgba(197, 208, 222, 0.7); }

.data-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0; }

.data-card dt { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }

.data-card dd { margin: 0 0 8px; }

.product-figure { margin: 0; }

.product-figure img { width: 120px; height: 120px; }

.product-figure figcaption { color: var(--muted); font-size: 0.92rem; }

.post-list { display: grid; gap: 14px; }

.post-card h2 { font-size: 1.3rem; }

.post-card h2 a { color: var(--text); text-decoration: none; }

.meta { color: var(--teal); font-size: 0.9rem; }

.search-form, .retain form { display: flex; gap: 8px; flex-wrap: wrap; }

.search-form input[type="search"], .retain input[type="search"] {
  flex: 1 1 220px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b1722;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

.site-footer {
  margin-top: 20px;
  padding: 36px 0 28px;
  border-top: 1px solid rgba(224, 194, 122, 0.18);
  background: #061017;
  color: var(--muted);
}

.footer-grid { display: grid; gap: 22px; }

.site-footer h2 { font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }

.site-footer a { color: var(--text); text-decoration: none; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer li { margin: 7px 0; }

.share { display: flex; flex-direction: column; gap: 8px; }

.share a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 650;
}

.share a:hover { border-color: var(--gold); color: var(--gold); }

.share svg { flex: 0 0 auto; }

.legal { margin-top: 18px; font-size: 0.92rem; }

.apk-dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 16, 24, 0.96);
  border-top: 1px solid var(--line);
}

.apk-dock p { margin: 0; font-size: 0.82rem; color: var(--muted); }

.apk-dock strong { display: block; color: var(--text); }

[id] { scroll-margin-top: 84px; }

@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1.4fr 0.8fr; align-items: center; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .app-showcase { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .header-cta { display: block; }
}

@media (min-width: 980px) {
  .primary-nav > nav {
    position: static;
    display: flex !important;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .primary-nav summary { display: none; }
  .lang-switch { padding: 0 0 0 8px; }
}

@media (max-width: 799px) {
  .apk-dock { display: flex; }
  body { padding-bottom: 92px; }
  .spec th { width: 34%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
