@custom-variant dark (&:is(.dark *));

:root {
  --background: oklch(0.145 0.015 265);
  --foreground: oklch(0.985 0.005 265);
  --card: rgb(54, 53, 53);
  --card-foreground: oklch(0.985 0.005 265);
  --popover: oklch(0.18 0.02 265);
  --popover-foreground: oklch(0.985 0.005 265);
  --primary: rgb(190, 57, 23);
  --primary-foreground: oklch(0.985 0.005 265);
  --secondary: oklch(0.45 0.01 265);
  --secondary-foreground: oklch(0.985 0.005 265);
  --muted: oklch(0.25 0.02 265);
  --muted-foreground: oklch(0.65 0.01 265);
  --accent: rgb(191, 57, 23);
  --accent-foreground: oklch(0.985 0.005 265);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0.005 265);
  --border: oklch(0.25 0.02 265);
  --input: oklch(0.25 0.02 265);
  --ring: oklch(0.65 0.18 45);
  --chart-1: oklch(0.65 0.18 45);
  --chart-2: oklch(0.45 0.01 265);
  --chart-3: oklch(0.45 0.01 265);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --radius: 8px;
  --sidebar: oklch(0.18 0.02 265);
  --sidebar-foreground: oklch(0.985 0.005 265);
  --sidebar-primary: oklch(0.65 0.18 45);
  --sidebar-primary-foreground: oklch(0.985 0.005 265);
  --sidebar-accent: oklch(0.25 0.02 265);
  --sidebar-accent-foreground: oklch(0.985 0.005 265);
  --sidebar-border: oklch(0.25 0.02 265);
  --sidebar-ring: oklch(0.65 0.18 45);
}

@theme inline {
  --font-sans: "Geist", "Geist Fallback";
  --font-mono: "Geist Mono", "Geist Mono Fallback";
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
    background-image: url("https://hebbkx1anhila5yf.public.blob.vercel-storage.com/rust_dlc_warhammer_krieg_03-72Wf40GTUq5Ss4cP1uQuDv34CMYGlx.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
  }
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 12, 16, 0.85);
    z-index: -1;
  }
}


/* Basic resets and helper classes */
* { box-sizing: border-box; }
.container { max-width: 1200px; margin: 0 auto; }
img { max-width: 100%; height: auto; }

/* Admin panel styles */
:root { --admin-bg: #0b0f17; --admin-fg: #e5e7eb; --admin-accent: #5662f6; }
body.admin { background: var(--admin-bg); color: var(--admin-fg); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; }
.admin .card { background: #121826; border: 1px solid #263042; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.admin input[type="text"], .admin input[type="url"], .admin input[type="password"], .admin textarea, .admin select {
  width: 100%; padding: 10px; border: 1px solid #2b3444; border-radius: 8px; background: #0e1420; color: #e5e7eb;
}
.admin label { display:block; margin: 8px 0 4px; font-size: 14px; color: #cbd5e1; }
.admin .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin .btn { background: var(--admin-accent); color: white; padding: 10px 16px; border-radius: 8px; border: none; cursor: pointer; }
.admin .btn.secondary { background: #334155; }
.admin .muted { color: #94a3b8; font-size: 12px; }
.admin .success { color: #22c55e; margin-bottom: 10px; }
.admin .danger { color: #ef4444; }
.admin nav { display:flex; gap: 12px; margin-bottom: 16px; }
.admin nav a { color: #93c5fd; text-decoration: none; }
.admin h1, .admin h2, .admin h3 { margin: 12px 0; }


/* ===========================
   Additions for new homepage (non-destructive)
   =========================== */

@keyframes outpost-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animate-gradient {
  background-size: 200% 200%;
  animation: outpost-gradient 6s ease infinite;
}

@keyframes outpost-fade-in-up {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: outpost-fade-in-up 600ms ease-out both;
}
