/* ============ Auto Clicker Website – Aurora Glass UI ============ */

:root, [data-theme="dark"] {
  /* Shared Tokens */
  --r: 20px;
  --accent: #22c55e;
  --accent2: #60a5fa;
  --danger: #ef4444;

  /* Dark Tokens */
  --bg0: #050712;
  --bg1: #070a18;
  --surface: rgba(15, 23, 42, 0.72);
  --surface2: rgba(2, 6, 23, 0.62);
  --border: rgba(148, 163, 184, 0.22);
  --border2: rgba(148, 163, 184, 0.35);
  --text: #e5e7eb;
  --muted: rgba(226, 232, 240, 0.66);
  --muted2: rgba(226, 232, 240, 0.44);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

[data-theme="light"] {
  /* Light Tokens */
  --bg0: #f7f7fb;
  --bg1: #ffffff;
  --text: #0b1220; /* Tmavá barva pro texty ve světlém módu */
  --muted: rgba(11, 18, 32, 0.74);
  --muted2: rgba(11, 18, 32, 0.56);
  --surface: rgba(255, 255, 255, 0.85);
  --surface2: rgba(241, 245, 249, 0.85);
  --border: rgba(15, 23, 42, 0.14);
  --border2: rgba(15, 23, 42, 0.20);
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.15);
}

/* Base Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg1), var(--bg0));
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  position: relative;
}

/* Ambient Background Blobs */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(50vw 50vh at 0% 0%, rgba(96,165,250,0.18), transparent 55%),
    radial-gradient(40vw 50vh at 100% 0%, rgba(34,197,94,0.15), transparent 55%),
    radial-gradient(50vw 60vh at 50% 100%, rgba(168,85,247,0.12), transparent 55%);
}

/* Subtle Grain Overlay */
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 4px);
}

[data-theme="light"] .bg-grain { opacity: 0.04; mix-blend-mode: normal; }

/* Layout */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text); /* Změní se samo podle Light/Dark */
}

.brand svg {
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(34,197,94,0.45));
}

/* Theme Switch (Matches the extension) */
.theme-toggle {
  position: relative;
  width: 50px;
  height: 28px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border2);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.theme-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), background-color 0.3s ease;
}

[data-theme="light"] .theme-toggle {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
}

[data-theme="light"] .theme-knob {
  transform: translateX(22px);
  background: #ffffff;
}

/* Hero Section (Aurora Glass Card) */
.hero-wrapper {
  position: relative;
  margin-bottom: 40px;
}

/* Aurora Animation */
.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--r) + 2px);
  background: conic-gradient(
    from 180deg,
    rgba(34,197,94,0), rgba(34,197,94,0.35), rgba(96,165,250,0.30), rgba(168,85,247,0.22), rgba(34,197,94,0)
  );
  filter: blur(12px);
  opacity: 0.65;
  pointer-events: none;
  animation: ac-aurora 7.5s linear infinite;
  z-index: -1;
}

[data-theme="light"] .hero-wrapper::before { opacity: 0.35; filter: blur(14px); }

@keyframes ac-aurora { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-wrapper::before { animation: none; } }

.hero-card {
  background: linear-gradient(180deg, var(--surface), var(--surface2));
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 60px 40px;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--text);
}

.hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Primary CTA Button (Matches the extension's START button) */
.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 15px;
  color: #052e16;
  background: linear-gradient(135deg, rgba(34,197,94,1), rgba(96,165,250,0.85));
  box-shadow: 0 10px 28px rgba(34,197,94,0.25);
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: saturate(1.1);
  box-shadow: 0 14px 34px rgba(34,197,94,0.35);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.feature-card {
  background: linear-gradient(180deg, var(--surface), var(--surface2));
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 30px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34,197,94,0.4);
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 16px;
  display: inline-block;
  padding: 12px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.feature-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* Keyboard Shortcuts */
kbd {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 2px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 12px;
  font-weight: 900;
}

[data-theme="light"] kbd {
  background: #ffffff;
  color: #0f5132;
}

/* Footer */
footer {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 20px;
}

footer .brand-text {
  color: var(--text); /* Změní se samo podle Light/Dark */
  margin-left: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .features { grid-template-columns: 1fr; }
}
