/* ================================================
   Donald Duck Pocket - Homepage Kaartenlayout
   Bestand: templates/cassiopeia/css/user.css
   ================================================ */

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

.dd-grid-wrapper {
  font-family: 'Nunito', sans-serif;
  padding: 10px 0 30px 0;
}

.dd-grid-title {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  letter-spacing: 2px;
  color: #c8102e;
  text-align: center;
  margin-bottom: 24px;
  text-shadow: 2px 2px 0px #f5c300;
}

.dd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 0 10px;
}

.dd-card {
  background: #fff;
  border-radius: 12px;
  border: 3px solid #c8102e;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 4px 4px 0px #c8102e;
}

.dd-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 6px 6px 0px #c8102e;
  text-decoration: none;
  color: inherit;
}

.dd-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  display: block;
  background: #f0f0f0;
}

.dd-card-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #f5c300 0%, #ffd740 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.dd-card-body {
  padding: 12px 14px 14px;
  background: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dd-card-title {
  font-family: 'Bangers', cursive;
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: #c8102e;
  line-height: 1.2;
  margin: 0;
}

.dd-card-desc {
  font-size: 0.8rem;
  color: #444;
  margin: 0;
  line-height: 1.4;
}

.dd-card-badge {
  display: inline-block;
  background: #f5c300;
  color: #333;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: auto;
  width: fit-content;
}

.dd-card-badge.gestopt {
  background: #e0e0e0;
  color: #777;
}

.dd-section-label {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: #1a56a0;
  border-bottom: 3px solid #f5c300;
  margin: 30px 10px 16px;
  padding-bottom: 4px;
}

@media (max-width: 480px) {
  .dd-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ================================================
   Header styling
   ================================================ */

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}

.navbar-brand .brand-logo img {
  height: 120px !important;
  width: auto !important;
}

.dd-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dd-header-title {
  font-family: 'Pacifico', cursive;
  font-size: 2.4rem;
  color: #c8102e;
  text-shadow: 2px 2px 0px #f5c300, 4px 4px 0px rgba(0,0,0,0.15);
  line-height: 1.1;
  margin: 0;
}

.dd-header-subtitle {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  margin: 0;
}

/* ================================================
   Categorielijst als kaartenraster
   ================================================ */

.com-content-category__table {
  border: none !important;
  background: transparent !important;
}

.com-content-category__table thead {
  display: none !important;
}

.com-content-category__table tbody {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  padding: 10px 0;
}

.com-content-category__table tr {
  display: block !important;
  background: #fff !important;
  border: 2px solid #c8102e !important;
  border-radius: 8px !important;
  box-shadow: 3px 3px 0px #c8102e !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  padding: 0 !important;
}

.com-content-category__table tr:hover {
  transform: translateY(-3px) !important;
  box-shadow: 5px 5px 0px #c8102e !important;
}

.com-content-category__table .list-title {
  display: block !important;
  padding: 12px 16px !important;
  font-weight: normal !important;
}

.com-content-category__table .list-title a {
  font-family: 'Nunito', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #1a56a0 !important;
  text-decoration: none !important;
  display: block !important;
}

.com-content-category__table .list-title a:hover {
  color: #c8102e !important;
}

.com-content-category__table.table-striped > tbody > tr:nth-of-type(odd) > * {
  background: transparent !important;
  --bs-table-accent-bg: transparent !important;
}

/* ================================================
   Detailpagina pocket - ALLEEN op .dd-pocket-detail pagina's
   ================================================ */

.dd-pocket-detail .com-content-article h1 {
  font-family: 'Bangers', cursive !important;
  font-size: 1.6rem !important;
  color: #1a56a0 !important;
  letter-spacing: 1px !important;
  margin-bottom: 4px !important;
}

.dd-pocket-detail .com-content-article h2 {
  font-family: 'Bangers', cursive !important;
  font-size: 2rem !important;
  color: #c8102e !important;
  letter-spacing: 1px !important;
  margin-bottom: 16px !important;
}

.dd-pocket-detail .com-content-article__body {
  display: flex !important;
  flex-direction: column !important;
}

