/*
Theme Name: Emotie Menu Theme Original Links
Theme URI: https://example.com/
Author: OpenAI
Description: WordPress theme starter converted from the uploaded Emotie Menu HTML, preserving original file links.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: emotie-menu-theme-original-links
*/

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #ffffff;
  color: #111111;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 12px;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
}

.site-description {
  margin: 6px 0 0;
  color: #555;
}

.site-main {
  min-height: 60vh;
}

.content-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 12px 40px;
}

/* ===== EMOTIE MENU ===== */

.emotion-menu {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #ffffff;
}

.menu-root {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.menu-root > li {
  position: relative;
}

.menu-root a {
  text-decoration: none;
  padding: 10px 14px;
  display: block;
  color: #111111;
  font-weight: 500;
  transition: background 0.2s ease;
}

.menu-root a:hover {
  background: #f2f2f2;
  border-radius: 6px;
}

.menu-root li ul {
  display: none;
  position: absolute;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-radius: 8px;
  min-width: 200px;
  z-index: 1000;
}

.menu-root li:hover ul {
  display: block;
}

.menu-root li ul li a {
  padding: 8px 14px;
  font-weight: 400;
}

.menu-root li ul {
    position: relative;
    box-shadow: none;
  }
}

/* ===== BASIS LAYOUT ===== */
.emotion-menu { max-width: 1100px; margin: 0 auto; padding: 8px 12px; }
.menu-root { flex-wrap: wrap; }

/* Maak grote klikvlakken en nette spacing */
.menu-root a,
.menu-root summary {
  padding: 12px 14px;
  border-radius: 10px;
}

/* ===== DESKTOP DROPDOWN (hover) ===== */
.menu-root > li { position: relative; }
.menu-root > li > details { display: contents; } /* details/summary gedragen zich als wrapper */

.menu-root > li > details > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: #111;
}
.menu-root > li > details > summary::-webkit-details-marker { display: none; }
.menu-root > li > details > ul { display: none; }

@media (min-width: 901px) {
  .menu-root { flex-direction: row; gap: 24px; align-items: flex-start; }

  /* summary ziet eruit als link */
  .menu-root > li > details > summary:hover { background: #f2f2f2; }

  /* open submenu bij hover of als details open staat */
  .menu-root > li:hover > details > ul,
  .menu-root > li > details[open] > ul {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    padding: 10px 0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-radius: 12px;
    min-width: 240px;
    max-height: 70vh;
    overflow: auto;
    z-index: 1000;
  }

  .menu-root > li > details > ul li a { padding: 10px 14px; }
}

/* ===== MOBIEL: ACCORDION (geen hover nodig) ===== */
@media (max-width: 900px) {
  .menu-root { flex-direction: column; gap: 10px; }

  .menu-root > li { border: 1px solid #eee; border-radius: 14px; overflow: hidden; }

  .menu-root > li > details > summary {
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* pijltje */
  .menu-root > li > details > summary::after {
    content: "▾";
    font-size: 14px;
    opacity: 0.7;
    margin-left: 12px;
  }
  .menu-root > li > details[open] > summary::after { content: "▴"; }

  .menu-root > li > details > ul {
    display: block;          /* accordion laat UL in flow */
    position: static;
    padding: 6px 0;
    margin: 0;
    background: #fff;
    box-shadow: none;
    border-radius: 0;
    min-width: 0;
    max-height: none;
    overflow: visible;
  }

  .menu-root > li > details > ul li a {
    padding: 12px 14px;
    border-radius: 0;
  }

  /* Zorg dat lange linknamen netjes afbreken */
  .menu-root a { word-break: break-word; }
}

/* ===== TOEGANKELIJKHEID ===== */
.menu-root summary:focus,
.menu-root a:focus {
  outline: 3px solid rgba(0,0,0,0.15);
  outline-offset: 2px;
}
/* Download Button */

.download-button-wrapper{
    text-align:center;
    margin:30px 0;
}

.download-button{
    display:inline-block;
    padding:14px 28px;
    background:#2c7be5;
    color:white;
    text-decoration:none;
    font-size:18px;
    border-radius:8px;
    font-weight:600;
}

.download-button:hover{
    background:#1a5ec8;
}