/* ==========================================================================
   HYVES-STYLE PORTFOLIO — Nostalgic Hyves.nl Redesign (2006-2008 era)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --font-size-base: 12px;
  --font-size-small: 11px;
  --font-size-large: 14px;

  /* Font Families */
  --font-family-body: Verdana, Geneva, Tahoma, sans-serif;

  /* Colors — Hyves palette */
  --color-background: #D5DCE8;
  --color-text: #333333;
  --color-link: #1660B5;
  --color-link-hover: #003399;
  --color-link-visited: #800080;

  /* Nav banner
  --nav-banner-bg: linear-gradient(180deg, #FFE040 0%, #FFA500 55%, #FF8C00 100%);
  --nav-banner-border: #CC8000;

  /* Top nav
  --top-nav-bg: linear-gradient(180deg, #5498CC 0%, #2C6196 50%, #5498CC 100%);

  /* Section heading
  --section-heading-bg: linear-gradient(180deg, #EFF5FB 0%, #C8DCF0 100%);
  --section-heading-color: #2B5F8A;

  /* Sidebar & content */
  --sidebar-bg: #FFFFFF;
  --content-bg: #FFFFFF;
  --border-color: #B8CEDE;
  --row-alt: #F0F6FF;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  min-height: 100svh;
}

body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  background-color: var(--color-background);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.4;
}

a {
  color: var(--color-link);
  text-decoration: underline;
}

a:hover {
  color: var(--color-link-hover);
}

a:visited {
  color: var(--color-link-visited);
}

img {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Page wrapper
   -------------------------------------------------------------------------- */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* --------------------------------------------------------------------------
   NAVIGATION — Banner + Top Nav
   -------------------------------------------------------------------------- */
nav {
  margin: 0;
  padding: 0;
  margin-top: 6px;
}

.nav-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 6px;
}

/* Banner row — orange/amber like Hyves */
.banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  background: var(--nav-banner-bg);
  border: 1px solid var(--nav-banner-border);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  min-height: 52px;
}

.banner-logo svg {
  height: 2rem;
  width: auto;
}

.banner-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.banner-links ul {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.banner-links ul li {
  white-space: nowrap;
}

.banner-links ul a,
.banner-links ul button {
  font-size: 11px;
  border-right: 1px solid rgba(0,0,0,0.25);
  padding: 0 8px;
  text-decoration: none;
  color: #3a2000;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-bottom: none;
  font-family: inherit;
}

.banner-links ul a:hover,
.banner-links ul button:hover {
  text-decoration: underline;
  color: #000;
}

.banner-links ul li:last-child a,
.banner-links ul li:last-child button {
  border-right: none;
}

.banner-avatar {
  border-radius: 0;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 2px solid rgba(0,0,0,0.25);
  flex-shrink: 0;
}

/* Top navigation — Hyves blue tabs */
.top-nav {
  background: var(--top-nav-bg);
  border: 1px solid #1F4F7F;
  border-radius: 0 0 3px 3px;
  margin-top: 0;
}

.top-nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  padding: 3px 6px 3px;
  margin: 0;
  flex-wrap: wrap;
}

