/* Desktop styles - 1024px and up */

/* ============================================
   NAVBAR - HIDE ON DESKTOP
   ============================================ */
@media (min-width: 1024px) {
  #navbar {
    display: none !important;
  }

  /* Show desktop menu trigger button when navbar is hidden */
  .desktop-menu-trigger {
    display: flex !important;
    position: fixed !important;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
  }

  .desktop-menu-trigger svg {
    width: 24px;
    height: 24px;
  }

  .desktop-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
  }
}

/* ============================================
   DROPDOWN MENU - DESKTOP LAYOUT
   Fixed to left side, slides in from left
   ============================================ */
@media (min-width: 1024px) {
  #dropdown-menu {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: auto;
    width: 320px;
    max-width: 320px;
    height: 100vh;
    max-height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(31, 41, 55, 0.98) 100%);
    backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    padding: 2rem 0;
  }

  #dropdown-menu.show {
    transform: translateX(0);
  }

  /* Adjust dropdown header for desktop */
  .dropdown-header {
    padding: 2rem 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }

  .dropdown-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
  }

  .dropdown-close {
    color: rgba(255, 255, 255, 0.6);
  }

  .dropdown-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
  }

  /* Desktop dropdown sections */
  .dropdown-section {
    padding: 1rem 0;
  }

  .section-title {
    padding: 0.75rem 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
  }

  .dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 2rem;
    margin-bottom: 0;
    border-radius: 0;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.8);
  }

  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: none;
  }

  .dropdown-item-icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    background: transparent;
  }

  .dropdown-item:hover .dropdown-item-icon {
    opacity: 1;
    color: var(--accent-primary);
    background: transparent;
  }

  /* Menu overlay for desktop */
  #dropdown-menu::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  #dropdown-menu.show::before {
    opacity: 1;
    pointer-events: all;
  }
}

/* ============================================
   MUSIC PLAYER DRAWER - DESKTOP LAYOUT
   Fixed to right side, non-overlapping
   ============================================ */
@media (min-width: 1024px) {
  .drawer {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    left: auto;
    width: 400px;
    max-width: 400px;
    height: 100vh;
    inset: 0 0 0 auto;
    margin: 0;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(31, 41, 55, 0.98) 100%);
    backdrop-filter: blur(20px);
  }

  .drawer::backdrop {
    background: transparent;
    backdrop-filter: none;
  }

  .drawer:popover-open::backdrop {
    backdrop-filter: none;
  }

  .drawerScroller {
    width: 100%;
    margin: 0;
    height: 100%;
  }

  .drawerScroller::after {
    display: none;
  }

  .drawerContent {
    position: static;
    translate: 0 0 !important;
    border-radius: 0;
    border: none;
    height: 100%;
    padding: 2rem 1.5rem;
    background: transparent;
    transition: none;
  }

  .drawer:popover-open .drawerContent {
    translate: 0 0;
  }

  .drawerSlide {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .drawerAnchors {
    display: none;
  }

  .drawerCurtain {
    display: none;
  }

  .drawerDrag {
    display: none;
  }

  /* Adjust main content to not overlap with fixed player */
  #mainArea {
    padding-right: 420px !important;
  }

  /* Tabs container styling for desktop */
  .tabsContainer {
    margin-top: 0;
  }

  .tabs {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.25rem;
  }

  .tab {
    color: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
  }

  .tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }

  .tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
  }

  /* Music player specific adjustments */
  .musicPlayer {
    height: 100%;
  }

  .musicPlayer .header {
    padding: 0;
    margin-bottom: 1.5rem;
  }

  .musicPlayer .body {
    flex: 1;
    overflow-y: auto;
  }

  /* Desktop player controls */
  .controls {
    padding: 1rem 0;
  }
}
