:root {
  --bg: #ffffff;
  --fg: #111;
  --overlay: rgba(0,0,0,0.65);
}

html[data-theme="dark"] {
  --bg: #0f0f0f;
  --fg: #f2f2f2;
  --overlay: rgba(0,0,0,0.75);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
  font-family: system-ui, sans-serif;
}
/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 64px;
  background: var(--overlay);
  backdrop-filter: blur(8px);
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo { color: #fff; font-weight: bold; }

.theme-toggle {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* CONTENT */
main {
  padding: 120px 20px 120px;
  max-width: 900px;
  margin: auto;
  animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to { opacity:1; transform:translateY(0); }
}

/* FOOTER */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--overlay);
  backdrop-filter: blur(8px);
  padding: 12px;
  text-align: center;
}

footer a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 900px;
  width: calc(100% - 40px);
  background: var(--overlay);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 12px;
  display: none;
  z-index: 2000;
}

.cookie-buttons {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.accept { background:#fff; color:#000; }
.reject { background:transparent; color:#fff; border:1px solid #fff; }

.settings {
  background: #fff;
  color: #000;
  border: none;
}

nav {
  display: flex;
  gap: 14px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
}

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

@media (max-width: 700px) {
  nav {
    flex-wrap: wrap;
    font-size: 0.9rem;
  }
}

nav a.active {
  text-decoration: underline;
  opacity: 1;
}
/* NAV BASE */
nav {
  display: flex;
  gap: 14px;
}

.menu-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  header nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,.85);
    flex-direction: column;
    padding: 16px;
  }

 header nav.open {
    display: flex;
  }

  nav a {
    padding: 10px 0;
    font-size: 1.1rem;
  }
}
/* INDEX LAYOUT */
.layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* MAIN CONTENT */
.content {
  flex: 1;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  background: rgba(0,0,0,0.05);
  padding: 20px;
  border-radius: 14px;
  text-align: center;
}

/* PORTRAIT */
.portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* SOCIAL BUTTONS */
.social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  color: #fff;
}

.instagram {
  background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af);
}

.facebook {
  background: #1877f2;
}

/* RESPONSIVE: sidebar moves below content */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }
}
/* SIDEBAR */
.sidebar {
  width: 260px;
  padding: 22px;
  border-radius: 16px;
  text-align: center;
  background: rgba(0,0,0,0.04);
}

/* PORTRAIT */
.portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 12px;
  transition: transform 0.4s ease;
}

.sidebar:hover .portrait {
  transform: scale(1.03);
}

/* CAPTION */
.caption {
  font-weight: 700;
  margin-bottom: 16px;
}

.caption span {
  display: block;
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* SOCIAL ICONS */
.social {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.social a:hover {
  transform: translateY(-4px) scale(1.05);
}

/* SVG ICONS */
.social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* BRAND COLORS ON HOVER */
.social a[href*="instagram"]:hover {
  background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af);
  color: #fff;
}

.social a[href*="facebook"]:hover {
  background: #1877f2;
  color: #fff;
}
.logo {
  display: flex;
  align-items: center;
}

/* LOGO IMAGE */
.logo img {
  height: 36px;        /* adjust as needed */
  width: auto;
  display: block;
}
.post {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.post small {
  opacity: .6;
}
.post a {
  font-weight: 600;
}
.social {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 15px;
}

.social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
  background: rgba(128, 128, 128, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.social a:hover {
  transform: translateY(-2px);
  background: rgba(128, 128, 128, 0.22);
}

.social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}
.gallery-preview {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.gallery-item {
  width: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-item img {
  width: 150px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}


.post-content img,
.gallery img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
}


.gallery-item button {
  font-size: 13px;
  padding: 6px 8px;
  cursor: pointer;
}
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px 0;
  border-radius: 12px;
}
html {
  scroll-behavior: smooth;
}

#toTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: none;
  z-index: 999;
}

#toTop.show {
  display: block;
}
.post.preview {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.post-thumb {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.post-body {
  flex: 1;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-top: 10px;
  padding: 10px 18px;

  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);

  background: transparent;
  color: inherit;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}

.read-more:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.read-more:active {
  transform: translateY(0);
}

.read-more:focus-visible {
  outline: 2px solid #4f8cff;
  outline-offset: 2px;
}
.dark .read-more,
.dark-mode .read-more {
  border-color: rgba(255, 255, 255, 0.25);
}

.dark .read-more:hover,
.dark-mode .read-more:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}
.read-more.cta {
  background: #2f6df6;
  color: #fff;
  border-color: transparent;
}

