/* RapidEye Tools - Shared Styles
   Matches RapidEyeWebsite design language (Inter, steel blue, shadcn/ui conventions) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #0A0E27;
  --color-accent: #6F9ABF;
  --color-accent-hover: #5A87AE;
  --color-text: #0A0E27;
  --color-text-light: #64748B;
  --color-bg: #FFFFFF;
  --color-bg-light: #F0F4F8;
  --color-border: #E2E8EF;
  --color-success: #22C55E;
  --color-error: #F04438;
  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 720px;
  --radius: 0.5rem;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  padding: 0;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Banner */
.site-banner {
  display: flex;
  justify-content: center;
  padding: 18px 0 10px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.banner-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  height: 40px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-chip:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
  border-color: rgba(111, 154, 191, 0.35);
  text-decoration: none;
}

.banner-chip .banner-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  margin: -14px -8px -14px -10px;
}

.banner-chip .banner-name {
  font-weight: 400;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}

.banner-chip .banner-sep {
  color: var(--color-border);
  font-weight: 300;
  font-size: 16px;
  margin: 0 1px;
}

.banner-chip .banner-cta {
  font-weight: 400;
  font-size: 13px;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.banner-chip .banner-arrow {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 14px;
}

.banner-chip:hover .banner-arrow {
  transform: translateX(3px);
}

/* Typography */
h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.375rem;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Cards */
.tool-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tool-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tool-card h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.tool-card h3 a {
  color: var(--color-text);
}

.tool-card p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Form elements */
label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-text);
}

input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font-stack);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.15s;
  height: 2.25rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(111, 154, 191, 0.15);
}

textarea {
  height: auto;
  min-height: 5rem;
}

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font-stack);
  min-height: 2.25rem;
  min-width: 44px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

button:hover, .btn:hover {
  background: var(--color-accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--color-bg-light);
}

/* Results / output areas */
.result-area {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

/* Tables (for reference/answer pages) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

th {
  text-align: left;
  font-weight: 600;
  padding: 0.625rem 0.75rem;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text);
}

td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-light);
}

tr:last-child td {
  border-bottom: none;
}

/* Content sections (for answer pages) */
.content-section {
  margin-top: 2rem;
}

.content-section p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.content-section ul, .content-section ol {
  margin: 0.75rem 0 1rem 1.25rem;
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.content-section li {
  margin-bottom: 0.375rem;
}

/* Callout box */
.callout {
  background: var(--color-bg-light);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.site-footer a {
  color: var(--color-text-light);
}

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

/* Utility */
.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row > * {
  flex: 1;
}

.text-small {
  font-size: 0.8125rem;
}

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

.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; }

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  table {
    font-size: 0.8125rem;
  }

  th, td {
    padding: 0.5rem;
  }
}
