:root {
  /* Bauhaus Palette */
  --bauhaus-red: #E2001A;
  --bauhaus-blue: #0055A4;
  --bauhaus-yellow: #FFD500;
  --bauhaus-black: #000000;
  --bauhaus-white: #FFFFFF;
  --bauhaus-bg: #F2F2F2;

  /* Spacing */
  --space-unit: 8px;
  --space-xs: calc(var(--space-unit) * 1);
  --space-sm: calc(var(--space-unit) * 2);
  --space-md: calc(var(--space-unit) * 4);
  --space-lg: calc(var(--space-unit) * 8);
  --space-xl: calc(var(--space-unit) * 12);
  
  /* Borders */
  --border-thick: 4px solid var(--bauhaus-black);
  --border-thin: 2px solid var(--bauhaus-black);
}

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

body {
  font-family: 'Futura', 'Trebuchet MS', Arial, sans-serif;
  background-color: var(--bauhaus-bg);
  color: var(--bauhaus-black);
  line-height: 1.2;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout Components */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

section {
  position: relative;
  width: 100%;
}

/* Navigation */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: var(--border-thick);
  background: var(--bauhaus-white);
  z-index: 100;
}

.logo {
  font-size: 2.5rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-link {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  padding: 4px 0;
  border-bottom: 4px solid transparent;
  transition: border-color 0.2s;
}

.nav-link:hover {
  border-bottom-color: var(--bauhaus-red);
}

.btn-login {
  background: var(--bauhaus-blue);
  color: var(--bauhaus-white);
  padding: var(--space-sm) var(--space-lg);
  font-weight: 900;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-weight: 900;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  text-align: center;
}

.btn-red {
  background: var(--bauhaus-red);
  color: var(--bauhaus-white);
}

.btn-blue-outline {
  background: transparent;
  color: var(--bauhaus-blue);
  border: var(--border-thick);
  border-color: var(--bauhaus-blue);
}

.btn-view {
  background: var(--bauhaus-red);
  color: var(--bauhaus-white);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  border-bottom: var(--border-thick);
}

.hero-content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  background: rgba(255,255,255,0.8);
}

.hero-title {
  font-size: 8rem;
  line-height: 0.85;
  margin-bottom: var(--space-md);
}

.hero-subtext {
  font-size: 1.5rem;
  max-width: 400px;
  margin-bottom: var(--space-xl);
  text-transform: uppercase;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
}

.hero-visuals {
  position: relative;
  overflow: hidden;
  background: var(--bauhaus-white);
  border-left: var(--border-thick);
}

/* Bauhaus Shapes */
.shape {
  position: absolute;
}

.circle-yellow {
  width: 400px;
  height: 400px;
  background: var(--bauhaus-yellow);
  border-radius: 50%;
  top: 10%;
  right: -100px;
}

.square-red {
  width: 300px;
  height: 300px;
  background: var(--bauhaus-red);
  bottom: 15%;
  left: 10%;
}

.bar-blue {
  width: 80px;
  height: 120%;
  background: var(--bauhaus-blue);
  left: 45%;
  top: -10%;
  transform: rotate(5deg);
}

/* Discover Page Layout */
.discover-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  min-height: calc(100vh - 100px);
}

.filter-panel {
  background: var(--bauhaus-yellow);
  padding: var(--space-xl);
  border-right: var(--border-thick);
}

.filter-title {
  font-size: 3rem;
  margin-bottom: var(--space-xl);
  border-bottom: var(--border-thick);
  padding-bottom: var(--space-sm);
}

.filter-group {
  margin-bottom: var(--space-xl);
}

.filter-group-label {
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  display: block;
  font-size: 1.2rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.checkbox-box {
  width: 24px;
  height: 24px;
  border: var(--border-thin);
  background: var(--bauhaus-white);
}

.checkbox-item:hover .checkbox-box {
  background: var(--bauhaus-black);
}

/* Card Grid */
.content-panel {
  padding: var(--space-xl);
  background: var(--bauhaus-white);
}

.grid-header {
  margin-bottom: var(--space-xl);
  border-bottom: var(--border-thick);
  padding-bottom: var(--space-sm);
}

.dataset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: var(--space-lg);
}

.dataset-card {
  border: var(--border-thick);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  transition: transform 0.1s;
}

.dataset-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--bauhaus-black);
}

.dataset-name {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.dataset-desc {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  color: #444;
}

.dataset-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.dataset-meta {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Utility */
.accent-grid {
  height: 120px;
  border-top: var(--border-thick);
  background: var(--bauhaus-white);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.accent-red { background: var(--bauhaus-red); border-right: var(--border-thick); }
.accent-yellow { background: var(--bauhaus-yellow); border-right: var(--border-thick); }
.accent-blue { background: var(--bauhaus-blue); }

.mt-xl { margin-top: var(--space-xl); }
.pt-md { padding-top: var(--space-md); }
.border-top-thick { border-top: var(--border-thick); }

/* Dataset Details */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 100px);
}

.details-left {
  padding: var(--space-xl);
  background: var(--bauhaus-white);
  border-right: var(--border-thick);
}

.details-title {
  font-size: 5rem;
  line-height: 0.9;
  margin-bottom: var(--space-xl);
  text-transform: uppercase;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: var(--border-thick);
}

.meta-item {
  padding: var(--space-md);
  border: var(--border-thin);
}

.meta-label {
  display: block;
  font-weight: 900;
  font-size: 0.8rem;
  margin-bottom: var(--space-xs);
  color: var(--bauhaus-red);
}

.meta-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.details-right {
  padding: var(--space-xl);
  background: var(--bauhaus-bg);
  position: relative;
  overflow: hidden;
}

.yellow-accent-bar {
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 100%;
  background: var(--bauhaus-yellow);
  border-left: var(--border-thick);
}

.table-preview {
  width: 100%;
  border-collapse: collapse;
  background: var(--bauhaus-white);
  border: var(--border-thick);
}

.table-preview th, .table-preview td {
  border: var(--border-thin);
  padding: var(--space-md);
  text-align: left;
}

.table-preview th {
  background: var(--bauhaus-black);
  color: var(--bauhaus-white);
  text-transform: uppercase;
}

.details-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.btn-blue { background: var(--bauhaus-blue); color: var(--bauhaus-white); }

.box-white {
  background: var(--bauhaus-white);
  border: var(--border-thick);
  padding: var(--space-lg);
}

.font-900 { font-weight: 900; }
.text-upper { text-transform: uppercase; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-lg { margin-bottom: var(--space-lg); }
.fs-3rem { font-size: 3rem; }

/* Placeholders */
.placeholder-image {
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-thin);
  text-transform: uppercase;
  font-weight: 900;
}