.read-more.cta:hover {
  background: #2457c8;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: rgba(175, 175, 175, 0.85);
  border-radius: 16px;
  overflow: hidden;

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}
.post-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-body h2 {
  font-size: 1.1rem;
  margin: 0 0 6px;
}

.post-card-body small {
  opacity: 0.65;
  margin-bottom: 10px;
}

.post-card-body p {
  margin: 0 0 14px;
  flex-grow: 1;
}
.read-more {
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: inherit;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}

.read-more:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

/* === Dark mode: make preview cards clearly darker === */
body.dark .post-card,
body.dark-mode .post-card {
  background-color: #0f1115;        /* deep dark surface */
  box-shadow: 0 18px 45px rgba(0,0,0,0.8);
}

/* Ensure no light inner layers */
body.dark .post-card-body,
body.dark-mode .post-card-body {
  background: transparent;
  color: #403c3c;
}

/* Headings & meta contrast */
body.dark .post-card-body h2,
body.dark-mode .post-card-body h2 {
  color: #ffffff;
}

body.dark .post-card-body p,
body.dark-mode .post-card-body p {
  color: #d6d6d6;
}

body.dark .post-card-body small,
body.dark-mode .post-card-body small {
  color: #9aa0a6;
}
/* === Dark mode: darker text background inside preview cards === */
body.dark .post-card-body,
body.dark-mode .post-card-body {
  background-color: #0b0d10;   /* very dark text surface */
}

/* Add padding separation from image */
body.dark .post-card-body,
body.dark-mode .post-card-body {
  padding: 18px 20px 22px;
}
body.dark .post-card-body h2,
body.dark-mode .post-card-body h2 {
  color: #ffffff;
}

body.dark .post-card-body p,
body.dark-mode .post-card-body p {
  color: #d4d7dd;
}

body.dark .post-card-body small,
body.dark-mode .post-card-body small {
  color: #9aa0a6;
}
body.dark .post-card-image {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}


body.dark .post-card,
body.dark-mode .post-card {
  background-color: #121418;
  box-shadow: 0 16px 40px rgba(0,0,0,0.75);
}
/* Make text area clearly darker than card */
body.dark .post-card-body,
body.dark-mode .post-card-body {
  background-color: #0b0f14;   /* darker than card */
  color: #e7e9ee;
  padding: 18px 20px 22px;
}


/* ==============================
   Pagination Layout
============================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}

/* ==============================
   Base Pagination Button
============================== */
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 14px;
  min-width: 36px;

  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;

  border: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

/* ==============================
   LIGHT MODE
============================== */
html:not([data-theme="dark"]) .page-btn {
  color: #111;
}

html:not([data-theme="dark"]) .page-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* ==============================
   ACTIVE PAGE (ALL MODES)
============================== */
.page-btn.active {
  background: #2f6df6;
  color: #ffffff;
  border-color: transparent;
}

/* ==============================
   DARK MODE  ✅ CORRECT SELECTOR
============================== */
html[data-theme="dark"] .page-btn {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

html[data-theme="dark"] .page-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Keep active readable in dark mode */
html[data-theme="dark"] .page-btn.active {
  background: #2f6df6;
  color: #ffffff;
}
.post-grid {
  margin-bottom: 48px; /* creates hard separation */
}
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .post-grid {
    margin-bottom: 56px;
  }

  .pagination {
    margin-top: 32px;
  }
}

@media (max-width: 600px) {
  .post-grid {
    margin-bottom: 48px;
  }

  .pagination {
    margin-top: 24px;
  }
}


