/* Supra Theme - CSS Example */
/* This file demonstrates syntax highlighting for CSS */

:root {
  /* Color variables inspired by Supabase */
  --supra-primary: #3ecf8e;
  --supra-primary-dark: #10b981;
  --supra-primary-light: #4ade80;
  --supra-secondary: #6b7280;
  --supra-background: #0f1419;
  --supra-surface: #1a1f29;
  --supra-text: #e5e7eb;
  --supra-text-muted: #9ca3af;
  --supra-border: #374151;
  --supra-accent: #3b82f6;
  --supra-success: #10b981;
  --supra-warning: #fbbf24;
  --supra-error: #ef4444;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: var(--supra-background);
  color: var(--supra-text);
  line-height: 1.6;
  font-size: 16px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--supra-text);
}

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

p {
  margin-bottom: 1rem;
  color: var(--supra-text-muted);
}

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

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* Card component */
.card {
  background-color: var(--supra-surface);
  border: 1px solid var(--supra-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
}

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

.card-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--supra-border);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--supra-text);
  margin-bottom: 0.5rem;
}

.card-subtitle {
  font-size: 0.875rem;
  color: var(--supra-text-muted);
}

/* Button components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  gap: 0.5rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--supra-primary);
  color: var(--supra-background);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--supra-primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--supra-text);
  border: 1px solid var(--supra-border);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--supra-surface);
  border-color: var(--supra-primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--supra-primary);
  border: 1px solid var(--supra-primary);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--supra-primary);
  color: var(--supra-background);
}

/* Form components */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--supra-text);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--supra-border);
  border-radius: 0.375rem;
  background-color: var(--supra-surface);
  color: var(--supra-text);
  font-size: 0.875rem;
  transition: border-color 0.2s ease-in-out;
}

.form-input:focus {
  outline: none;
  border-color: var(--supra-primary);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.1);
}

.form-input::placeholder {
  color: var(--supra-text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Utility classes */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.text-primary {
  color: var(--supra-primary);
}
.text-secondary {
  color: var(--supra-secondary);
}
.text-muted {
  color: var(--supra-text-muted);
}
.text-success {
  color: var(--supra-success);
}
.text-warning {
  color: var(--supra-warning);
}
.text-error {
  color: var(--supra-error);
}

.bg-primary {
  background-color: var(--supra-primary);
}
.bg-secondary {
  background-color: var(--supra-secondary);
}
.bg-surface {
  background-color: var(--supra-surface);
}

.rounded {
  border-radius: 0.375rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-full {
  border-radius: 9999px;
}

.shadow {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.shadow-lg {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}

.m-1 {
  margin: 0.25rem;
}
.m-2 {
  margin: 0.5rem;
}
.m-3 {
  margin: 0.75rem;
}
.m-4 {
  margin: 1rem;
}
.m-6 {
  margin: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.3s ease-out;
}

/* Responsive design */
@media (max-width: 640px) {
  .container {
    padding: 0 0.5rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }

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