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

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
  --font-body: 'Onest', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Onest', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body{
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: #111;
  background: #f5f5f5;
}

/* Headings */
h1, h2, h3, h4{
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

h1{
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
}

h2{
  font-size: 22px;
  font-weight: 600;
}

h3{
  font-size: 18px;
  font-weight: 600;
}
.meta,
.card-number,
.set-sub{
  font-family: var(--font-body);
  font-weight: 500;
  color: #666;
}

a {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: #fba111 !important;
    color: #000;
}

a:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: #ffe165 !important;
    color: #000;
}

.artikel-body a {
color: #000!important;
}

nav a:hover {
    text-decoration: none;
}

/* Header */
header {
    background: #1a1a1a;
    color: white;
    padding: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #FDB927;
}

/* Search in header */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search input {
    padding: 8px 35px 8px 15px;
    border: none;
    border-radius: 20px;
    width: 250px;
    font-size: 14px;
}

.header-search button {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 16px;
}

/* ===== Search hero bar (onder header) ===== */

.search-hero{
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 34px 0 14px;
  margin-bottom: 6px;

  background-image: url(https://www.pokemonkaart.nl/wp-content/uploads/zoekbg.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;

  position: relative;
  isolation: isolate; /* zorgt dat z-index binnen dit blok netjes werkt */
}

/* subtiele dark overlay voor leesbaarheid */
.search-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .10), rgb(0 0 0 / .05));
  z-index: 0;
}

.search-hero-inner{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Form */
.hero-search{
  position: relative; /* REQUIRED: dropdown absoluut hierop */
  flex-wrap: wrap;  
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 18px 44px rgba(0,0,0,.25);

  backdrop-filter: blur(8px);
}

/* icoon */
.hero-search-icon{
  opacity: .65;
  display: inline-flex;
  align-items:center;
  justify-content:center;
}

.hero-search-icon svg{
  width: 20px;
  height: 20px;
}

/* input */
.hero-search input{
  flex:1;
  border:0;
  outline:none;
  background: transparent;
  flex: 1 1 420px;
  min-width: 240px;
  font-size: 15px;
  padding: 10px 6px;

  color:#111;
}

.hero-search input::placeholder{
  color: rgba(0,0,0,.45);
}

/* button */
.hero-search-btn{
  border:0;
  background: #111;
  color:#fff;
  flex: 0 0 auto;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  cursor:pointer;
}

.hero-search-btn:hover{
  filter: brightness(1.06);
}

/* Chips / voorbeelden */
.search-chips{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.chip-label{
  color: rgba(255,255,255,.85);
  font-size: 12px;
  margin-right: 4px;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;

  padding: 7px 10px;
  border-radius: 999px;

  text-decoration:none;
  font-size: 12px;

  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}

.chip:hover{
  background: rgba(255,255,255,.18);
}

/* Mobile */
@media (max-width: 640px){
  .hero-search-btn{ display:none; }
  .hero-search{ border-radius: 14px; }
}

/* ===== Suggest dropdown (overlay, no layout shift) ===== */

.hero-suggest{
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: calc(100% + 10px) !important;

  background:#fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  overflow: hidden;

  z-index: 99999 !important;
}

/* IMPORTANT: voorkom dat iets in hero uitrekt */
.hero-suggest *{
  max-width: 100%;
}

/* suggest item */
.hero-suggest .suggest-item{
  display:flex;
  gap: 12px;
  padding: 10px 12px;
  text-decoration:none;
  color:#3b3b3b;
  align-items:center;
}

.hero-suggest .suggest-item:hover,
.hero-suggest .suggest-item.is-active{
  background: rgba(0,0,0,.04);
}

/* thumbnail wrapper */
.hero-suggest .suggest-thumb{
  width: 50px;
  height: 70px;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,.10);
  overflow: hidden;
  background: #fff;
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}

/* CRUCIAAL: nooit realsize */
.hero-suggest .suggest-thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display:block;
}

/* tekst */
.hero-suggest .suggest-text{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap: 2px;
}

