/* ==============================================
   🌐 PAPER, SPIRIT AND TIME - STANDAARD STIJL
   Auteur: Jan Langenberg
   ============================================== */

/* ======= BASIS LAYOUT ======= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

header {
  background: #003366;
  color: white;
  text-align: center;
  padding: 1rem;
}

nav {
  background: #eee;
  display: flex;
  justify-content: center;
  padding: 0.5rem;
  flex-wrap: wrap;
}

nav a {
  margin: 0.5rem 1rem;
  text-decoration: none;
  color: #003366;
  font-weight: bold;
}

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

main {
  padding: 2rem;
  min-height: 70vh;
}


/* ======= TEKSTUITLIJNING ======= */

/* Koppen gecentreerd */
main h1,
main h2,
main h3 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #003366;
}

/* Standaard paragrafen links uitgelijnd, maar gecentreerd binnen pagina */
main p {
  text-align: left;
  max-width: 900px;
  margin: 0 auto 1.2rem auto;
}

/* ======= VOETTEKST ======= */
footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* ==============================================
   🧩 SPECIFIEKE PAGINA'S
   ============================================== */

/* ======= INDEX / HOMEPAGE ======= */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.card {
  display: block;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
}

.card h2 {
  margin: 0;
  color: #003366;
  font-size: 1.2rem;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ======= LINKSPAGINA ======= */
.links {
  max-width: 800px;
  margin: 0 auto;
}

.link-item {
  border-bottom: 1px solid #ccc;
  padding: 12px 0;
}

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

.link-item a {
  font-weight: bold;
  color: #0056a3;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.link-item a:hover {
  text-decoration: underline;
}

.link-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}

/* ======= UNDER CONSTRUCTION ======= */
.under-construction {
  border: 2px dashed #ff9800;
  background: #fff3e0;
  padding: 2rem;
  margin: 2rem auto;
  text-align: center;
  font-size: 1.2rem;
  color: #e65100;
  border-radius: 8px;
  max-width: 700px;
}

/* ==============================================
   📱 RESPONSIVE AANPASSINGEN
   ============================================== */
@media (max-width: 768px) {
  main {
    padding: 1.2rem;
  }

  main p {
    max-width: 95%;
  }

  header h1 {
    font-size: 1.3rem;
  }

  nav a {
    margin: 0.3rem 0.6rem;
  }

  .card img {
    height: 140px;
  }

  footer {
    font-size: 0.8rem;
  }
}

/* ======= AFBEELDINGEN & UITLIJNING ======= */

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Centrale content-blokken */
.content {
  max-width: 900px;
  margin: 0 auto; /* centreert de hele sectie */
  padding: 1rem;
  line-height: 1.6;
}

/* Afbeelding in het midden */
.center-img {
  display: block;
  margin: 1.5rem auto;
}

/* Afbeelding links met tekst eromheen */
.left-img {
  float: left;
  margin: 0 1rem 1rem 0; /* ruimte rechts en onder */
  max-width: 40%;
}

/* Afbeelding rechts met tekst eromheen */
.right-img {
  float: right;
  margin: 0 0 1rem 1rem; /* ruimte links en onder */
  max-width: 40%;
}

/* Zorg dat float niet het volgende stuk tekst beïnvloedt */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}



/* ======= LIJSTEN (UL / OL / LI) ======= */

main ul,
main ol {
  max-width: 900px;
  margin: 0 auto 1.2rem auto;
  /* Zelfde centrering als p */
  padding-left: 2rem;
  /* ruimte voor bullets of nummers */
  line-height: 1.6;
  text-align: left;
  /* zorgt dat tekst netjes uitgelijnd is */
}

main li {
  margin-bottom: 0.5rem;
  /* wat ruimte tussen regels */
}

main li strong {
  color: #003366;
  /* optioneel: geeft nadruk op keywords */
}

/* ======= THEME BUTTON ======= */
#theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #003366;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.3s;
  z-index: 1000;
}

#theme-toggle:hover {
  background: #0056a3;
}

/* ======= DARK MODE ======= */
body.dark-mode {
  background: #121212;
  color: #e0e0e0;
}

body.dark-mode header,
body.dark-mode footer {
  background: #1f1f1f;
  color: #f0f0f0;
}

body.dark-mode nav {
  background: #222;
}

body.dark-mode nav a {
  color: #ddd;
}

body.dark-mode nav a:hover {
  color: #fff;
}

body.dark-mode .card {
  background: #1c1c1c;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
}

body.dark-mode .under-construction {
  background: #333;
  border-color: #ff9800;
  color: #ffb74d;
}

/* ======= FORMULIER OPMAAK ======= */
form {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 2rem;
  max-width: 700px;
  margin: 2rem auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

form label {
  display: block;
  font-weight: bold;
  color: #003366;
  margin-bottom: 0.3rem;
}

form input[type="text"],
form input[type="email"],
form input[type="url"],
form select,
form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 1.2rem;
  box-sizing: border-box;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: #0056a3;
  box-shadow: 0 0 4px rgba(0, 86, 163, 0.4);
}

