/* SIDE UI BLOCKS */

.framinosona-side-ui-block {
  width: 4em;
  position: fixed;
  left: 0;
  aspect-ratio: 1;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

#framinosona-side-ui-block-top {
  background-color: #0b3041;
  height: 100vh;
  top: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  transition: left 0.3s ease-in-out, background-color 0.3s ease-in-out;
  z-index: 1000;
  cursor: pointer;
}

#framinosona-side-ui-block-bottom {
  background-color: #215f9a;
  z-index: 1001;
  height: 50vh;
  top: 50vh;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.framinosona-menu-icon {
  width: 2em;
  height: 2em;
  margin: 1em;
}

.framinosona-menu-toggle-icon {
  transition: transform 0.3s ease-in-out;
  opacity: 0.4;
  width: 1.6em;
  height: 1.6em;
  margin: 1em;
}
#framinosona-side-ui-block-top.menu-open .framinosona-menu-toggle-icon {
  transform: rotate(180deg);
}

/* MENU PANEL */

#framinosona-menu-panel {
  position: fixed;
  top: 0;
  left: -600px;
  width: 600px;
  height: 100vh;
  background-color: #0b3041; /* @dark-blue */
  z-index: 1000;
  transition: left 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

/* MENU PANEL - OPEN */

#framinosona-menu-panel.open {
  left: 0; /* from -600px to 0 */
}

#framinosona-side-ui-block-top.menu-open {
  left: 600px; /* from 0 to 600px */
  background-color: #06222f; /* @darker-blue */
}

/* MENU PANEL - HEADER */

#framinosona-menu-panel .framinosona-menu-header {
  padding: 1em;
  color: white;
  height: 4em;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: flex-end;
}

#framinosona-menu-panel .framinosona-menu-header h1 {
  margin: 0;
  font-size: 1.4em;
  font-weight: 400;
  letter-spacing: 1px;
  font-family: "Roboto", sans-serif;
}
#framinosona-menu-panel .framinosona-menu-header h2 {
  margin: 0;
  font-size: 1em;
  font-weight: 200;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
}

/* MENU PANEL - CONTENT */

#framinosona-menu-panel .framinosona-menu-content {
  flex: 1;
  padding: 0em 2em 1em 3em;
  color: white;
  font-size: 1.1em;
  line-height: 1.6;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 200px);
}

/* MENU PANEL - CONTENT - SCROLLBAR */

#framinosona-menu-panel .framinosona-menu-content::-webkit-scrollbar {
  width: 8px;
}

#framinosona-menu-panel .framinosona-menu-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

#framinosona-menu-panel .framinosona-menu-content::-webkit-scrollbar-thumb {
  background: rgba(135, 206, 235, 0.6);
  border-radius: 4px;
}

#framinosona-menu-panel
  .framinosona-menu-content::-webkit-scrollbar-thumb:hover {
  background: rgba(135, 206, 235, 0.8);
}

/* MENU PANEL - FOOTER */

#framinosona-menu-panel .framinosona-menu-footer {
  padding: 1.5em 2em;
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.2);
  flex-direction: column;
  gap: 1em;
}

#framinosona-menu-panel .framinosona-menu-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
  text-align: center;
}

/* MENU PANEL - LINKS */

#framinosona-menu-panel .framinosona-menu-links {
  padding: 2em 2em 2em 5em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#framinosona-menu-panel .framinosona-menu-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1em;
}

#framinosona-menu-panel .framinosona-menu-links li {
  margin: 0;
}

#framinosona-menu-panel .framinosona-menu-links a {
  display: block;
  color: #87ceeb;
  text-decoration: none;
  padding: 0.8em 0em;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  font-weight: 500;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

#framinosona-menu-panel .framinosona-menu-links a:hover {
  background-color: #215f9a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: white;
}

#framinosona-menu-panel .framinosona-menu-link-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

#framinosona-menu-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4em;
  padding: 0 1em 0 4em;
  background-color: #0b3041; /* @darker-blue */
  color: white;
  z-index: 999;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

#framinosona-menu-top-bar h1 {
  font-size: 1.2em;
  font-weight: 500;
  letter-spacing: 1px;
}
#framinosona-menu-top-bar h1 a {
  color: #87ceeb;
  text-decoration: none;
}

@media (max-width: 600px) {
  #framinosona-side-ui-block-top.menu-open {
    left: 0;
  }
  #framinosona-menu-panel {
    width: 100%;
    left: -100%;
  }
  #framinosona-menu-panel.open {
    left: 0;
  }

  #framinosona-menu-panel .framinosona-menu-header {
    flex-direction: column;
    display: flex;
    justify-content: center;
    gap: 0.2em;
  }
  #framinosona-menu-panel .framinosona-menu-content {
    padding: 0em 1em 1em 4.6em;
  }
  #framinosona-menu-panel .framinosona-menu-footer {
    padding: 1em 1em 1em 4.6em;
  }
  #framinosona-menu-panel .framinosona-menu-links {
    padding: 1em 1em 1em 4.6em;
  }
}

/* MENU PANEL - ALBUM LIST */

.framinosona-album-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em;
  list-style: none;
  padding: 0;
  margin: 0;
}

.framinosona-album-item {
  margin: 0;
}

.framinosona-album-link {
  display: flex;
  gap: 1em;
  padding: 0.4em;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-content: center;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  flex-direction: row;
  text-decoration: none;
  color: inherit;
}

.framinosona-album-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.framinosona-album-preview {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
}

.framinosona-album-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.framinosona-album-info {
  flex: 1;
  line-height: 1;
}

.framinosona-album-info h4 {
  margin: 0 0 0.5em 0;
  font-size: 1.1em;
  font-weight: 500;
  color: #87ceeb;
}

.framinosona-album-link:hover .framinosona-album-info h4 {
  color: white;
}

.framinosona-album-summary {
  margin: 0 0 0.3em 0;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.8);
}

.framinosona-album-subalbums {
  margin: 0;
  font-size: 0.8em;
  color: rgba(135, 206, 235, 0.8);
  font-style: italic;
}
