/**
 * AadiTechiest — global styles (dark theme, glass cards)
 * Palette: bg #0d0d0d, cards #1a1a2e, accent #00d4ff
 */

:root {
  --bg: #0d0d0d;
  --bg-elevated: #12121a;
  --card: #1a1a2e;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf1;
  --muted: #9aa3b2;
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.15);
  --good: #2ecc71;
  --bad: #e74c3c;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(13, 13, 13, 0.72);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.hero {
  padding: 4rem 0 3rem;
  background: radial-gradient(1200px 500px at 50% -10%, rgba(0, 212, 255, 0.12), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.section-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.muted {
  color: var(--muted);
}

.glass {
  background: linear-gradient(145deg, rgba(26, 26, 46, 0.92), rgba(18, 18, 26, 0.88));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0099cc);
  color: #041018;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.category-card {
  padding: 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.35);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.25);
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}

.pill:hover {
  background: rgba(0, 212, 255, 0.22);
}

.product-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
}

.product-card h3 {
  font-size: 1.05rem;
}

.rank-pill {
  font-size: 0.8rem;
  color: var(--accent);
}

.compare-panel {
  padding: 1.25rem;
  margin-top: 2rem;
}

.compare-row-ui {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
}

@media (max-width: 700px) {
  .compare-row-ui {
    grid-template-columns: 1fr;
  }
}

select,
input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
}

.site-footer {
  border-top: 1px solid var(--card-border);
  margin-top: 3rem;
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Product page */
.page-product .product-main {
  padding: 2rem 0 3rem;
}

.product-hero {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
  }
}

.product-image {
  max-width: 100%;
  height: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.spec-section {
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.spec-grid {
  margin: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.4fr) 1fr;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.spec-row dd {
  margin: 0;
  font-size: 0.95rem;
}

.spec-sub {
  margin: 0.75rem 0 0.5rem;
}

.spec-subtitle {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--accent);
}

.spec-sub .spec-grid {
  padding-left: 0.5rem;
  border-left: 2px solid rgba(0, 212, 255, 0.25);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* Compare page */
.compare-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0.6rem;
  vertical-align: top;
}

.compare-table th {
  background: rgba(0, 212, 255, 0.08);
  text-align: left;
}

.cell-win {
  background: rgba(46, 204, 113, 0.12);
  color: #b7f5c0;
}

.cell-lose {
  background: rgba(231, 76, 60, 0.1);
  color: #f5b4b0;
}

/* Admin login */
.page-admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(800px 400px at 50% 0%, rgba(0, 212, 255, 0.12), transparent 60%);
}

.login-wrap {
  width: min(400px, 100% - 2rem);
}

.login-card {
  padding: 2rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.login-form input {
  padding: 0.65rem 0.75rem;
}

.error {
  color: #ff6b6b;
}

.lazy-img {
  content-visibility: auto;
}
