
.glass-panel {
  margin: 0 !important;
  /* A slight off-white tint helps it stand out against pure white */
  background: rgba(245, 245, 245, 0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(245, 245, 245, 0.7);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.02);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.glass-panel:hover {
  background: rgba(245, 245, 245, 0.8);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.glass-panel.is-active {
  background: rgba(245, 245, 245, 0.8);
  border-color: blue;
}

/* Dark Mode Adaptation */
@media (prefers-color-scheme: dark) {
  .glass-panel {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(245, 245, 245, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    color: #f8f8f8;
  }
  
  .glass-panel:hover {
    background: rgba(10, 10, 10, 0.85);
  }

  .glass-panel.is-active {
    background: rgba(10, 10, 10, 0.85);
  }
}

/* Layout Utilities */
.menu-btn {
  cursor: pointer;
  padding: 1.5rem;
  width: 100%;
  text-align: left;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Mobile: Card lebar 90% */
@media (max-width: 1023px) {
  .mobile-wrapper {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .content-area-mobile {
    padding: 1.5rem;
    position: relative;
    animation: fadeIn 0.4s ease;
  }

  /* Tombol Close X di Mobile */
  .mobile-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
  }
}

/* Desktop: Sidebar & Content */
@media (min-width: 1025px) {
  .desktop-layout {
    display: flex;
    gap: 3rem;
    height: calc(92vh - 3.25rem);
    align-items: flex-start;
    /* padding-top: 0.5rem;
    padding-bottom: 0.5rem; */
    /* padding: 0.5rem 0; */
  }

  .sidebar-column {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .content-column {
    position: relative;
    flex: 1;
    height: 100%;
    overflow-y: auto;
    border-radius: 16px;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
  }

  .content-wrapper {
    padding: 2rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

figure.image {
  overflow: hidden;
  border-radius: 8px;
  border: 3px solid #ddd;
  display: block;
}

figure.image img {
  border: none;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* figure.image:hover img {
  transform: scale(1.2);
} */

.list-title {
  list-style: none;
  font-weight: 600;
  margin-left: -1.5rem;
}

.trophy-image {
  position: fixed;
  bottom: 0;
  left: 0;
  width: max(15vw, 30vh);
  height: auto;
  z-index: 100;
  pointer-events: none;
  display: none;
}

@media screen and (min-width: 1025px) {
  .trophy-image {
    display: block;
  }
}

.responsive-padding {
  padding: 0.5rem;
}

@media screen and (min-width: 1025px) {
  .responsive-padding {
    padding: 2rem;
  }
}

html, body {
  overflow-y: auto;
  overflow-x: hidden;
}

/* Disable scrolling on desktop */
@media (min-width: 1025px) {
  html, body {
    height: 100vh;
    overflow: hidden;
  }
}

/* backdrop-filter di .glass-panel bisa hilang karena window.instgrm.Embeds.process() */
.mobile-item-container { 
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

/* ini untuk menampilkan panah ke bawah kalau kontennya ada yang masih tersembunyi */
.content-column.has-more-content::after {
  content: '↓';
  position: absolute;
  bottom: 100px;
  right: 10px;
  color: orange;
  font-size: 36px;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  pointer-events: none;
  opacity: 0.8;
  animation:
    smooth-blink 1s ease-in-out 5,
    fade-out 0.5s ease forwards;
  animation-delay: 0s, 5s;
}

@keyframes smooth-blink {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.25;
  }
  100% {
    opacity: 0.8;
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

.image-wrapper {
  position: relative;
}

.image-title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: #3273dc;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  background: rgba(245, 245, 245, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  /* border: 1px solid rgba(245, 245, 245, 0.3); */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  width: 80%;
  max-width: 100%;
}

#profile-figure {
  width: 30%;
  height: auto;
}

/* For screens wider than mobile */
@media (min-width: 769px) {
  #profile-figure {
    width: 20%;
  }
}