.hero-suggest .suggest-name{
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.hero-suggest .suggest-name mark{
  background: rgba(253,185,39,.18);
  color: #000;
  border-radius: 4px;
}

.hero-suggest .suggest-meta{
  color:#666;
  font-size: 13px;
  display:flex;
  gap: 5px;
}

.hero-suggest .suggest-all{
  display:block;
  text-align:center;
  padding: 12px 10px;
  border-top: 1px solid rgba(0,0,0,.08);
  color:#333;
  text-decoration: underline;
  font-weight: 700;
}

.hero-suggest .suggest-empty{
  padding: 12px;
  color:#666;
  text-align:center;
}


.breadcrumb.breadcrumb--pills{
  display:flex;
  align-items:center;
  justify-content: center;
  gap:5px;
  flex-wrap:wrap;
  margin:14px 0 40px;
}

/* Algemene pill */
.breadcrumb .crumb{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  text-decoration:none;
  color:#fff;
  font-weight:900;
  font-style:italic;
  text-transform:uppercase;
  line-height:1;
  box-shadow:0 6px 16px rgba(0,0,0,.15);
  transition:.15s ease;
}

.breadcrumb .crumb:hover{
  box-shadow:0 10px 20px rgba(0,0,0,.18);
}

/* Serie = roze gradient */
.breadcrumb .crumb--serie{
  background:linear-gradient(90deg,#ff4aa5,#d24a86);
}

/* Set = paarse gradient */
.breadcrumb .crumb--set{
  background:linear-gradient(90deg,#d5a4ff,#b07cff);
}

/* taal */
.breadcrumb .crumb--taal {
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
}

/* Separator */
.breadcrumb .sep{
  color:#777;
  font-weight:900;
}

/* Current item */
.breadcrumb .current{
  color:#666;
  font-weight:900;
  font-style:italic;
  text-transform:uppercase;
}



/* Main Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar */
.sidebar {
    position: sticky;
}

.sidebar-box {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar-header {
    background: linear-gradient(135deg, #FDB927 0%, #F89C1C 100%);
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-content {
    padding: 15px;
}

.sidebar-content ul {
    list-style: none;
}

.sidebar-content li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-content li:last-child {
    border-bottom: none;
}

.sidebar-content a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.sidebar-content a:hover {
    color: #FDB927;
}

.featured-set {
    text-align: center;
}

.featured-set img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.featured-set h3 {
    font-size: 16px;
    margin-bottom: 5px;
}



/* Main Content */
.main-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

h1 {
    font-size: 32px;
    color: #1a1a1a;
}

.page-subtitle {
    color: #666;
    font-size: 18px;
    margin-bottom: 30px;
}

.title-section {
    margin-bottom: 20px;
    text-align: center;
}


/* Info Boxes (Kaart detail) */
.info-section, .meer-kaarten {
    margin-top: 40px;
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.info-box{
  position: relative;
  padding: 18px;
  border-radius: 12px;
  background:#fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  overflow: hidden;
}

.info-box::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background: linear-gradient(90deg,#fdb927,#ffe28a);
}

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}


/* Standaard (desktop) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Kleine telefoons portrait */
@media (max-width: 430px) and (orientation: portrait) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    }
}


/* Tablet portrait */
@media (min-width: 431px) and (max-width: 768px) and (orientation: portrait) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(143px, 1fr));
    }
}

/* Tablet landscape / kleine desktop */
@media (min-width: 769px) and (max-width: 960px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(147px, 1fr));
    }
}

/* Grote tablet / kleine laptop */
@media (min-width: 961px) and (max-width: 1300px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
    }
}

.card-item {
    text-decoration: none;
    color: #333;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    /* border: 1px solid #e0e0e0; */
}

.card-item:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card-image-wrapper {
    position: relative;
    padding: 15px;
    background: #fafafa;
    text-align: center;
}

.card-image-wrapper img {
    width: 100%;
    /* height: 280px; */
    object-fit: contain;
    border-radius: 4px;
}

.card-image-placeholder {
    height: 280px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 4px;
}

.card-info {
    padding: 15px;
    text-align: center;
}

.card-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
    display: block;
}

