/* Global Styles - PuzzelLog */
/* Mobile-first responsive design */

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --background: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -8px;
}

.col {
  flex: 1;
  padding: 8px;
  min-width: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* Responsive utilities */
.mobile-only { display: block; }
.tablet-only { display: none; }
.desktop-only { display: none; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.ml-1 { margin-left: 0.5rem; }
.ml-2 { margin-left: 10px; }

.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-end { justify-content: flex-end; }

.bg-secondary { background: var(--surface); }
.border-radius { border-radius: 4px; }
.border-bottom { border-bottom: 1px solid var(--border); }

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

.w-full { width: 100%; }
.w-300 { width: 300px; }

.font-mono { font-family: monospace; }
.font-lg { font-size: 1.2rem; }
.font-italic { font-style: italic; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.overflow-auto { overflow-y: auto; }
.max-h-500 { max-height: 500px; }

.p-0 { padding: 0; }
.p-half { padding: 0.5rem; }
.p-1 { padding: 1rem; }
.m-0 { margin: 0; }

.whitespace-pre-wrap { white-space: pre-wrap; }
.word-wrap { word-wrap: break-word; }

@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .mobile-only { display: none; }
  .tablet-only { display: block; }
}

@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  .tablet-only { display: none; }
  .desktop-only { display: block; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}