.dd-pocket-detail .com-content-article__body table:first-of-type {
  border-collapse: collapse !important;
  margin-bottom: 20px !important;
  font-size: 0.88rem !important;
  background: #fff !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 8px !important;
  width: 100% !important;
}

.dd-pocket-detail .com-content-article__body table:first-of-type td {
  padding: 5px 14px !important;
  border: none !important;
  color: #333 !important;
  vertical-align: top !important;
}

.dd-pocket-detail .com-content-article__body table:first-of-type tr:nth-child(odd) {
  background: #fafafa !important;
}

.dd-pocket-detail .com-content-article__body table:first-of-type tr:hover {
  background: #fff8e1 !important;
}

.dd-pocket-detail .com-content-article__body table:first-of-type::before {
  content: '📖 Inhoud';
  display: block;
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: #1a56a0;
  margin-bottom: 8px;
}

.dd-pocket-detail .com-content-article__body table:last-of-type {
  border-collapse: collapse !important;
  margin-top: 28px !important;
  background: #fff !important;
  border: 2px solid #c8102e !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  font-size: 0.9rem !important;
  clear: left !important;
  position: relative !important;
}

.dd-pocket-detail .com-content-article__body table:last-of-type::before {
  content: '📋 Details';
  display: block;
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: #1a56a0;
  margin-bottom: 8px;
}

.dd-pocket-detail .com-content-article__body table:last-of-type td {
  padding: 8px 14px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  color: #333 !important;
}

.dd-pocket-detail .com-content-article__body table:last-of-type td:first-child {
  font-weight: 700 !important;
  color: #1a56a0 !important;
  white-space: nowrap !important;
  background: #f8f8f8 !important;
  width: 140px !important;
}

.dd-pocket-detail .com-content-article__body table:last-of-type tr:last-child td {
  border-bottom: none !important;
}

.dd-pocket-detail .com-content-article__body > div > div:last-child {
  padding: 8px 0 8px 8px !important;
}

/* Vorige/Volgende navigatie */
.pager {
  display: flex !important;
  justify-content: space-between !important;
  margin-top: 24px !important;
  clear: both !important;
}

.pager a {
  background: #c8102e !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  transition: background 0.2s !important;
  box-shadow: 3px 3px 0px #8b0000 !important;
}

.pager a:hover {
  background: #a00d26 !important;
  color: #fff !important;
}

/* ================================================
   Header achtergrond - Donald Duck stijl
   ================================================ */

.container-header {
  background: linear-gradient(135deg, #f5c300 0%, #ff8c00 60%, #c8102e 100%) !important;
  background-image: linear-gradient(135deg, #f5c300 0%, #ff8c00 60%, #c8102e 100%) !important;
}

/* ================================================
   Footer
   ================================================ */

.container-footer {
  background: linear-gradient(135deg, #f5c300 0%, #ff8c00 60%, #c8102e 100%) !important;
}

.container-footer,
.container-footer a {
  color: #fff !important;
}

.container-footer a:hover {
  color: #fff3cd !important;
}

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

@media (max-width: 768px) {
  .dd-header-title {
    font-size: 1.6rem !important;
  }
  .dd-header-subtitle {
    font-size: 0.85rem !important;
  }

  div[style*="display:flex"] > img[src*="Logo"] {
    height: 100px !important;
  }

  .dd-pocket-detail .com-content-article__body > div[style*="display:flex"] {
    flex-direction: column !important;
    align-items: center !important;
  }

  .dd-pocket-detail .com-content-article__body > div[style*="display:flex"] > div:first-child {
    flex: none !important;
    width: 100% !important;
    max-width: 280px !important;
  }

  .dd-pocket-detail .com-content-article__body > div[style*="display:flex"] > div:last-child {
    width: 100% !important;
    overflow-x: auto !important;
  }

  .dd-pocket-detail .com-content-article__body table {
    font-size: 0.8rem !important;
    width: 100% !important;
  }
}

.dd-section-sublabel {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 16px 10px 8px;
  padding-left: 4px;
  border-left: 3px solid #f5c300;
}