.top-nav ul a {
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  display: inline-block;
  border-radius: 2px 2px 0 0;
  border: 1px solid transparent;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.top-nav ul a:hover,
.top-nav ul a.active {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.35);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   PAGE TITLE
   -------------------------------------------------------------------------- */
.page-title {
  text-align: left;
  padding: 0;
  margin: 5px 0 5px 10px;
  font-size: 17px;
  font-weight: bold;
  color: #2B5F8A;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.6);
}

/* --------------------------------------------------------------------------
   CONTENT FRAME
   -------------------------------------------------------------------------- */
.content-frame {
  border: 1px solid var(--border-color);
  border-radius: 0;
  margin: 0 6px 8px;
  container-type: inline-size;
  background: var(--color-background);
}

/* --------------------------------------------------------------------------
   MAIN 3-COLUMN GRID
   -------------------------------------------------------------------------- */
.content-container {
  display: grid;
  grid-template-columns: 175px 2fr 2fr;
  gap: 7px;
  padding: 7px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   SIDEBAR (column 1)
   -------------------------------------------------------------------------- */
.side-nav {
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 0;
  align-items: center;
  text-align: center;
  height: fit-content;
}

.side-nav .profile-img-wrap {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.side-nav .profile-img-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* Online status indicator */
.online-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: bold;
  color: #2B5F8A;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  background: linear-gradient(180deg, #f9fcff 0%, #edf5ff 100%);
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #2db852;
  border-radius: 50%;
  border: 1px solid #1a8a3a;
  display: inline-block;
  flex-shrink: 0;
}

/* Respect box */
.respect-box {
  width: 100%;
  padding: 5px 6px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: #f9fcff;
}

.respect-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  background: linear-gradient(180deg, #6BAEDE 0%, #2C6196 100%);
  color: white;
  border: 1px solid #1F4F7F;
  border-radius: 3px;
  padding: 3px 10px;
  cursor: pointer;
  text-shadow: 0 1px 1px rgba(0,0,0,0.35);
  width: 100%;
  letter-spacing: 0.01em;
}

.respect-btn:hover {
  background: linear-gradient(180deg, #7ABDE8 0%, #3A7AB0 100%);
}

.respect-count {
  font-size: 10px;
  color: #666;
}

/* Profile stats */
.profile-stats {
  width: 100%;
  border-bottom: 1px solid var(--border-color);
}

.profile-stats a,
.profile-stats span {
  display: block;
  padding: 3px 8px;
  font-size: 11px;
  text-decoration: none;
  border-bottom: 1px solid #E8EFF8;
}

.profile-stats a {
  color: var(--color-link);
}

.profile-stats a:hover {
  text-decoration: underline;
  background: var(--row-alt);
}

.profile-stats span {
  color: #555;
}

/* Quick contact links */
.side-nav > ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-size: 11px;
  border-bottom: 1px solid var(--border-color);
}

.side-nav > ul li {
  width: 100%;
  border-bottom: 1px solid #E8EFF8;
}

.side-nav > ul li:last-child {
  border-bottom: none;
}

.side-nav > ul a {
  width: 100%;
  text-decoration: underline;
  color: var(--color-link);
  display: block;
  padding: 4px 8px;
  font-size: 11px;
}

.side-nav > ul a:hover {
  background: var(--row-alt);
}

/* Krabbels section */
.krabbels {
  width: 100%;
  margin-top: 0;
  text-align: left;
}

.krabbels h3 {
  font-size: 11px;
  font-weight: bold;
  color: var(--section-heading-color);
  background: var(--section-heading-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 4px 6px;
  margin: 0;
  border-radius: 0;
}

.krabbels-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 170px;
  overflow-y: auto;
  font-size: 11px;
  padding: 0;
}

.krabbel-item {
  border-bottom: 1px solid #E8EFF8;
  padding: 4px 6px;
  color: #333;
  background: white;
}

.krabbel-item:nth-child(even) {
  background: var(--row-alt);
}

.krabbel-item strong {
  color: var(--color-link);
  font-size: 11px;
  display: block;
}

.krabbel-item .krabbel-msg {
  display: block;
}

.krabbel-item time {
  font-size: 10px;
  color: #888;
}

/* Krabbels form */
.krabbels-form {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px 6px;
  background: #F0F6FF;
  border-top: 1px solid var(--border-color);
}

.krabbels-form input,
.krabbels-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 11px;
  padding: 3px 4px;
  border: 1px solid #B8CEDE;
  border-radius: 1px;
  background: #ffffff;
  resize: vertical;
}

.krabbels-form textarea {
  min-height: 44px;
}

.krabbels-form button {
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  background: linear-gradient(180deg, #6BAEDE 0%, #2C6196 100%);
  color: white;
  border: 1px solid #1F4F7F;
  border-radius: 2px;
  padding: 3px 8px;
  cursor: pointer;
  text-shadow: 0 1px 1px rgba(0,0,0,0.35);
}

.krabbels-form button:hover {
  background: linear-gradient(180deg, #7ABDE8 0%, #3A7AB0 100%);
}

/* --------------------------------------------------------------------------
   INTRO SECTION (column 2)
   -------------------------------------------------------------------------- */
.intro-container {
  max-width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 0;
  height: fit-content;
  background: white;
  outline: none;
}

.bio-container {
  outline: none;
}

.bio-container h2,
.intro-container > h2,
.work-wrapper > h2,
.section-heading {
  color: var(--section-heading-color);
  background: var(--section-heading-bg);
  padding: 4px 8px;
  border-bottom: 1px solid var(--border-color);
  margin: 0;
  font-size: 12px;
  font-weight: bold;
  border-radius: 0;
}

.description-bio {
  padding: 6px 10px 8px;
  font-size: 11px;
  line-height: 1.55;
  border-bottom: 1px solid var(--border-color);
}

/* Profile facts — alternating rows */
.intro {
  padding: 0 0 4px;
}

.intro ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intro ul li {
  padding: 4px 10px;
  font-size: 11px;
  border-bottom: 1px solid #E8EFF8;
}

.intro ul li:nth-child(even) {
  background: var(--row-alt);
}

.intro ul:first-of-type {
  padding-bottom: 0;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 4px;
}

/* Music player */
.music-player {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--section-heading-bg);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 4px 8px;
  margin: 6px 10px;
  font-size: 11px;
  color: #333;
}

.music-player audio {
  height: 22px;
  width: 100%;
}

.music-label {
  white-space: nowrap;
  font-weight: bold;
  font-size: 11px;
  color: var(--section-heading-color);
}

/* --------------------------------------------------------------------------
   MY WORK SECTION (column 3)
   -------------------------------------------------------------------------- */
.work-wrapper {
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 0;
  height: fit-content;
  background: white;
  outline: none;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 8px;
  padding: 8px;
  list-style: none;
}

.blog-post-item {
  display: flex;
  flex-direction: column;
}

.blog-post-card {
  background: #F0F6FF;
  border: 1px solid var(--border-color);
  overflow: hidden;
  aspect-ratio: 1;
  margin-bottom: 4px;
  border-radius: 0;
  transition: border-color 0.15s;
}

.blog-post-card:hover {
  border-color: #2B5F8A;
}

.blog-post-card a {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-title {
  font-size: 11px;
  font-weight: bold;
  margin: 0 0 2px;
  line-height: 1.3;
  text-align: center;
}

.blog-post-title a {
  color: var(--color-link);
}

.blog-post-title a:hover {
  color: var(--color-link-hover);
}

.blog-post-tag {
  display: inline-block;
  align-self: center;
  margin-top: 2px;
  padding: 1px 5px;
  font-size: 10px;
  color: #2B5F8A;
  background: #E8F0FA;
  border: 1px solid #B8CEDE;
  border-radius: 0;
}

/* --------------------------------------------------------------------------
   BLOG / WORK PAGES
   -------------------------------------------------------------------------- */
.full-page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px;
}

.blogs-list-page,
.photos-page,
.posters-page {
  background: white;
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  margin-top: 6px;
}

.blogs-list-page h1,
.blogs-list-page h2,
.photos-page h1,
.photos-page h2,
.posters-page h1,
.posters-page h2 {
  color: var(--section-heading-color);
  font-weight: bold;
  margin: 0 0 10px;
  font-size: 15px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 5px;
}

.photos-page h3,
.posters-page h3 {
  font-size: 12px;
  font-weight: bold;
  color: var(--section-heading-color);
  margin: 14px 0 4px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 3px;
}

/* Blog list */
.blog-list {
  list-style: none;
  padding: 0;
}

.blog-list-item {
  margin-bottom: 10px;
  border-bottom: 1px solid #E8EFF8;
  padding-bottom: 10px;
}

.blog-list-item a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.blog-list-item a:hover h2 {
  text-decoration: underline;
  color: var(--color-link);
}

.blog-thumb {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.blog-list-item h2 {
  font-size: 12px;
  margin: 0 0 3px;
  color: var(--color-link);
}

.blog-list-item p {
  font-size: 11px;
  color: #555;
  margin: 0 0 3px;
}

.blog-list-item time {
  font-size: 10px;
  color: #888;
}

/* Single blog post */
.blog-post-page {
  max-width: 760px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  margin-top: 6px;
}

.blog-post-page h1 {
  color: var(--section-heading-color);
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 5px;
}

.blog-post-page .post-meta {
  font-size: 10px;
  color: #888;
  margin-bottom: 10px;
}

.blog-post-page .post-hero {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.blog-post-page .post-body {
  line-height: 1.6;
  font-size: 11px;
}

.blog-post-page .post-body p {
  margin: 0 0 10px;
}

.blog-post-page .post-body img {
  max-width: 100%;
  border: 1px solid var(--border-color);
  margin: 8px 0;
}

.blog-back-link {
  display: inline-block;
  font-size: 11px;
  color: var(--color-link);
  text-decoration: underline;
  margin-bottom: 10px;
}

/* Photo / Poster gallery */
.photo-grid,
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
  margin-top: 10px;
  list-style: none;
  padding: 0;
}

.photo-grid figure,
.poster-grid figure {
  margin: 0;
  background: linear-gradient(90deg, #e8eef5 25%, #d4dfe9 50%, #e8eef5 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: border-color 0.15s;
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.photo-grid figure:hover,
.poster-grid figure:hover {
  border-color: #2B5F8A;
}

.photo-grid img,
.poster-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.photo-grid figcaption,
.poster-grid figcaption {
  font-size: 10px;
  color: #555;
  padding: 3px 5px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   TABS
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0;
}

.tab-link {
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  color: var(--color-link);
  padding: 3px 12px;
  border-radius: 3px 3px 0 0;
  border: 1px solid var(--border-color);
  border-bottom: none;
  background: #EFF5FB;
}

.tab-link:hover,
.tab-link.active {
  background: white;
  color: #333;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  text-align: center;
  font-size: 10px;
  color: #666;
  padding: 6px;
  margin-top: 6px;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, #EFF5FB 0%, #D5DCE8 100%);
}

/* --------------------------------------------------------------------------
   VISUALLY HIDDEN UTILITY
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@container (max-width: 900px) {
  .content-container {
    grid-template-columns: 155px 2fr 2fr;
    gap: 6px;
  }
}

@container (max-width: 768px) {
  .content-container {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width: 895px) {
  .banner-avatar { display: none; }
}

@media (max-width: 768px) {
  .nav-wrapper { padding: 0 3px; }

  .banner-content {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    padding: 5px;
  }

  .top-nav ul { justify-content: center; }

  .page-title {
    font-size: 15px;
    margin: 4px 0 4px 8px;
  }

  .content-container {
    grid-template-columns: 1fr !important;
  }

  .photo-grid,
  .poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}

@media (max-width: 480px) {
  .content-frame { margin: 0 4px 6px; }

  .blog-list-item a {
    flex-direction: column;
  }

  .blog-thumb {
    width: 100%;
    height: 140px;
  }
}

.photo-grid img {
  cursor: zoom-in;
}

dialog#lightbox {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 95vw;
  max-height: 95vh;
  outline: none;
}

dialog#lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

dialog#lightbox img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: white;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Language toggle button in footer */
.footer-lang-btn {
  background: none;
  border: 1px solid #888;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  color: inherit;
  margin-top: 0.3rem;
}

.footer-lang-btn:hover {
  border-color: #333;
  color: #333;
}