/* ======= KNOP ======= */
form button {
  display: inline-block;
  background: #003366;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

form button:hover {
  background: #0056a3;
  transform: translateY(-2px);
}

form button:active {
  transform: translateY(0);
}

/* ======= DONKERE MODUS (werkt samen met je darkmode script) ======= */
body.dark-mode form {
  background: #1e1e1e;
  border-color: #444;
  color: #ddd;
}

body.dark-mode form input,
body.dark-mode form textarea,
body.dark-mode form select {
  background: #2a2a2a;
  color: #ddd;
  border-color: #555;
}

body.dark-mode form button {
  background: #0056a3;
}

body.dark-mode form button:hover {
  background: #3388cc;
}

/* ======= LINK EXCHANGE SECTION ======= */
.link-exchange {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  line-height: 1.6;
}

.link-exchange h1,
.link-exchange h2 {
  text-align: center;
  color: #003366;
}

.link-exchange p {
  text-align: left;
  margin-bottom: 1rem;
}

/* ======= SNIPPET BOXES ======= */
.snippet-box {
  background: #f5f5f5;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  margin: 1.5rem auto;
  position: relative;
  max-width: 800px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.snippet-box:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.snippet-box pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: Consolas, monospace;
  font-size: 0.9rem;
  color: #222;
}

.snippet-box button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #003366;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.25s ease, transform 0.2s ease;
}

.snippet-box button:hover {
  background: #0056a3;
  transform: scale(1.05);
}

/* 🌙 Dark mode variant */
body.dark-mode .snippet-box {
  background: #222;
  color: #eee;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.08);
}

body.dark-mode .snippet-box pre {
  color: #ddd;
}

body.dark-mode .snippet-box button {
  background: #888;
  color: #fff;
}

body.dark-mode .snippet-box button:hover {
  background: #bbb;
}

/* 🌙 DARK MODE FIX voor middenvlak */
body.dark-mode {
  background: #121212;
  color: #eee;
}

body.dark-mode header {
  background: #001a33;
}

body.dark-mode nav {
  background: #1e1e1e;
}

body.dark-mode main {
  background: #1a1a1a;
  color: #f0f0f0;
}

body.dark-mode footer {
  background: #001a33;
  color: #ccc;
}

/* Eventuele specifieke secties */
body.dark-mode .link-exchange {
  background: transparent;
  /* laat de achtergrond meekleuren */
}

body.dark-mode .card {
  background: #2a2a2a;
  color: #ddd;
}

body.dark-mode .under-construction {
  background: #333;
  border-color: #ffa726;
  color: #ffb74d;
}

/* 🌗 Donkere modus – ook voor tekstvlakken en snippets */
body.dark-mode main {
  background: #181818;
  color: #f5f5f5;
}

/* Specifieke content containers */
body.dark-mode .link-exchange,
body.dark-mode form,
body.dark-mode .snippet-box {
  background: #222;
  border: 1px solid #333;
  color: #eee;
}

/* Snippet container in lichte modus */
.snippet-box {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 8px;
  max-width: 800px;
  margin: 1rem auto;
  font-family: monospace;
  white-space: pre-wrap;
}

/* 🌙 Dark mode versie van 'under construction' blok */
body.dark-mode .under-construction {
  background: #2a2a2a;
  border-color: #ffb84d;
  color: #ffd699;
}

/* === SNIPPET BOX === addurl*/
.snippet-box {
  position: relative;
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  max-width: 700px;
  margin: 2rem auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease, color 0.3s ease;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #003366;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
}

.copy-btn:hover {
  background: #0056a3;
}

/* Donkere modus compatibel */
body.dark-mode .snippet-box {
  background: #1e1e1e;
  color: #f1f1f1;
  border-color: #555;
}

body.dark-mode .copy-btn {
  background: #444;
}

body.dark-mode .copy-btn:hover {
  background: #666;
}


/* ======= EXTERNE LINKS MET ICOONTJE ======= */

/* Basiskleur voor licht thema */
a[href^="http"]:not([href*="janlangenberg.nl"])::after {
  content: "↗";
  margin-left: 6px;
  font-size: 0.9em;
  opacity: 0.6;
  color: #003366;
  transition: opacity 0.2s, color 0.3s;
}

/* Hovereffect */
a[href^="http"]:not([href*="janlangenberg.nl"]):hover::after {
  opacity: 1;
  color: #0056a3;
}

/* ======= DARK MODE VARIANT ======= */
body.dark-mode a[href^="http"]:not([href*="janlangenberg.nl"])::after {
  color: #aaccff;
  opacity: 0.7;
}

body.dark-mode a[href^="http"]:not([href*="janlangenberg.nl"]):hover::after {
  color: #ffffff;
  opacity: 1;
}
/* ======= Opvallendere knoppen (“Click here” / “Contact me”) ======= */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #0078d4; /* mooi blauw, vriendelijk */
  color: white;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.button:hover {
  background-color: #005fa3; /* donkerder blauw bij hover */
  transform: translateY(-2px);
}
