/* ==========================================
   YUKI – Base CSS
   Layout & structure only
   NO colors, NO themes
========================================== */


/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}


/* ---------- Root ---------- */

.yuki {
  min-height: 100vh;
}

/* 
   SINGLE SOURCE OF TRUTH
   Site width is defined ONLY here
*/
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}


/* ---------- Base font stack (Pico-like) ---------- */

html {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Liberation Sans",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body {
  font-weight: 400;
}


/* ---------- Main ---------- */

main {
  display: block;
  margin-top: 0.5rem;
}

/* Pagina-hoofdtitel (zoals “1. Foto’s”, “3. Video”) */
main > h1 {
  text-align: center;
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}


/* ---------- Typography (structure only) ---------- */

h1,
h2,
h3,
h4 {
  margin: 0.5rem 0 0.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}


p {
  margin: 0.5rem 0;
}

ul {
  padding-left: 1.2rem;
}

li {
  margin: 0.25rem 0;
}


/* ---------- Media ---------- */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility image size */
.media-360 {
  width: 100%;
  max-width: 360px;
}

.centered-media {
  margin-left: auto;
  margin-right: auto;
}


/* ---------- Tables ---------- */

table {
  border-collapse: collapse;
}

td,
th {
  padding: 0.25rem 0.35rem;
  vertical-align: top;
}


/* ---------- Menu / navigation (structure only) ---------- */

.menu-box {
  margin-top: 0.75rem;     /* <-- ruimte boven menu */
  margin-bottom: 0.6rem;
}

.menubar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Buttons-as-links (no colors here) */
.menubar a {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}


/* ---------- Home layout ---------- */

.home-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .home-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-card {
  padding: 1.2rem 1.3rem;
  border-radius: 10px;
}


/* ---------- Hero block ---------- */

.hero-text-card {
  padding: 0.6rem 0;
}

.hero-line {
  line-height: 1.3;
}

.hero-name {
  font-size: 1.2rem;
  font-weight: 600;
}

.hero-small {
  font-size: 0.9rem;
}

.spacer {
  height: 0.4rem;
}


/* ---------- Forms ---------- */

form {
  margin-top: 0.5rem;
}

input,
button {
  font-size: 0.9rem;
  padding: 0.35rem 0.5rem;
}


/* ---------- Footer ---------- */

footer {
  margin-top: 2rem;
}


/* ==========================================
   Archive / photo pages (structure only)
========================================== */

/* Buitenste raster: ruimte tussen jaren */
.archive-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 1rem 1.2rem;
}

.archive-table > tr > td {
  padding: 0;
  vertical-align: top;
}

/* Binnen één jaar: strak grid */
.archive-year {
  width: 100%;
  border-collapse: collapse;
}

/* Jaartitel */
.archive-year strong {
  display: block;
  text-align: center;
  padding: 0.35rem 0;
  font-weight: 600;
}

/* Maandcellen */
.archive-year td {
  padding: 0.3rem 0.45rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Lege maanden */
.month-empty {
  opacity: 0.5;
}

.menu-logout {
  margin-left: auto;
}

.menu-logout {
  margin-left: auto;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--yuki-border-subtle);
}

.menu-logout:hover {
  background: var(--yuki-bg-accent);
}

/* ==========================================
   Login (structure only)
========================================== */

.login-shell {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem 1.6rem;
  border-radius: 12px;
}

.login-title {
  text-align: center;
  margin-bottom: 1rem;
}

.login-card form {
  display: grid;
  gap: 0.8rem;
}

.login-card label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.login-card button {
  margin-top: 0.6rem;
}

.menu-logout {
  margin-left: auto;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
}

.thumb-group {
  margin: 2rem 0;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.thumb-grid .thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
