/* 
  Utility Belt - Premium Design System 
  Theme: Deep Space & Glassmorphism
*/

:root {
  /* Core Colors (HSL) */
  --hue-primary: 250; /* Deep Purple */
  --hue-accent: 170;  /* Teal/Cyan for success/action */
  --hue-danger: 340;  /* Pink/Red for errors */

  --bg-deep: hsl(var(--hue-primary), 30%, 8%);
  --bg-surface: hsl(var(--hue-primary), 25%, 12%);
  --bg-glass: hsla(var(--hue-primary), 25%, 15%, 0.6);
  
  --text-main: hsl(var(--hue-primary), 10%, 95%);
  --text-muted: hsl(var(--hue-primary), 10%, 70%);

  --primary-glow: hsla(var(--hue-primary), 80%, 60%, 0.5);
  --accent-glow: hsla(var(--hue-accent), 80%, 60%, 0.5);

  /* Spacing & Radius */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  
  --glass-border: 1px solid hsla(0, 0%, 100%, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-main);
  background-image: 
    radial-gradient(circle at 10% 20%, hsla(var(--hue-primary), 60%, 20%, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, hsla(var(--hue-accent), 60%, 20%, 0.2) 0%, transparent 40%);
  min-height: 100vh;
  line-height: 1.6;
}

/* Layout Reusables */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Components */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
  border-color: hsla(0, 0%, 100%, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--hue-primary), 70%, 55%), hsl(var(--hue-primary), 90%, 65%));
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background: hsla(0, 0%, 100%, 0.05);
  color: var(--text-main);
  border: 1px solid hsla(0, 0%, 100%, 0.1);
}

.btn-secondary:hover {
  background: hsla(0, 0%, 100%, 0.1);
}

/* Forms */
.input-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

input, select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: hsla(0, 0%, 0%, 0.2);
  border: 1px solid hsla(0, 0%, 100%, 0.1);
  border-radius: var(--radius-sm);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus, select:focus {
  outline: none;
  border-color: hsl(var(--hue-primary), 70%, 50%);
  box-shadow: 0 0 0 2px hsla(var(--hue-primary), 70%, 50%, 0.2);
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

.text-gradient {
  background: linear-gradient(to right, hsl(var(--hue-accent), 70%, 60%), hsl(var(--hue-primary), 80%, 70%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header/Nav */
header {
  padding: 2rem 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* AdSense Placeholders */
.ad-slot {
  width: 100%;
  padding: 1rem;
  margin: 2rem 0;
  background: hsla(0, 0%, 0%, 0.1);
  border: 1px dashed hsla(0, 0%, 100%, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  min-height: 100px;
}

/* Helpers */
.hidden { display: none; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }
