/* Global typography + background */

:root {
  --ggm-primary: #0c63e7;
  --ggm-primary-soft: rgba(12, 99, 231, 0.08);
  --ggm-border-soft: rgba(15, 23, 42, 0.06);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #f5f7fb;
  color: #3173b3;
}

/* Navbar tweaks */

.navbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Generic code styling */

code {
  font-size: 0.85rem;
  color: #1b8361;
  
}

/* Sections */

.section-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--ggm-border-soft);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.section-card-header {
  padding: 1.1rem 1.25rem 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #ffffff);
}

.section-card-body {
  padding: 1rem 1.25rem 1.25rem 1.25rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: black;
}

.section-subtitle {
  margin-top: 0.2rem;
}

/* Resource header */

.resource-title {
  font-size: 1.6rem;
  font-weight: 650;
}

.resource-uri {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: #64748b;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background-color: #e2e8f0;
  display: inline-block;
}

.resource-description {
  margin-bottom: 0;
  font-size: 1rem;
  color:#565a61
}

/* Curl snippet */

.curl-snippet {
  font-size: 0.85rem;
  background-color: #0f172a;
  color: #e5e7eb;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  overflow-x: auto;
}

/* Badges */

.badge.bg-primary-soft {
  background-color: var(--ggm-primary-soft);
  color: var(--ggm-primary);
}

.badge.bg-secondary-soft {
  background-color: rgba(148, 163, 184, 0.1);
  color: #475569;
}

.badge.bg-pill {
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
}

.bg-range {
  background-color: rgba(15, 118, 110, 0.06);
  color: #0f766e;
}

/* Property lists */

.property-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.property-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.property-item:last-child {
  border-bottom: none;
}

.property-label {
  font-size: 0.97rem;
  font-weight: 600;
  color: #0d70f3; 
}

.property-iri {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.15rem;
  word-break: normal; /* <-- VERANDERD */
}

.property-meta {
  margin-top: 0.3rem;
}

/* Hierarchy lists */

.hierarchy-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hierarchy-item {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.hierarchy-item:last-child {
  border-bottom: none;
}

.hierarchy-label {
  font-size: 0.95rem;
  font-weight: 500;
}

.hierarchy-iri {
  font-size: 0.8rem;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  margin-top: 0.1rem;
  word-break: normal;
}

/* Triples table */

.triples-table thead {
  background-color: #f9fafb;
}

.triples-table th,
.triples-table td {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.uri-link {
  word-break: normal;
}

.back-button {
    background-color: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    border-radius: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

.back-button:hover {
    background-color: #e2e8f0 !important;
    color: #1e293b !important;
    text-decoration: none;
}

/* Subtiele hover-effecten voor Attributen, Relaties, Super- en Subklassen 
.property-item {
  transition: background-color 0.15s ease-in-out;
  border-radius: 0.4rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.property-item:hover {
  background-color: var(--ggm-primary-soft); 
}


.property-link:hover {
  text-decoration: none;
  color: inherit;
}

.property-item:active {
  background-color: rgba(12, 99, 231, 0.14);
}

*/

.property-item:hover {
  background-color: #f8f9fa; /* zelfde hover als models pagina */
}

.property-link:hover {
  text-decoration: none;
  color: inherit;
}

.list-group {
    --bs-list-group-color: #368bdf !important;   /* your new text color */
}

.list-group-item:hover {
    color: #146cc4 !important;
}

.wikidata-link {
  color: inherit;          /* neemt tekstkleur over (zwart) */
  text-decoration: none;   /* geen underline */
}

.wikidata-link:hover {
  text-decoration: underline; /* optioneel: subtiele hint bij hover */
}

.model-hidden {
  display: none !important;
}

/* Toolbar boven modellenlijst */

.models-toolbar {
  background-color: #ffffff;
  border: 1px solid var(--ggm-border-soft);
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.models-toolbar .form-control,
.models-toolbar .btn {
  height: 38px;
  font-size: 0.9rem;
}

.models-toolbar .btn {
  background-color: #f8fafc;
}

.models-toolbar .btn:hover {
  background-color: #f1f5f9;
}

/* Modernere dropdown (zachter + ruimer) */

#domainBtn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0.8rem;
  padding: 0.65rem 0.9rem;
  font-weight: 500;
  background-color: #ffffff;
}

/* Dropdown menu zelf */
.dropdown-menu {
  border-radius: 0.9rem;
  padding: 0.4rem;
  border: 1px solid var(--ggm-border-soft);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

/* Items in de dropdown */
.dropdown-item {
  border-radius: 0.6rem;
  padding: 0.65rem 0.85rem;
  font-weight: 500;
}

/* Hover = zacht */
.dropdown-item:hover {
  background-color: var(--ggm-primary-soft);
}

#sortBtn {
  border-radius: 0.8rem;
  padding: 0 0.9rem;          /* verticale padding eruit */
  font-weight: 500;
  font-size: 1.2rem;
  background-color: #ffffff;
  border: 1px solid var(--ggm-border-soft);
  height: 38px;

  display: flex;
  align-items: center;       /* ⬅️ verticale centrering */
  justify-content: center;   /* ⬅️ horizontale centrering */
}

/* Subtiele footer (zoals wiewatstatus) */
.site-footer {
  margin-top: auto;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: transparent;
}

main.py-4 {
  padding-bottom: 2rem !important;
}

.footer-text {
  font-size: 0.8rem;
  color: #94a3b8; /* grijs, subtiel */
  letter-spacing: 0.01em;
}

.footer-sep {
  margin: 0 0.35rem;
  color: #cbd5e1;
}

.footer-github {
  color: #94a3b8;
  margin-left: 0.35rem;
  text-decoration: none;
  vertical-align: -0.05em;
  transition: color 0.15s ease;
}

.footer-github:hover {
  color: #64748b;
}

/* URI wrapping op smalle schermen */
.break-uri {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ========== Mobile / responsive ========== */

@media (max-width: 767.98px) {
  body {
    font-size: 15px;
  }

  .navbar-brand {
    font-size: 1.05rem;
  }

  .navbar-brand .bi {
    font-size: 1.1rem;
  }

  /* Toolbar op home: stapel op mobiel */
  .models-toolbar {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .models-toolbar .d-flex {
    width: 100%;
  }

  .models-toolbar #domainBtn {
    min-width: 0 !important;
    width: 100%;
    flex: 1 1 auto;
  }

  .models-toolbar #modelSearch {
    width: 100% !important;
    max-width: none;
  }

  .models-toolbar .dropdown {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Resource titel iets kleiner */
  .resource-title {
    font-size: 1.35rem;
  }

  .resource-uri {
    font-size: 0.8rem;
    max-width: 100%;
  }

  /* Sectiekaarten: iets strakkere padding */
  .section-card-header,
  .section-card-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Graph container niet te hoog op telefoon */
  #graph-container {
    height: 380px !important;
  }

  /* List items: voorkom te strakke layout */
  .list-group-item {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Footer iets compacter */
  .site-footer {
    padding: 1rem 0 1.25rem;
  }

  .footer-text {
    font-size: 0.75rem;
    line-height: 1.4;
  }
}

/* Extra kleine telefoons */
@media (max-width: 400px) {
  .navbar-brand-text {
    font-size: 0.95rem;
  }

  .models-toolbar {
    padding: 0.7rem;
  }
}