.card-number {
    color: #666;
    font-size: 13px;
    display: block;
    margin-bottom: 8px;
}

.card-set {
    color: #999;
    font-size: 12px;
    display: block;
}

/* Card Detail Layout */
.card-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.card-detail-image {
    text-align: center;
}

.card-detail-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-detail-info h1 {
    font-weight: 700;
    color: #2d3748;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card-detail-number {
    font-size: 20px;
    color: #666;
    font-weight: 700;
    color: #2d3748;
    font-family: var(--font-body);
}

/* Series Grid (Homepage) */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.series-item {
    text-decoration: none;
    color: #333;
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
}

.series-item:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.series-item img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.series-name {
    font-weight: 600;
    font-size: 16px;
}

/* Search Results */
.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: top;
    margin-bottom: 25px;
}

.results-count {
    color: #666;
    font-size: 14px;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 50px 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pagination a, .pagination span {
    padding: 10px 18px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #FDB927;
    color: white;
    border-color: #FDB927;
}

.pagination .current-page {
    color: #666;
    font-weight: 600;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

footer p {
    font-size: 14px;
    color: #999;
}

/* Advanced Search Form */
.advanced-search-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 900px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #FDB927;
}

.form-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary {
    background: #FDB927;
    color: white;
}

.btn-primary:hover {
    background: #F89C1C;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Tips Box */
.tips-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-top: 40px;
    border-left: 4px solid #FDB927;
}

.tips-box h3 {
    margin-bottom: 15px;
    color: #1a1a1a;
}

.tips-box ul {
    line-height: 2;
    color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .card-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-search input {
        width: 180px;
    }
    
    .series-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== FIX: dropdown moet boven sidebar/content ===== */

/* belangrijk: geen clipping */
.search-hero,
.search-hero-inner{
  overflow: visible !important;
}

/* dropdown krijgt mega z-index */
.hero-search{ 
  position: relative !important; 
  z-index: 999999 !important;
}

.hero-suggest{
  position: absolute !important;
  z-index: 9999999 !important;
}

/* soms maakt een container een stacking context (transform/filter) */
.layout-with-sidebar,
.container,
.main-content,
.sidebar{
  transform: none !important;
  filter: none !important;
}

/* als sidebar een z-index heeft, forceer lager */
.sidebar{
  position: relative;
  z-index: 1 !important;
}

/* content laag */
.main-content{
  position: relative;
  z-index: 1 !important;
}

/* search-hero boven alles */
.search-hero{
  position: relative !important;
  z-index: 200;
}



/* Checkboxblok ALTIJD onder de zoekbalk */
.search-context{
  flex: 0 0 100%;        
  width: 100%;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}


.search-context-toggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.search-context-toggle input{
  width: 16px;
  height: 16px;
  accent-color: #FDB927;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.overview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    text-decoration: none;
    color: #111;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.12s ease, transform 0.08s ease;
}

.overview-item:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.overview-naam {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.overview-count {
    background: #f0f0f0;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.back-to-results {
  margin: 12px 0 16px;
}

.back-to-results a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  color: #111;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.back-to-results a:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.back-to-results a:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.back-to-results .icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.series-item.is-upcoming {
    pointer-events: none;
    opacity: 0.45;
    filter: grayscale(100%);
    cursor: default;
}

.card-media {
    background: radial-gradient(circle at 30% 30%, rgba(90,200,250,0.18), rgba(0,0,0,0.02));
    padding: 12px;
}

.card-tile:hover {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

img.hero-search-flag {
    height: 22px;
    width: auto;
    flex-shrink: 0;
    padding: 0px 4px 0px 8px;
}

.hero-search-inner input[name="q"] {
    font-size: 16px !important;
}

@media (max-width: 1180px) {
    .container {
        padding: 0;
    }

    .search-hero {
    margin-bottom: 0px;
}

.series-item-logo img {
    max-height: 65px;
}

.main-content {
    padding: 20px;
}

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ebay-grid {
        grid-template-columns: repeat(2, 1fr)!important;
    }

}


@media (max-width: 768px) {
h2 {

    text-align: center;

}}