* { box-sizing: border-box; }
:root { --header-h: 72px; }

a {
  color: white;
  text-decoration: underline;
}

/* ------------------------- Body ------------------------- */  

body {
  overflow: hidden;
  margin: 0;
  min-height: 100vh;
  background: #212227;
  position: relative;
  color: #f9d7d7;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}
body::before { display: none; }

/* ------------------------- Header ------------------------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  height: var(--header-h);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background-color: #1c1926;
  z-index: 10;
}

#header h1 {
  margin: 0;
  font-size: 20px;
  color: #ffffff;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center; /* centers the music player block */
}

/* ------------------------- Music Player ------------------------- */

.music-player {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.player-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.track-title {
  font-size: 14px;
  color: #f9d7d7;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}



.player-btn {
  all: unset;
  cursor: pointer;
  font-size: 24px;
  font-family: "Segoe UI Symbol", "Apple Color Emoji", sans-serif;
  color: #ffffff;
  line-height: 1;
  width: 1.5em;
  height: 1.5em;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ------------------------- Unified Glassmorphism Buttons ------------------------- */
.button {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease-out, background-color 0.2s ease-out, box-shadow 0.2s ease-out;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  width: 200px;
  padding: 12px 16px;
  margin: 10px;
  font-size: 18px;
  text-decoration: none;
}

/* ------------------------- Enter Button ------------------------- */
#enter-btn {
  padding: 12px 24px;
  font-size: 38px;
  font-weight: bold;
  width: 100%;
  height: 100%;
  color: #ffffff;
  background-color: rgb(0, 0, 0);
  z-index: 11;
}

/* ------------------------- Social Buttons ------------------------- */
.social-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  font-size: 0;
  border: none;
  border-radius: 8px;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

/* ------------------------- Hover/Active Effects ------------------------- */

#enter-btn:hover {
    background-color: rgb(0, 0, 0);
    color:#ffffff;
}

.button:hover,
.social-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

.button:active,
#enter-btn:active,
.social-btn:active {
  transform: scale(0.97);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

/* ------------------------- Progress Bar ------------------------- */
.progress-bar {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.progress-fill {
  height: 110%;
  background: linear-gradient(90deg, #ff69b4, #ffb6db);
  width: 0%;
  transition: width 0.1s linear;
}

/* ------------------------- Enter Section ------------------------- */
#enter-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ------------------------- Main Content ------------------------- */
.main-content {
  display: none;
  height: calc(100vh - var(--header-h));
  margin-top: var(--header-h);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 16px;
}

@keyframes zoomIn { to { opacity: 1; transform: scale(1); } }

.container { margin-top: 30px; }

/* ------------------------- Social Grid ------------------------- */
.social-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ------------------------- Visualizer ------------------------- */
#visualizer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 35vh;
  background: transparent;
  z-index: 5;
  pointer-events: none;
  border: none;
}

/* ------------------------- Cursor Trail ------------------------- */
.trail {
  position: fixed;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  animation: fadeTrail 0.6s forwards;
  z-index: 100;
}
@keyframes fadeTrail {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.5); }
}

/* ------------------------- Click Ripple ------------------------- */
.click-circle {
  position: fixed;
  border: 2px solid #ffffff;
  border-radius: 50%;
  pointer-events: none;
  animation: ripple 0.6s forwards;
  z-index: 100;
}
@keyframes ripple {
  from { opacity: 0.8; transform: scale(0); }
  to   { opacity: 0; transform: scale(2); }
}

/* ------------------------- Background Layer ------------------------- */
#bg-layer {
  position: fixed;
  inset: 0;
  background-image: url('../media/wallpaper_pink.png');
  background-repeat: repeat;
  background-position: center center;
  background-size: 110%;
  background-color: rgba(0,0,0,0.2);   /* semi-transparent black */
  background-blend-mode: multiply;     /* blend image + color */
  z-index: -3;
  filter: blur(8px);
  pointer-events: none;
  will-change: transform, background-position;
}


