/* ============================================
   DESKTOP ENHANCEMENTS
   Premium desktop experience for 1024px+
   Sidebar nav, wider layouts, multi-column grids
   ============================================ */

/* =====================
   1. DESKTOP LAYOUT ADJUSTMENTS
   ===================== */
@media (min-width: 1024px) {
  .app-main-container {
    padding-bottom: 2rem;
  }

  /* Wider content area on desktop */
  .app-content {
    max-width: 100%;
    padding: 1rem 2.5rem 0;
  }

  /* Flash messages match */
  .app-flash {
    max-width: 100%;
    padding: 0 2.5rem;
  }

  /* Header adjustments for desktop */

  /* Header max-width removed on desktop for full span */
  .app-header-inner {
    max-width: 100%;
    padding: 0 2rem;
  }

  /* Search wider on desktop */
  .app-header.search-open .app-header-inline-search {
    width: min(50vw, 600px);
    max-width: 600px;
  }
}

/* Desktop wrapper is now full-width (no sidebar offset) */
.desktop-main-area {
  margin-left: 0;
}

/* Extra wide screens */
@media (min-width: 1440px) {
  .app-content {
    padding: 1.25rem 3rem 0;
  }
}

@media (min-width: 1920px) {
  .app-content {
    padding: 1.5rem 4rem 0;
    max-width: 100%;
  }
}

@media (min-width: 2560px) {
  .app-content {
    padding: 1.5rem 5rem 0;
  }
}

/* =====================
   3. DESKTOP CONTENT ENHANCEMENTS
   ===================== */

/* Posts feed - sidebar layout on desktop */
@media (min-width: 1280px) {
  .desktop-feed-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
  }
}

@media (min-width: 1536px) {
  .desktop-feed-layout {
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
  }
}

/* Right sidebar widget card */
.desktop-sidebar-widget {
  display: none;
}

@media (min-width: 1280px) {
  .desktop-sidebar-widget {
    display: block;
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}

.desktop-widget-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.desktop-widget-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.75rem;
}

.desktop-widget-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.625rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.desktop-widget-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.desktop-widget-link i {
  width: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

/* =====================
   4. DISCOVERY ZONE DESKTOP
   ===================== */
@media (min-width: 1024px) {
  .discovery-zone {
    padding: 3.5rem 2.5rem 2.5rem;
  }

  .discovery-zone-content {
    max-width: 1200px;
    margin: 0 auto;
  }
}

@media (min-width: 1440px) {
  .discovery-zone {
    padding: 4rem 3rem 3rem;
  }

  .discovery-zone-content {
    max-width: 1400px;
  }
}

/* =====================
   5. HOME PAGE DESKTOP
   ===================== */
@media (min-width: 1024px) {
  .home-features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .home-features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* =====================
   6. ADMIN DASHBOARD DESKTOP
   ===================== */
@media (min-width: 1280px) {
  .admin-grid-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .admin-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .admin-dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
  }
}

/* =====================
   7. PROFILE DESKTOP LAYOUT
   ===================== */
@media (min-width: 1024px) {
  .profile-desktop-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
    align-items: start;
  }

  .profile-desktop-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}

@media (min-width: 1440px) {
  .profile-desktop-layout {
    grid-template-columns: 380px 1fr;
    gap: 2.5rem;
  }
}

/* =====================
   8. PORTAL / FACILITY DASHBOARD
   ===================== */
@media (min-width: 1024px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .dashboard-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .dashboard-two-col {
    gap: 2rem;
  }
}

/* =====================
   9. BUY PAGE HERO GRID
   ===================== */
@media (min-width: 1024px) {
  .buy-heroes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1440px) {
  .buy-heroes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* =====================
   10. COACH CARDS GRID DESKTOP
   ===================== */
@media (min-width: 1280px) {
  .coaches-grid-desktop {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 1600px) {
  .coaches-grid-desktop {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* =====================
   11. EVENTS GRID DESKTOP
   ===================== */
@media (min-width: 1024px) {
  .events-grid-desktop {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1440px) {
  .events-grid-desktop {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* =====================
   12. SERVICE GRID DESKTOP
   ===================== */
@media (min-width: 1280px) {
  .service-grid-desktop {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 1600px) {
  .service-grid-desktop {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* =====================
   13. ROUTES GRID DESKTOP
   ===================== */
@media (min-width: 1280px) {
  .routes-grid-desktop {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* =====================
   14. PREMIUM PAGE DESKTOP
   ===================== */
@media (min-width: 1024px) {
  .premium-plans-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
  }
}

/* =====================
   15. PAGES (STATIC) DESKTOP
   ===================== */
@media (min-width: 1024px) {
  .static-page-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
  }
}

/* =====================
   16. NOTIFICATIONS DESKTOP
   ===================== */
@media (min-width: 1024px) {
  .notifications-desktop-layout {
    max-width: 720px;
    margin: 0 auto;
  }
}

/* =====================
   17. POST DETAIL DESKTOP
   ===================== */
@media (min-width: 1280px) {
  .post-detail-desktop {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
  }

  .post-detail-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}

/* =====================
   18. COACH DETAIL DESKTOP
   ===================== */
@media (min-width: 1024px) {
  .coach-detail-desktop {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
  }

  .coach-detail-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}

@media (min-width: 1440px) {
  .coach-detail-desktop {
    grid-template-columns: 1fr 420px;
    gap: 2.5rem;
  }
}

/* =====================
   19. ORGANIZATION DASHBOARD DESKTOP
   ===================== */
@media (min-width: 1280px) {
  .org-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* =====================
   20. HAMBURGER MENU DESKTOP OVERRIDE
   ===================== */
@media (min-width: 1024px) {
  /* Hamburger menu now works on desktop too (sidebar was removed) */
  .hamburger-menu {
    /* No longer hidden — full-width panels work at all breakpoints */
  }

  .hamburger-panel {
    max-width: 480px;
    border-radius: 0 0 20px 20px;
  }
}

