/*
 * custom.css
 * Versie: 2025-11-02 17:10 CET
 * Dependencies: Bootstrap 5
 * Linked files: header.php, footer.php, index.php
 */

/* ========== 0) Globale font en layout ========== */
html { height:100%; }
body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family:'Inconsolata', monospace;
  font-size:16px;
  color:#222;
  background:#fff;
  -webkit-font-smoothing:antialiased;
  /* padding-top wordt door JS gezet op headerhoogte */
}
main{ flex-grow:1; }
footer{ flex-shrink:0; }
h1,h2,h3,h4,h5,h6,p,a,li,button,small,span,label,input,textarea{
  font-family:'Inconsolata', monospace;
}

/* h3 kleiner maken dan h2 */
h3 {
  font-size: 1.3rem;
  font-weight: 500;
}

/* ========== 1) Header: vast bovenaan ========== */
#header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1030;              /* boven content */
  background:#fff;
  box-shadow:0 2px 12px rgba(0,0,0,.06);
}
#header .navbar{ padding:0; }

/* Main navigation */
.main-navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* Taal-switcher */
.language-switcher{ 
  display: flex; 
  gap: 3px; 
}
.language-switcher .lang-btn{
  font-size: 11px; 
  color: #666; 
  text-decoration: none; 
  padding: 3px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #fafafa;
  transition: all .2s ease-in-out;
}
.language-switcher .lang-btn.active,
.language-switcher .lang-btn:hover{ 
  font-weight: 600; 
  color: #000; 
  background: #f0f0f0;
  border-color: #aaa;
}

/* Menu list */
.menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
}

.menu-list li {
  margin: 0;
  padding: 0;
}

.menu-list .menu-btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  color: #222;
  background: #fff;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}

.menu-list .menu-btn:hover {
  color: #000;
  background: #f5f5f5;
  border-color: #999;
  font-weight: 600;
}
}

/* ========== 2) Hero en knoppen ========== */
#hero.hero{ min-height:auto; padding:60px 0; }
#hero .info{ padding:0; }
#hero h1,#hero h3,#hero p{ text-align:left; }

.btn-get-started,.btn-get-started-outline{
  background:#fff; color:#333; border:1px solid #ddd;
  padding:10px 25px; border-radius:4px; font-weight:600;
  transition:all .3s ease; margin:5px;
}
.btn-get-started:hover,.btn-get-started-outline:hover{
  background:#f8f8f8; color:#000; border-color:#ccc;
}

/* ========== 3) E-mail obfuscation helpers ========== */
.obf{
  unicode-bidi:bidi-override;
  direction:rtl;
}
a.obf-email{
  display:inline-block;
  border:1px dashed #bbb;
  border-radius:4px;
  padding:6px 10px;
  text-decoration:none;
  color:#333;
}
a.obf-email:hover{ background:#fafafa; border-color:#aaa; }

/* ========== 4) Reference Cards ========== */
/* Filter buttons */
.reference-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:2rem;
}
.filter-btn{
  font-family:'Inconsolata', monospace;
  font-size:.9rem;
  padding:8px 15px;
  background:#fff;
  color:#333;
  border:1px solid #ddd;
  border-radius:4px;
  cursor:pointer;
  transition:all .2s ease-in-out;
  white-space:nowrap;
}
.filter-btn:hover{
  background:#f8f8f8;
  border-color:#ccc;
  color:#000;
}
.filter-btn.active{
  background:#222;
  color:#fff;
  border-color:#222;
}

/* Reference cards */
.reference-card{
  background:#fff;
  border:1px solid #ddd;
  border-radius:4px;
  height:100%;
  display:flex;
  flex-direction:column;
  transition:all .3s ease;
  overflow:hidden;
}
.reference-card:hover{
  border-color:#ccc;
  box-shadow:0 2px 12px rgba(0,0,0,.06);
}

.reference-card-image{
  width:100%;
  height:200px;
  overflow:hidden;
  background:#f8f8f8;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.reference-card-image a{
  display:block;
  width:100%;
  height:100%;
}
.reference-card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .3s ease;
}
.reference-card:hover .reference-card-image img{
  transform:scale(1.05);
}

/* Image placeholder */
.image-placeholder{
  font-size:4rem;
  font-weight:600;
  color:#ddd;
  user-select:none;
}

.reference-card-body{
  padding:20px;
  flex-grow:1;
  display:flex;
  flex-direction:column;
}

.reference-card-title{
  font-family:'Inconsolata', monospace;
  font-size:1.1rem;
  font-weight:600;
  color:#222;
  margin-bottom:12px;
}

.reference-card-description{
  font-size:.9rem;
  color:#555;
  line-height:1.6;
  margin-bottom:15px;
  flex-grow:1;
}

.reference-card-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:auto;
}

.reference-tag{
  font-family:'Inconsolata', monospace;
  font-size:.75rem;
  padding:4px 10px;
  background:#fafafa;
  color:#555;
  border:1px solid #ddd;
  border-radius:4px;
  cursor:pointer;
  transition:all .2s ease-in-out;
  white-space:nowrap;
}
.reference-tag:hover{
  background:#f8f8f8;
  border-color:#ccc;
  color:#333;
}

/* Card animation */
.reference-card-col{
  transition:opacity .3s ease, transform .3s ease;
}
.reference-card-col.hidden{
  display:none;
}

/* Mobile responsiveness */
/* Hamburger menu button - hidden on desktop */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 30px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 991px) {
  /* Show hamburger button on mobile */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Hide navigation by default on mobile */
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }
  
  .main-navigation.active {
    right: 0;
  }
  
  /* Stack language switcher and menu vertically on mobile */
  .main-navigation {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  
  .language-switcher {
    justify-content: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }
  
  /* Stack menu items vertically */
  .menu-list {
    flex-direction: column;
    gap: 0;
  }
  
  .menu-list li {
    width: 100%;
  }
  
  .menu-list .menu-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-radius: 4px;
  }
  
  .menu-list .menu-btn:hover {
    background: #f8f8f8;
  }
}

@media (max-width:767px){
  .reference-card-image{
    height:180px;
  }
  .reference-filters{
    gap:6px;
  }
  .filter-btn{
    font-size:.85rem;
    padding:6px 12px;
  }
}
