/* Central CSS file for all pages */

/* CSS Custom Properties (Variables) */
:root {
  --bg: #121212;
  --panel: #181818;
  --panelSoft: #1f1f1f;
  --border: #282828;
  --fg: #ffffff;
  --muted: #b3b3b3;
  --accent: #1db954;
  --accent2: #1ed760;
  --shadow: 0 10px 25px rgba(0,0,0,.35);
}

/* Light theme variables */
.light {
  --bg: #f7f7f7;
  --panel: #ffffff;
  --panelSoft: #f3f4f6;
  --border: #e5e7eb;
  --fg: #111827;
  --muted: #6b7280;
  --shadow: 0 8px 18px rgba(0,0,0,.08);
}

/* Base styles */
* { 
  box-sizing: border-box; 
}

html { 
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale; 
}

body { 
  margin: 0; 
  font-family: "Segoe UI", system-ui, -apple-system, "Inter", "Helvetica Neue", Arial, sans-serif; 
  background: var(--bg); 
  color: var(--fg); 
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

/* Links */
a { 
  color: var(--fg); 
  text-decoration: none; 
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  color: #0d0d0d;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

.button.secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.button.secondary:hover {
  background: var(--panelSoft);
  color: var(--fg);
}

.button.sm {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cards and panels */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* Grid systems */
.grid {
  display: grid;
  gap: 24px;
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Spacing utilities */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Display utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Responsive utilities */
@media (max-width: 768px) {
  .container, .container-narrow {
    padding: 0 16px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--panel);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--panel);
}

::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 10px;
  border: 2px solid var(--panel);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--muted);
}

/* Print styles */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  
  .button {
    border: 1px solid #000;
    background: #fff !important;
    color: #000 !important;
  }
  
  .card, .panel {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}


