/* ============================================================
   Severin — desktop-OS microsite (inspired by presleyregier.com)
   ============================================================ */

:root {
  --accent:        #600003;
  --accent-light:  #8a1418;
  --accent-30:     rgba(96, 0, 3, 0.30);

  --win-dark:    #d9d9d9;
  --win-light:   #e3e3e3;
  --win-lighter: #f6f6f6;
  --win-border:  #838383;
  --win-text:    #3e3e3e;
  --dock-bg:     rgba(212, 212, 212, 0.45);
  --footer:      #d8d8d8;

  --ff-main: "Articulat CF", "Inter", system-ui, -apple-system, sans-serif;
  --ff-disp: Georgia, "Times New Roman", serif; /* expressive italic titles */

  --fs-base: 16px;
}

* { box-sizing: border-box; }

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

body {
  font-family: var(--ff-main);
  font-size: var(--fs-base);
  color: var(--accent);
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background-image: url("../assets/img/bg/bg.jpg");
  background-size: cover;
  background-position: center;
  -webkit-user-select: none;
  user-select: none;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
img { -webkit-user-drag: none; user-drag: none; }

.hidden { display: none !important; }

/* screen-reader-only (gives the page a crawlable/announced heading without affecting layout) */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- Desktop area ---------------- */
main { display: block; height: 100%; }

.desktop-area {
  position: absolute;
  inset: 0;
  bottom: 96px; /* leave room for dock */
}

/* desktop icons (folders, shop, spin-it) */
.icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 92px;
  padding: 6px;
  border-radius: 8px;
  text-align: center;
}
.icon img { width: 64px; height: 64px; object-fit: contain; pointer-events: none; }
.icon .icon-text {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
  line-height: 1.2;
  pointer-events: none;
  word-break: break-word;
}
.icon:hover { background: rgba(255,255,255,.12); }
.icon.dragging { background: rgba(255,255,255,.18); }

/* heart-eye EP sticker */
.sticker { position: absolute; padding: 0; }
.sticker img { width: 116px; height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); pointer-events: none; }
.sticker:hover { transform: scale(1.04); }

/* mobile floating socials */
.social-link { position: absolute; }
.social-link img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,.5)); }

/* ---------------- Dock ---------------- */
.dock-container {
  position: fixed;
  left: 0; right: 0; bottom: 14px;
  display: flex;
  justify-content: center;
  z-index: 9000;
  pointer-events: none;
}
.dock {
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 8px 12px;
  height: 68px;            /* fixed bar height — magnified icons rise above it */
  overflow: visible;
  background: var(--dock-bg);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.dock-item {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  transform-origin: bottom center;   /* grow upward from the dock */
  transition: transform .12s ease;
  flex: 0 0 auto;
}
.dock-item:nth-child(odd) { background: var(--accent); }
.dock-item img { width: 30px; height: 30px; object-fit: contain; }
.dock-item .tooltip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.8); color: #fff; font-size: 12px; padding: 4px 8px;
  border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.dock-item:hover .tooltip { opacity: 1; }
.dock-item.clicking { transform: scale(.9); }

/* ---------------- Footer ---------------- */
footer {
  position: fixed; left: 0; bottom: 0; width: 100%;
  text-align: center; padding: 4px;
  font-size: 11px; color: var(--footer);
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  pointer-events: none; z-index: 1;
}

/* ============================================================
   WINDOWS
   ============================================================ */
.modal.window {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--win-lighter);
  border: 1px solid var(--win-border);
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  z-index: 100;
  overflow: hidden;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 120px);
}
.modal.window.front { z-index: 8000; }

.window-header {
  height: 34px;
  display: flex; align-items: center;
  padding: 0 12px;
  background: linear-gradient(var(--win-light), var(--win-dark));
  border-bottom: 1px solid var(--win-border);
}
.window-header.drag-handle { cursor: move; }
.window-header h3 { margin: 0; font-size: 14px; color: var(--win-text); font-weight: 700; width: 100%; text-align: center; }
.btn-close { width: 20px; height: 20px; cursor: pointer; z-index: 5; }

.window-content, .windows-content { padding: 22px; color: var(--win-text); overflow: auto; }

/* ---- Release / EP window ---- */
.release_window { width: 380px; }
.release-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #999; margin: 0 0 4px; }
.release-title { margin: 0 0 18px; color: var(--accent); font-weight: 700; font-size: 25px; line-height: 1.1; letter-spacing: -.01em; }
.release-card { display: flex; flex-direction: column; gap: 12px; max-width: 320px; margin: 0 auto; }
.release-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; display: block; background: #fff; }
.btn-block {
  display: block; text-align: center; background: var(--accent); color: #fff;
  padding: 13px; border-radius: 8px; font-weight: 700; font-size: 15px;
}
.btn-block:hover { background: var(--accent-light); }
/* legacy pill (used elsewhere) */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 30px; font-weight: 700; font-size: 14px; }

