@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

/* ==========================================================================
   Robert Mol Website Selector - Clean Minimalist Design (10/10 Edition)
   No header, No logo, Centered "Selecteer een website.", Larger Cards, Zero Crop
   Comfortable left breathing room for all 3 cards
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  /* Brand accents */
  --accent-dd: #00875a;
  --accent-ai: #0066cc;
  --accent-rm: #7c3aed;
  
  --shadow-sm: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px -4px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 24px 48px -8px rgba(15, 23, 42, 0.16);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 15%, #ffffff 0%, #f1f5f9 100%);
  padding: clamp(28px, 4.5vh, 64px) 24px;
}

/* ==========================================================================
   Main Container
   ========================================================================== */

.page-container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   Title: "Selecteer een website." & Welcome text
   ========================================================================== */

.page-header {
  text-align: center;
  margin-bottom: clamp(28px, 4.5vh, 52px);
}

.welcome-text {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  font-weight: 400; /* niet vetgedrukt */
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  color: var(--text-muted);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  line-height: 1.35;
}

.page-title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-main);
  line-height: 1.15;
}

/* ==========================================================================
   Selector Grid - 3 Larger Portrait Rectangles Side by Side
   ========================================================================== */

.selector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 2.5vw, 36px);
  align-items: stretch;
  width: 100%;
}

/* ==========================================================================
   Portrait Selection Cards / Buttons
   ========================================================================== */

.selector-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  outline: none;

  /* Default state: completely gray until hovered */
  filter: grayscale(100%) contrast(92%);
  opacity: 0.88;
  transform: translateY(0) scale(1);
  transition: filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Window Bar Mockup Header */
.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-light);
  user-select: none;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  background: #cbd5e1;
  transition: background-color 0.25s ease;
}

.window-url {
  flex: 1;
  text-align: center;
  margin: 0 12px;
}

.url-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.85);
  padding: 3px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.window-action {
  display: flex;
  align-items: center;
  color: var(--text-subtle);
  transition: color 0.25s ease;
}

/* ==========================================================================
   Screenshot Preview - 10/10 Zero-Crop Implementation
   Aspect ratio 1104 / 581 with generous left breathing room
   ========================================================================== */

.screenshot-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1104 / 581;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.card-dd .screenshot-frame {
  background: #fcfcf9;
}

.card-ai .screenshot-frame {
  background: #f8fafc;
}

.card-music .screenshot-frame {
  background: #090a0d;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card Body & Info */
.card-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 20px;
  background: #ffffff;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-badge {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 7px;
  background: #f1f5f9;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.card-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Action Button at Bottom of Card */
.card-action {
  margin-top: auto;
  padding-top: 8px;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.action-pill .arrow {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

/* ==========================================================================
   Hover & Focus-Visible States ("grijs totdat je met de muis eroverheen gaat")
   ========================================================================== */

.selector-card:hover,
.selector-card:focus-visible {
  filter: grayscale(0%) contrast(100%);
  opacity: 1;
  transform: translateY(-10px) scale(1.018);
  box-shadow: var(--shadow-lg);
}

.selector-card:hover .screenshot-img,
.selector-card:focus-visible .screenshot-img {
  transform: scale(1.02);
}

.selector-card:hover .arrow,
.selector-card:focus-visible .arrow {
  transform: translateX(5px);
}

/* Card 1: Digitale Didactiek Theme */
.card-dd:hover,
.card-dd:focus-visible {
  border-color: var(--accent-dd);
  box-shadow: 0 24px 44px -8px rgba(0, 135, 90, 0.22), 0 0 0 1.5px var(--accent-dd);
}

.card-dd:hover .dot-close,
.card-dd:focus-visible .dot-close {
  background: #ef4444;
}
.card-dd:hover .dot-min,
.card-dd:focus-visible .dot-min {
  background: #f59e0b;
}
.card-dd:hover .dot-max,
.card-dd:focus-visible .dot-max {
  background: #10b981;
}

.card-dd:hover .card-badge,
.card-dd:focus-visible .card-badge {
  background: rgba(0, 135, 90, 0.1);
  color: var(--accent-dd);
}

.card-dd:hover .action-pill,
.card-dd:focus-visible .action-pill {
  background: var(--accent-dd);
  border-color: var(--accent-dd);
  color: #ffffff;
}

/* Card 2: Alles over AI Theme */
.card-ai:hover,
.card-ai:focus-visible {
  border-color: var(--accent-ai);
  box-shadow: 0 24px 44px -8px rgba(0, 102, 204, 0.22), 0 0 0 1.5px var(--accent-ai);
}

.card-ai:hover .dot-close,
.card-ai:focus-visible .dot-close {
  background: #ef4444;
}
.card-ai:hover .dot-min,
.card-ai:focus-visible .dot-min {
  background: #f59e0b;
}
.card-ai:hover .dot-max,
.card-ai:focus-visible .dot-max {
  background: #10b981;
}

.card-ai:hover .card-badge,
.card-ai:focus-visible .card-badge {
  background: rgba(0, 102, 204, 0.1);
  color: var(--accent-ai);
}

.card-ai:hover .action-pill,
.card-ai:focus-visible .action-pill {
  background: var(--accent-ai);
  border-color: var(--accent-ai);
  color: #ffffff;
}

/* Card 3: Robert Mol Music Theme */
.card-music:hover,
.card-music:focus-visible {
  border-color: var(--accent-rm);
  box-shadow: 0 24px 44px -8px rgba(124, 58, 237, 0.25), 0 0 0 1.5px var(--accent-rm);
}

.card-music:hover .dot-close,
.card-music:focus-visible .dot-close {
  background: #ef4444;
}
.card-music:hover .dot-min,
.card-music:focus-visible .dot-min {
  background: #f59e0b;
}
.card-music:hover .dot-max,
.card-music:focus-visible .dot-max {
  background: #10b981;
}

.card-music:hover .card-badge,
.card-music:focus-visible .card-badge {
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-rm);
}

.card-music:hover .action-pill,
.card-music:focus-visible .action-pill {
  background: var(--accent-rm);
  border-color: var(--accent-rm);
  color: #ffffff;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1040px) {
  .selector-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
  }
  
  .card-music {
    grid-column: span 2;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 680px) {
  body {
    padding: 32px 16px 44px;
  }
  
  .selector-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 22px;
  }
  
  .card-music {
    grid-column: span 1;
  }
  
  .card-title {
    font-size: 19px;
  }
  
  .card-body {
    padding: 20px 20px 22px;
  }
}