/* ------------------------- Profile Card ------------------------- */
.profile-card {
  width: min(900px, 90%);
  border-radius: 12px;
  padding: 28px;
  color: #f9f9f9;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 8px rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, rgba(215, 224, 229, 0.5), rgba(153, 99, 220, 0.4));
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  opacity: 0;
  transform: scale(0.98);
  animation: zoomIn 0.6s ease-out forwards;
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
  pointer-events: none;
}
.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.12);
  pointer-events: none;
}
.profile-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.avatar img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.profile-meta { text-align: left; }

.profile-name {
  margin: 0 0 8px 0;
  font-size: 40px;
  font-weight: 600;
  color: #ffffff;
}

.profile-sub {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
}

/* ------------------------- Pages Grid ------------------------- */
.pages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0;
}

.page-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #424153;
  color: #f9f9f9;
  padding: 18px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 18px;
}

/* ------------------------- Language Switcher ------------------------- */
#language-switcher {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

#lang-btn {
  all: unset;
  cursor: pointer;
  display: inline-block;
  padding: 0;
}

#lang-btn img {
  width: auto;
  height: 32px;
  border-radius: 4px;
  border: 2px solid #000;
  transition: transform 0.15s ease;
  display: block;
}

#lang-btn:hover img { transform: scale(1.1); }
#lang-btn:active img { transform: scale(1.2); }

/* ------------------------- Page Sections (SPA) ------------------------- */
#setup-section,
#clips-section,
#blog-section,
#gallery-section,
#about-section,
#contact-section {
  display: none; /* shown as flex via JS */
  height: calc(100vh - var(--header-h));
  margin-top: var(--header-h);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 28px 16px;
}

/* ------------------------- Inner card for sections ------------------------- */
.section-card {
  width: min(900px, 90%);
  border-radius: 12px;
  padding: 28px;
  color: #f9f9f9;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 8px rgba(255,105,180,0.4);
  background: linear-gradient(135deg, rgba(105, 225, 255, 0.5), rgba(255, 255, 255, 0.4));
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  opacity: 0;
  transform: scale(0.98);
  animation: zoomIn 0.6s ease-out forwards;
  font-size: 18px;
}

/* ------------------------- Section headings ------------------------- */
.section-card h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #ffffff;
}

/* ------------------------- Gallery Grid ------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-grid img:hover { transform: scale(1.05); }

.gallery-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.gallery-grid figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #fff;
  text-align: center;
}

.gallery-grid figcaption a {
  color: inherit;
  text-decoration: none;
}

.gallery-grid figcaption a:hover { text-decoration: underline; }

.gallery-grid iframe {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ------------------------- Page Wrapper ------------------------- */
.page-wrapper {
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ------------------------- Lightbox overlay ------------------------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

/* ------------------------- Close button ------------------------- */
.lightbox .close {
  position: absolute;
  top: 16px;
  right: 24px;
  color: #fff;
  font-size: 64px;
  cursor: pointer;
  z-index: 2;
}

/* ------------------------- Lightbox content ------------------------- */
.lightbox-content {
  display: block;
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  user-select: none;
  will-change: transform;
  transform: translate(0px, 0px) scale(1);
  transition: transform 0.15s ease-out;
  cursor: grab;
}
.lightbox-content:active { cursor: grabbing; }

/* ------------------------- Button Container ------------------------- */
.button-container {
  text-align: center;
  margin-top: 20px;
}

/* ------------------------- Blog List ------------------------- */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.blog-list figure {
  margin: 0;
  text-align: center;
}

.blog-list img {
  width: 100%;
  max-width: 300px;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.blog-list figcaption {
  margin-top: 8px;
  font-size: 18px;
}

.blog-list figcaption a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.blog-list figcaption a:hover { text-decoration: underline; }