/* ---- Video window ---- */
.video_window .window-content { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.video-container { width: 540px; max-width: 78vw; }
.video-container video { width: 100%; border-radius: 6px; display: block; background: #000; }
.video_window h2 { margin: 0; font-family: var(--ff-disp); font-style: italic; color: var(--accent); font-size: 20px; }

/* ---- Email window ---- */
.email-card { text-align: center; max-width: 340px; }
.email-card .email-icon { width: 56px; height: 56px; }
.email-card h2 { font-family: var(--ff-disp); font-style: italic; color: var(--accent); margin: 10px 0 6px; }
.email-card p { color: var(--win-text); margin: 0 0 16px; }
.btn-mail { display: inline-block; background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 30px; font-weight: 700; }

/* ---- Explorer windows (folders) ---- */
.explorer_window { width: 760px; }
.explorer_window { display: grid; grid-template-columns: 200px 1fr; grid-template-rows: auto 1fr; }
.explorer_window .btn-close { position: absolute; top: 9px; left: 12px; }
.explorer_window .window-navigation {
  grid-row: 1 / 3; grid-column: 1;
  background: #ececec; border-right: 1px solid var(--win-border);
  padding: 38px 10px 14px; overflow: auto;
}
.explorer_window .window-panel { grid-row: 1 / 3; grid-column: 2; display: flex; flex-direction: column; min-width: 0; }
.folder-group { margin-bottom: 16px; }
.folder-group-title { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #999; margin: 0 0 6px 8px; }
.window-navigation button {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px;
  border-radius: 6px; font-size: 13px; color: var(--win-text); text-align: left;
}
.window-navigation button img { width: 18px; height: 18px; }
.window-navigation button.active, .window-navigation button:hover { background: var(--accent-30); }
.explorer_window .window-content {
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; padding: 18px;
}
.explorer_window .icon {
  position: static; width: 96px; color: var(--win-text);
}
.explorer_window .icon .span, .explorer_window .icon span {
  color: var(--win-text); font-size: 12px; text-shadow: none; word-break: break-word; line-height: 1.2;
}
.explorer_window .icon img { width: 56px; height: 56px; }
.explorer_window .icon:hover { background: var(--accent-30); }

/* ---- Media windows (image / audio / video viewers) ---- */
.media_window { background: var(--win-lighter); min-width: 280px; }
.media_window .btn-close { position: absolute; top: 9px; left: 12px; z-index: 5; }
.media_window .window-panel { display: flex; flex-direction: column; } /* override generic .window-panel{display:none} */
.media_window .window-content { display: flex; justify-content: center; }
.picture-container img { max-width: 70vw; max-height: 64vh; border-radius: 4px; display: block; }
.audio-player { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 260px; }
.audio-player img { width: 110px; height: 110px; }
.audio-player audio { width: 100%; }
.coming-soon { text-align: center; max-width: 280px; color: var(--win-text); }
.coming-soon img { width: 64px; height: 64px; opacity: .6; }
.coming-soon p { font-size: 13px; line-height: 1.4; }

/* ============================================================
   MESSAGES APP
   ============================================================ */
.message_window { width: 880px; height: 560px; padding: 0; }
.message_window > .btn-close { position: absolute; top: 10px; left: 12px; z-index: 20; }
.message-content-wrapper { display: grid; grid-template-columns: 280px 1fr; height: 100%; }
.message-content-wrapper > .window-header { display: none; }
.window-navigation { background: #f2f2f2; border-right: 1px solid var(--win-border); display: flex; flex-direction: column; overflow: hidden; }
.window-navigation > .window-header { height: 34px; background: linear-gradient(var(--win-light), var(--win-dark)); }
.contacts-container { overflow-y: auto; flex: 1; }
.toggle-contact.contact {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; padding: 12px 16px; border-bottom: 1px solid #e2e2e2; text-align: left;
}
.toggle-contact .name { font-weight: 700; color: var(--win-text); font-size: 14px; }
.toggle-contact .last-message { font-size: 12px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.toggle-contact.active { background: var(--accent); }
.toggle-contact.active .name, .toggle-contact.active .last-message { color: #fff; }

.window-panel-container { position: relative; overflow: hidden; }
.window-panel { display: none; flex-direction: column; height: 100%; }
.window-panel.active { display: flex; }
.window-panel .window-header.drag-handle { cursor: move; gap: 10px; }
.window-panel .window-header h3 { text-align: left; }
.window-panel .window-content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; background: #fff; }
.date { text-align: center; font-size: 11px; color: #999; margin: 12px 0 6px; }
.message-container, .my-message-container { display: flex; max-width: 75%; }
.message-container { align-self: flex-start; }
.my-message-container { align-self: flex-end; }
.message-container span, .my-message-container span {
  padding: 8px 13px; border-radius: 18px; font-size: 14px; line-height: 1.3;
}
.message-container span { background: #e6e6e6; color: #111; border-bottom-left-radius: 4px; }
.my-message-container span { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.back-to-contacts { display: none; cursor: pointer; }

/* ============================================================
   KONSERTER (tour / upcoming shows)
   ============================================================ */
.concerts_window { width: 460px; }
.concerts_window .btn-close { position: absolute; top: 9px; left: 12px; z-index: 5; }
.concert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.concert-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #e2e2e2; border-radius: 12px; padding: 10px;
}
.concert-thumb { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: #000; }
.concert-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.concert-date { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.concert-name { font-size: 16px; font-weight: 700; color: var(--win-text); }
.concert-place { font-size: 13px; color: #888; }
.concert-btn {
  flex: 0 0 auto; background: var(--accent); color: #fff;
  padding: 9px 18px; border-radius: 30px; font-weight: 700; font-size: 14px;
}
.concert-btn:hover { background: var(--accent-light); }
.concert-note { text-align: center; color: #999; font-size: 13px; margin: 16px 0 0; }

/* ============================================================
   RESPONSIVE  (phone behaviour — mirrors reference site)
   ============================================================ */
.m-only { display: none; }

@media (max-width: 1200px) {
  /* swap dock socials for floating desktop ones */
  .d-only { display: none; }
  .m-only { display: block; }

  /* phone: lay icons out as a tidy app-grid instead of scattered absolute positions */
  .desktop-area {
    inset: 0; bottom: 110px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 4px;
    align-content: start;
    justify-items: center;
    padding: 28px 10px 0;
    overflow-y: auto;
  }
  .desktop-area > * {
    position: static !important;
    left: auto !important; top: auto !important; right: auto !important;
    width: 100% !important; margin: 0 !important;
  }
  .desktop-area .icon img { width: 54px; height: 54px; }
  .desktop-area .social-link { display: flex; flex-direction: column; align-items: center; }
  .desktop-area .social-link img { width: 50px; height: 50px; }
  .desktop-area .sticker { display: flex; justify-content: center; align-items: flex-start; }
  .desktop-area .sticker img { width: 60px; }

  /* phone: windows hug their CONTENT (vertically centered), scroll if too tall.
     !important overrides any inline left/top/width set by the desktop JS so a
     desktop -> phone resize can't leave windows stretched/long. */
  .modal.window {
    top: 50% !important; left: 12px !important; right: 12px !important; bottom: auto !important;
    transform: translateY(-50%) !important;
    width: auto !important; height: auto !important;
    max-width: none !important; max-height: calc(100dvh - 24px) !important;
    overflow: hidden;
    border-radius: 14px;
  }
  .modal.window .window-content,
  .modal.window .windows-content { overflow: auto; }
  /* Messages is a full-height messaging app (extra specificity to beat .modal.window) */
  .modal.window.message_window {
    top: 12px !important; transform: none !important;
    height: calc(100dvh - 24px) !important;
  }
  .window-header.drag-handle { cursor: default; }

  .release_window .window-content { flex-direction: column; align-items: center; }

  /* explorer: single column, nav becomes a top strip */
  .explorer_window { display: flex; flex-direction: column; }
  .explorer_window .window-navigation { grid-row: auto; grid-column: auto; display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 40px 12px 10px; border-right: none; border-bottom: 1px solid var(--win-border); }
  .folder-group { margin: 0; }
  .folder-group-title { display: none; }
  .window-navigation button { width: auto; }

  /* MESSAGES: slide stack (list -> thread) */
  .message_window { width: auto; height: auto; }
  .message-content-wrapper { grid-template-columns: 100%; position: relative; }
  .message-content-wrapper .window-navigation { width: 100%; }
  .window-panel-container {
    position: absolute; inset: 0; background: #fff;
    transform: translateX(0); transition: transform .28s ease; z-index: 10;
  }
  .message-content-wrapper.slid .window-panel-container { transform: translateX(100%); }
  .back-to-contacts { display: flex; align-items: center; }
  /* clear the window close (X) which sits at top-left */
  .window-panel .window-header.drag-handle { padding-left: 46px; }
  .mobile-btn-close { display: none; }

}

@media (max-width: 560px) {
  .icon { width: 76px; }
  .icon img { width: 52px; height: 52px; }
  .dock { gap: 6px; padding: 6px 8px; border-radius: 14px; }
  .dock-item { width: 44px; height: 44px; }
  .dock-item img { width: 26px; height: 26px; }
  .album-container h2 span { font-size: 24px; }
}
