/* ========== DESKTOP LAYOUT (768px+) ========== */
@media (min-width: 768px) {
  /* Remove mobile viewport restrictions */
  body {
    padding: 0;
    overflow: auto;
    align-items: stretch;
    justify-content: flex-start;
  }

  /* Login screen — keep it centered and card-style */
  .login-container {
    margin: 4rem auto;
    max-width: 420px;
    border-radius: 1.5rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  }

  /* Dashboard fills full viewport, switch from column to row */
  .dashboard {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: row;
    padding-bottom: 0; /* no bottom nav space needed */
    height: 100dvh;
    width: 100vw;
  }

  /* Bottom nav becomes a left sidebar */
  .bottom-nav {
    position: relative;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 220px;
    min-width: 220px;
    height: 100%;
    padding: 1.5rem 0.75rem 1.5rem 0.75rem;
    border-top: none;
    border-right: 1px solid rgba(255,255,255,0.07);
    box-shadow: 2px 0 16px rgba(0,0,0,0.3);
    gap: 4px;
    overflow-y: auto;
    left: auto; right: auto; bottom: auto;
    z-index: 100;
  }

  /* Hide the safe-area pseudo-element on desktop */
  .bottom-nav::after { display: none; }

  /* Nav buttons — horizontal layout with label beside icon */
  .nav-btn {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    min-width: unset;
    max-width: unset;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    flex: unset;
    text-align: left;
  }

  .nav-btn i {
    font-size: 1.25rem;
    margin-bottom: 0;
    min-width: 24px;
    text-align: center;
  }

  .nav-btn span {
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
  }

  /* App name / logo at top of sidebar */
  .bottom-nav::before {
    content: "Rupianii";
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFE0A3;
    padding: 0.35rem 1rem 1.2rem 3.3rem;
    min-height: 2.4rem;
    line-height: 2.2rem;
    letter-spacing: 0.5px;
    background: url("/icons/icon-192.png") no-repeat 0.9rem 0.2rem / 2.2rem 2.2rem;
  }

  /* Main content area takes remaining space */
  .dashboard > :not(.bottom-nav) {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow-y: auto;
  }

  /* Feed scroll — fill remaining height */
  .home-feed-scroll {
    height: 100%;
    max-width: 680px;
    margin: 0 auto;
  }

  /* Reel/track cards inside the feed: on desktop there is no bottom
     nav bar eating into vertical space (nav is the left sidebar), so
     cards should fill the full content area rather than subtracting
     a bottom-nav height that doesn't apply here. */
  .reel-card {
    height: 100% !important;
    min-height: 100% !important;
  }

  /* "My Music" hub (hero card + Artists row + Recently Added) fills
     the full content width on desktop too — same full-bleed behavior
     as mobile, just on a wider screen. No side margins/centering. */
  .home-cover-grid-title { font-size: 1.5rem !important; }
  .home-cover-grid-sub   { font-size: 0.72rem !important; }

  /* Modals — larger on desktop */
  .modal {
    max-width: 520px !important;
    border-radius: 1.25rem !important;
  }

  /* Profile page fills content area */
  .profile-page {
    position: absolute;
    top: 0;
    left: 220px;
    right: 0;
    bottom: 0;
    width: auto;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
  }

  /* Alerts/notifications stay a proper slide-in tray on desktop too —
     it should NOT stretch edge-to-edge like the profile page. It keeps
     its fixed width and slides in from the right, just clear of the
     sidebar so it never overlaps it. */
  .notifications-panel {
    left: auto;
    width: 380px;
    max-width: 380px;
    height: 100dvh;
  }

  /* Music nav pill — adjust for sidebar */
  .music-nav-track {
    left: 230px;
    bottom: 1rem;
  }
}

/* Wide desktop — show more content */
@media (min-width: 1100px) {
  .bottom-nav {
    width: 260px;
    min-width: 260px;
  }
  .home-feed-scroll {
    max-width: 800px;
  }
  .profile-page {
    left: 260px;
  }
  .music-nav-track {
    left: 270px;
  }
}

/* ========== PHOTO ZOOM OVERLAY ========== */
.photo-zoom-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.photo-zoom-overlay.show {
  opacity: 1;
  visibility: visible;
}

.photo-zoom-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 1rem;
  border: 3px solid rgba(255, 224, 163, 0.5);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  transform: scale(0.85);
  transition: transform 0.3s ease;
  object-fit: contain;
}

.photo-zoom-overlay.show .photo-zoom-img {
  transform: scale(1);
}

.photo-zoom-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.photo-zoom-close:hover {
  background: rgba(255,255,255,0.28);
}

.photo-zoom-download {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: white;
  padding: 0.55rem 1.4rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(6px);
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.photo-zoom-download:hover {
  background: rgba(255,255,255,0.3);
}

.photo-zoom-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 3px solid rgba(255, 224, 163, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-zoom-placeholder i {
  font-size: 5rem;
  color: rgba(255,224,163,0.7);
}

