/* Manrope Font Declarations - Using Specific Weight Files */

@font-face {
  font-family: "Manrope";
  src: url("/eoc/fonts/manrope/manrope-v15-latin-200.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/eoc/fonts/manrope/manrope-v15-latin-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/eoc/fonts/manrope/manrope-v15-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/eoc/fonts/manrope/manrope-v15-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/eoc/fonts/manrope/manrope-v15-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/eoc/fonts/manrope/manrope-v15-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/eoc/fonts/manrope/manrope-v15-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors - Primary Palette */
  --primary-color: #2e6b47;
  --primary-dark: #05381d;
  --primary-light: #4a8d65;
  --secondary-color: #d90078;
  --secondary-dark: #c0006b;

  /* Text Colors */
  --text-primary: #203947;
  --text-color: #333333;
  --light-text-color: #6b7a86;

  /* UI Element Colors */
  --border-color: #e0e0e0;
  --border-light: #eaecf0;
  --icon-gray: #98a2b3;
  --neutral-dark: #2b3136;

  /* Background Colors */
  --bg-light-green: #f2f7f2;
  --white: #ffffff;
  --footer-bg-color: #006246;
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --auth-btn-bg: #006246;

  /* Spacing System - Based on 4px grid */
  --spacing-unit: 1rem; /* Base spacing (16px) */
  --spacing-xs: 0.25rem; /* 4px */
  --spacing-sm: 0.5rem; /* 8px */
  --spacing-md: 1.5rem; /* 24px */
  --spacing-lg: 2rem; /* 32px */
  --spacing-xl: 3rem; /* 48px */
  --spacing-2xl: 4rem; /* 64px */
  --spacing-3xl: 6rem; /* 96px */

  /* Section Padding */
  --section-padding: 5rem;

  /* Typography - Font Weights */
  --font-thin: 200;
  --font-extralight: 200;
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 800;

  /* Typography - Font Sizes with Comments */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-md: 1.125rem; /* 18px */
  --text-lg: 1.25rem; /* 20px */
  --text-xl: 1.5rem; /* 24px */
  --text-2xl: 1.75rem; /* 28px */
  --text-2xl-lg: 1.875rem; /* 30px */
  --text-3xl: 2rem; /* 32px */
  --text-3xl-lg: 2.25rem; /* 36px */
  --text-4xl: 2.5rem; /* 40px */
  --text-5xl: 3rem; /* 48px */
  --text-6xl: 3.5rem; /* 56px */
  --text-7xl: 4rem; /* 64px */
  --text-8xl: 5rem; /* 80px */

  /* Line heights */
  --leading-none: 1; /* Heading tight */
  --leading-tight: 1.25; /* Compact */
  --leading-snug: 1.375; /* Slightly tighter than normal */
  --leading-normal: 1.5; /* Standard body text */
  --leading-relaxed: 1.625; /* Slightly looser for readability */
  --leading-loose: 2; /* Very loose */

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --card-radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base styles */
html,
body {
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen-Sans,
    Ubuntu,
    Cantarell,
    "Helvetica Neue",
    sans-serif;
  color: var(--text-color);
  font-size: 16px;
  line-height: var(--leading-normal);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Override CKAN default background */
body {
  background: #fff !important;
  background-image: none !important;
}

/* Section spacing */
section {
  padding: var(--section-padding, 5rem) 0;
}

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

.d-block {
  display: block;
}

/* ========================================
   Dataset Status Badge Styles
   ======================================== */

/* Base badge styles */
.dataset-status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: var(--leading-tight);
  margin-bottom: var(--spacing-md);
  transition: var(--transition-fast);
}

.dataset-status-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dataset-status-badge__icon .icon {
  width: 16px;
  height: 16px;
}

.dataset-status-badge__label {
  white-space: nowrap;
}

/* Status-specific modifiers - Following Figma design specifications */

/* Uploaded status - Blue */
.dataset-status-badge--uploaded {
  background-color: #e3f2fd;
  color: #1565c0;
}

/* Validation Failed status - Red */
.dataset-status-badge--validation_failed,
.dataset-status-badge--validation-failed {
  background-color: #ffebee;
  color: #c62828;
}

/* Validation Passed status - Green */
.dataset-status-badge--validation_passed,
.dataset-status-badge--validation-passed {
  background-color: #e8f5e9;
  color: #2e7d32;
}

/* Pending Review status - Amber */
.dataset-status-badge--pending_review,
.dataset-status-badge--pending-review {
  background-color: #fff8e1;
  color: #f57f17;
}

/* Approved status - Dark Green */
.dataset-status-badge--approved {
  background-color: #e8f5e9;
  color: #1b5e20;
}

/* Rejected status - Dark Red */
.dataset-status-badge--rejected {
  background-color: #ffebee;
  color: #b71c1c;
}

/* Icon color inheritance */
.dataset-status-badge__icon svg {
  stroke: currentColor;
}
