/* Quick Tools Brand Kit - Minimal Design */
:root {
  /* Colors - Notion/Figma inspired */
  --primary: #0066FF;
  --primary-hover: #0052CC;
  --secondary: #666666;
  --background: #FBFBFA;
  --surface: #ffffff;
  --surface-hover: #F7F7F6;
  --text-primary: #37352F;
  --text-secondary: #787774;
  --text-tertiary: #9B9A97;
  --border: #E9E9E7;
  --border-light: #EDECE9;
  --accent: #0066FF;
  --success: #0066FF;
  --error: #EB5757;

  /* Spacing - Balanced whitespace */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Border radius - Notion-like */
  --radius: 6px;
  --radius-lg: 8px;

  /* Shadows - Subtle depth */
  --shadow-subtle: 0 1px 2px rgba(15, 15, 15, 0.1);
  --shadow-sm: 0 2px 6px rgba(15, 15, 15, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 15, 15, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
  background: var(--background);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem var(--spacing-lg);
}

.header-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.logo:hover {
  opacity: 0.7;
}

/* Main Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

/* Page Title */
.page-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.page-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-subtle);
}

.card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  background: var(--surface);
  color: var(--text-primary);
}

.btn:hover {
  background: var(--surface-hover);
  border-color: var(--border);
}

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

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

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

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

/* Tool Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.75rem;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
  display: block;
  box-shadow: var(--shadow-subtle);
}

.tool-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.tool-icon {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.7;
}

.tool-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.tool-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Form Elements */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
  background: var(--background);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--text-primary);
}

/* File Upload */
.file-upload-area {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: var(--spacing-xl);
  text-align: center;
  transition: border-color 0.15s ease;
  cursor: pointer;
  background: var(--surface);
}

.file-upload-area:hover,
.file-upload-area.drag-over {
  border-color: var(--text-primary);
  background: var(--background);
}

.file-upload-icon {
  font-size: 2rem;
  opacity: 0.4;
  margin-bottom: var(--spacing-sm);
}

/* Alerts */
.alert {
  padding: var(--spacing-md);
  border-radius: var(--radius);
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--border);
  font-size: 0.875rem;
}

.alert-success {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
}

.alert-error {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.hidden {
  display: none;
}

/* Back Link */
.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .page-title {
    font-size: 1.75rem;
  }

  .page-subtitle {
    font-size: 0.9375rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }
}
