/* --- START OF FILE menu.css --- */

/* 1. Overlay Container */
.fn-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh; 
  height: 100dvh; 
  z-index: 9999;
  
  background-color: var(--c-overlay);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1);
  
  display: flex;
  flex-direction: column;
  
  /* DEFAULT DESKTOP SPACING */
  padding: 2vw;
  
  box-sizing: border-box;
  overflow-y: hidden; 
}

.fn-overlay.is-open {
  transform: translateY(0%);
}

/* 2. Overlay Header */
.fn-overlay-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 40px;
  flex-shrink: 0; 
}

.fn-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-text);
  padding: 0;
  
  /* Ensure size matches the SVG */
  width: 32px;
  height: 32px;
}

.fn-lang-switch {
  display: flex;
  gap: 15px;
}

/* 3. Overlay Content */
.fn-overlay-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  overflow-y: auto; 
}

.fn-overlay-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 4. Overlay Footer */
.ftr-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  font-size: 0.9rem;
  flex-shrink: 0; 
  padding-bottom: 10px; 
}

.ftr-right {
  display: flex;
  gap: 20px;
}

/* Footer Link Hover Effects */
.ftr-right a,
.ftr-left a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.ftr-right a:hover,
.ftr-left a:hover {
  opacity: 0.5;
}

/* --- MOBILE ADJUSTMENTS (6vw Spacing) --- */
@media (max-width: 768px) {
  
  /* Update Overlay Padding */
  .fn-overlay {
    padding: 6vw;
  }
  
  .ftr-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}