/* FORGE by GEORGE - Custom Athletic Design System */

:root {
  --forge-bg: #0b0f19;
  --forge-surface: #111827;
  --forge-card: #172033;
  --forge-border: #243047;
  --forge-gold: #f59e0b;
  --forge-gold-hover: #d97706;
  --forge-crimson: #ef4444;
  --forge-emerald: #10b981;
  --forge-blue: #3b82f6;
  --forge-text-main: #f8fafc;
  --forge-text-muted: #94a3b8;
}

body {
  background-color: var(--forge-bg);
  color: var(--forge-text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

/* Glassmorphism effects */
.glass-header {
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.forge-card {
  background: var(--forge-card);
  border: 1px solid var(--forge-border);
  border-radius: 1rem;
  transition: all 0.25s ease;
}

.forge-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(245, 158, 11, 0.1);
}

/* Gradient accents */
.text-gradient-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-fire {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.bg-gradient-hero {
  background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
}

/* Accessible Interactive Elements */
button, a.btn-forge, input, select, textarea {
  min-height: 44px;
}

.btn-forge-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b0f19;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.65rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-forge-gold:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

.btn-forge-outline {
  background: transparent;
  color: #f8fafc;
  border: 1px solid var(--forge-border);
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.65rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-forge-outline:hover {
  border-color: #f59e0b;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

/* Custom Form Styles */
.form-input-forge {
  width: 100%;
  background: #0d1322;
  border: 1px solid #243047;
  border-radius: 0.65rem;
  padding: 0.65rem 1rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input-forge:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.form-input-forge.error-border {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0b0f19;
}

::-webkit-scrollbar-thumb {
  background: #243047;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3b4d6e;
}

/* Markdown typography for FORGE Field Notes (Tailwind CDN has no Typography plugin). */
.field-note-content > * + * {
  margin-top: 1.25rem;
}

.field-note-content h1,
.field-note-content h2,
.field-note-content h3,
.field-note-content h4 {
  color: #f8fafc;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.field-note-content h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
.field-note-content h2 { margin-top: 2.25rem; font-size: clamp(1.45rem, 3vw, 1.8rem); }
.field-note-content h3 { margin-top: 1.8rem; font-size: 1.2rem; }
.field-note-content h4 { margin-top: 1.5rem; font-size: 1.05rem; }

.field-note-content p {
  margin: 1rem 0;
  color: #cbd5e1;
}

.field-note-content strong {
  color: #f8fafc;
  font-weight: 750;
}

.field-note-content em { color: #e2e8f0; }

.field-note-content ul,
.field-note-content ol {
  margin: 1rem 0 1.25rem;
  padding-left: 1.5rem;
  color: #cbd5e1;
}

.field-note-content ul { list-style: disc; }
.field-note-content ol { list-style: decimal; }
.field-note-content li { padding-left: 0.35rem; margin: 0.45rem 0; }
.field-note-content li::marker { color: #f59e0b; }

.field-note-content a {
  color: #fbbf24;
  text-decoration: underline;
  text-decoration-color: rgba(251, 191, 36, 0.45);
  text-underline-offset: 3px;
}

.field-note-content a:hover { color: #fde68a; }

.field-note-content code {
  border: 1px solid #334155;
  border-radius: 0.35rem;
  background: #0b0f19;
  padding: 0.12rem 0.35rem;
  color: #fbbf24;
  font-size: 0.9em;
}

.field-note-content hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #334155;
}

.field-note-table-wrap {
  max-width: 100%;
  margin: 1.5rem 0 2rem;
  overflow-x: auto;
  border: 1px solid #334155;
  border-radius: 0.9rem;
  background: rgba(11, 15, 25, 0.7);
  scrollbar-color: #475569 #111827;
}

.field-note-table {
  width: 100%;
  min-width: 38rem;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.65;
}

.field-note-table th {
  padding: 0.95rem 1rem;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: top;
}

.field-note-table td {
  padding: 0.9rem 1rem;
  color: #cbd5e1;
  border-top: 1px solid #243047;
  vertical-align: top;
}

.field-note-table tbody tr:nth-child(even) { background: rgba(30, 41, 59, 0.35); }
.field-note-table tbody tr:hover { background: rgba(245, 158, 11, 0.06); }
.field-note-table td strong { color: #f8fafc; }


/* Print Styles for Plan Export */
@media print {
  header, footer, #cookie-consent-banner, .btn-forge-outline, .btn-forge-gold, .tab-btn, #open-entry-modal-btn {
    display: none !important;
  }
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }
  .bg-slate-900, .bg-slate-950, .forge-card, .bg-forge-bg {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
  }
  .text-white, .text-slate-200, .text-slate-300, .text-slate-400 {
    color: #111111 !important;
  }
  .text-amber-400, .text-emerald-400, .text-blue-400, .text-gradient-gold {
    color: #000000 !important;
    font-weight: bold !important;
    -webkit-text-fill-color: initial !important;
  }
}