main {
  display: block;
}
/* Ensure pagination always appears AFTER post grid */
.post-grid {
  margin-bottom: 56px;
}

.pagination {
  margin-top: 32px;
  clear: both;
}
@media (max-width: 768px) {
  .post-grid {
    margin-bottom: 64px;
  }

  .pagination {
    margin-top: 32px;
  }
}

/* Article view actions */
.post-actions {
  margin-top: 32px;
}

/* Back button (article view) */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 18px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  color: inherit;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.15);

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}

.back-btn:hover {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.35);
  transform: translateY(-1px);
}

.back-btn:active {
  transform: translateY(0);
}

.back-btn:focus-visible {
  outline: 2px solid #4f8cff;
  outline-offset: 2px;
}
/* Dark mode back button */
html[data-theme="dark"] .back-btn {
  border-color: rgba(255,255,255,0.25);
}

html[data-theme="dark"] .back-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.45);
}
.back-btn.primary {
  background: #2f6df6;
  color: #fff;
  border-color: transparent;
}

.back-btn.primary:hover {
  background: #2457c8;
}
.cookie-settings {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.cookie-settings label {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Responsive page image (e.g. laufen.html) */
.page-image {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.page-image img {
  width: 100%;
  max-width: 520px;   /* desktop size */
  height: auto;
  border-radius: 16px;
}

/* Tablet */
@media (max-width: 900px) {
  .page-image img {
    max-width: 420px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .page-image img {
    max-width: 100%;
    border-radius: 12px;
  }
}
/* Improve readability on mobile landscape (article view) */
.post {
  max-width: 720px;      /* optimal reading width */
  margin-left: auto;
  margin-right: auto;
}

@media (max-height: 500px) and (orientation: landscape) {
  .post {
    max-width: 560px;   /* ideal reading width */
    margin-left: auto;
    margin-right: auto;
  }
}


/* Reduce side padding in mobile landscape */
@media (max-height: 500px) and (orientation: landscape) {
  main {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .post {
    line-height: 1.6;
  }
}
/* Article text width – responsive */
.post-content {
  max-width: 90ch;        /* desktop reading width */
  margin-left: auto;
  margin-right: auto;
}
@media (max-height: 500px) and (orientation: landscape) {
  .post-content {
    max-width: 60ch;
  }
}
/* Auto gallery inside article content */
.post-content p:has(img) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.post-content p img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0;
}


/* ==============================
   Image Lightbox (fixed)
============================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* Active state */
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-out;
}

/* Make article images clickable */
.post-content img {
  cursor: zoom-in;
}
a {
  color: #888;             /* light grey */
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #555;             /* darker grey on hover */
  text-decoration: underline;
}
.post-content a {
  color: #888;
}

.post-content a:hover {
  color: #555;
}
html[data-theme="dark"] a {
  color: #bbb;
}

html[data-theme="dark"] a:hover {
  color: #fff;
}

.radio-page {
  background-color: transparent; /* ✅ prevent override */
  background-image:
  linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url('/img/atik-sulianami-Ko9JTVSt6Ok-unsplash.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}


.radio-page main {
  background: transparent;
}

main {
  padding: 120px 20px 80px;
}
/* Radio iframe layout */
.radio-frames {
  width: 100%;            /* ✅ allow full width */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Iframe styling */


.radio-page iframe {
  display: block;
  width: 80% !important;     /* ✅ override embed width */
  max-width: 1400px;
  height: 240px;

  border: none;
  border-radius: 12px;
}


/* Bigger on desktop */
@media (min-width: 768px) {
  .radio-frames iframe {
    height: 220px;
  }
}
.radio-frames iframe {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
}

/* Radio page: center content vertically + horizontally */
.radio-page main {
  min-height: calc(100vh - 120px); /* header + footer space */

  display: flex;
  flex-direction: column;
  justify-content: center;  /* ✅ vertical center */
  align-items: center;      /* ✅ horizontal center */

  padding: 80px 20px;
  text-align: center;
}

.radio-page main {
  max-width: none;
  width: 100%;
}
