/* ═══════════════════════════════════════════
   RENTLELO - DESKTOP CSS (Amazon Style)
   Only shows on screens >= 1024px
   ═══════════════════════════════════════════ */

/* Hide desktop elements on mobile */
.desktop-only { display: none !important; }

@media (min-width: 1024px) {
  .mobile-only { display: none !important; }
  .desktop-only { display: block !important; }
  
  /* Reset container */
  .container {
    max-width: 100%;
    padding: 0;
    padding-bottom: 0;
  }
  
  /* ═══════════════════════════════════════════
     TOP NAV BAR (Amazon Dark)
     ═══════════════════════════════════════════ */
  /* The desktop home header was the ONLY header on the site that scrolled away —
     every other page uses the fixed .topbar. position:sticky keeps it in flow, so
     nothing below has to be re-padded and the page cannot jump on load. */
  .desktop-topnav {
    position: sticky;
    top: 0;
    z-index: 101;
    background: #131921;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .desktop-logo {
    font-family: var(--font-head);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid transparent;
    animation: logoIn .62s cubic-bezier(.2,.7,.3,1) both;
    border-radius: 4px;
  }
  
  .desktop-logo:hover {
    border-color: white;
  }
  
  .desktop-logo b {
    color: #F8CB00;
    /* same looping "lelo" beat as the .topbar wordmark (app.css leloCycle) —
       the desktop home page uses this header, every other page uses .topbar,
       so both need it or the animation vanishes on the busiest page. */
    display: inline-block;
    animation: leloCycle 6s ease-in-out 1.1s infinite;
  }
  .desktop-logo:hover b { animation-play-state: paused; }
  @media (prefers-reduced-motion: reduce) {
    /* cross-fade only — see .logo b in app.css */
    .desktop-logo b { animation: leloFade 6s ease-in-out 1.1s infinite; }
  }
  
  /* Location */
  .desktop-location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-size: 13px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .desktop-location:hover {
    border-color: white;
  }
  
  .desktop-location strong {
    font-size: 14px;
    font-weight: 700;
  }
  
  /* Search Bar */
  .desktop-search {
    flex: 1;
    display: flex;
    height: 42px;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .desktop-search-category {
    background: #e6e6e6;
    border: none;
    padding: 0 12px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    border-right: 1px solid #cdcdcd;
  }
  
  .desktop-search input {
    flex: 1;
    border: none;
    padding: 0 12px;
    font-size: 15px;
    outline: none;
  }
  
  .desktop-search-btn {
    background: #F8CB00;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .desktop-search-btn:hover {
    background: #e6b800;
  }
  
  /* Account & Orders */
  .desktop-account {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: center;
    min-width: 100px;
  }
  
  .desktop-account:hover {
    border-color: white;
  }
  
  .desktop-account-label {
    font-size: 11px;
    color: #ccc;
  }
  
  .desktop-account-value {
    font-size: 14px;
    font-weight: 700;
  }
  
  /* Orders */
  .desktop-orders {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: center;
  }
  
  .desktop-orders:hover {
    border-color: white;
  }
  
  /* Cart */
  .desktop-cart {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    position: relative;
  }
  
  .desktop-cart:hover {
    border-color: white;
  }
  
  .desktop-cart-count {
    position: absolute;
    top: 0;
    right: 8px;
    background: #F8CB00;
    color: #131921;
    font-size: 12px;
    font-weight: 800;
    padding: 0 6px;
    border-radius: 10px;
  }
  
  /* Post Button */
  .desktop-post-btn {
    background: #F8CB00;
    color: #131921;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  .desktop-post-btn:hover {
    background: #e6b800;
  }
  
  /* ═══════════════════════════════════════════
     CATEGORY NAV BAR
     ═══════════════════════════════════════════ */
  .desktop-catnav {
    /* sticks directly under the 72px topnav so the whole header stack stays put */
    position: sticky;
    top: 72px;
    z-index: 100;
    background: #232f3e;
    /* curved underside on the last bar of the header stack */
    border-radius: 0 0 20px 20px;
    padding: 3px 44px 3px 14px;   /* room on the right for the scroll button */
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }
  .desktop-catnav::-webkit-scrollbar { display: none; }
  
  .desktop-catnav a {
    color: white;
    text-decoration: none;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 4px;
  }
  
  .desktop-catnav a:hover {
    border-color: white;
  }
  
  /* ═══════════════════════════════════════════
     MAIN LAYOUT (Content + Sidebar)
     ═══════════════════════════════════════════ */
  .desktop-main {
    display: flex;
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
  }
  
  .desktop-content {
    flex: 1;
    min-width: 0;
  }
  
  .desktop-sidebar {
    width: 280px;
    flex-shrink: 0;
  }
  
  /* ═══════════════════════════════════════════
     HERO BANNER (Desktop - Full Width)
     ═══════════════════════════════════════════ */
  .desktop-hero {
    position: relative;
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
  }
  
  .desktop-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  
  .desktop-hero-slide.active {
    opacity: 1;
  }
  
  .desktop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  }
  
  .desktop-hero-content {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }
  
  .desktop-hero-tag {
    background: #F8CB00;
    color: #131921;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
  }
  
  .desktop-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 12px;
  }
  
  .desktop-hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
  }
  
  .desktop-hero-btn {
    background: #F8CB00;
    color: #131921;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  .desktop-hero-btn:hover {
    background: #e6b800;
  }
  
  .desktop-hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
  }
  
  .desktop-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .desktop-hero-dot.active {
    background: #F8CB00;
    width: 30px;
    border-radius: 5px;
  }
  
  /* ═══════════════════════════════════════════
     PRODUCT GRID (Amazon Style)
     ═══════════════════════════════════════════ */
  .desktop-section {
    margin-bottom: 32px;
  }
  
  .desktop-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  
  .desktop-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #0F1111;
  }
  
  .desktop-section-link {
    color: #007185;
    text-decoration: none;
    font-size: 14px;
  }
  
  .desktop-section-link:hover {
    color: #c7511f;
    text-decoration: underline;
  }
  
  .desktop-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  
  
  
  
  
  
  
  
  
  /* ═══════════════════════════════════════════
     SIDEBAR (Filters)
     ═══════════════════════════════════════════ */
  /* Sits flush in the page rather than inside a card — no fill, no border. */
  .desktop-filter-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 4px 0 0;
    margin-bottom: 22px;
  }
  
  .desktop-filter-title {
    font-size: 16px;
    font-weight: 700;
    color: #0F1111;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7e7e7;
  }
  
  .desktop-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    color: #0F1111;
    text-decoration: none;
    font-size: 14px;
  }
  
  .desktop-filter-option:hover {
    color: #c7511f;
  }
  
  .desktop-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    color: #6b7280;
  }
  .catslider-item:hover .desktop-filter-icon,
  .desktop-filter-option:hover .desktop-filter-icon { color: var(--accent, #00A676); }
  /* catnav glyphs sit inline with the label on a dark bar */
  .desktop-catnav .cat-svg { display: inline-block; vertical-align: -3px; margin-right: 3px; opacity: .85; }

  /* Category endless vertical slider (tools-hero pattern): the track holds
     the list twice and translates up by exactly one copy, looping seamlessly.
     Hover pauses it so every link stays clickable. */
  .catslider-mask {
    height: 400px;
    overflow: hidden;
    mask-image: linear-gradient(180deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 10%, black 90%, transparent 100%);
  }
  .catslider-track {
    display: flex;
    flex-direction: column;
    animation: catSlideUp 32s linear infinite;
    will-change: transform;
  }
  .catslider-mask:hover .catslider-track { animation-play-state: paused; }
  .catslider-item {
    border-radius: 8px;
    padding: 8px 10px;
    margin: 0 -10px;
    transition: background .15s;
  }
  .catslider-item:hover { background: #f5f6f7; color: #0F1111; }
  .catslider-arrow { margin-left: auto; color: #9aa0a6; font-size: 16px; }
  .catslider-item:hover .catslider-arrow { color: var(--accent, #00A676); }
  @keyframes catSlideUp {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
  }
  @media (prefers-reduced-motion: reduce) {
    .catslider-track { animation: none; }
    .catslider-mask { overflow-y: auto; mask-image: none; -webkit-mask-image: none; }
    .catslider-item:nth-child(n+19) { display: none; } /* hide the duplicate copy */
  }

  /* CTA Card */
  .desktop-cta-card {
    background: linear-gradient(135deg, #232f3e 0%, #131921 100%);
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    color: white;
  }
  
  .desktop-cta-icon {
    font-size: 48px;
    margin-bottom: 16px;
  }
  
  .desktop-cta-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  
  .desktop-cta-subtitle {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
  }
  
  .desktop-cta-btn {
    background: #F8CB00;
    color: #131921;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  .desktop-cta-btn:hover {
    background: #e6b800;
  }
  
  /* How It Works */
  
  
  
  
  
  /* Footer */
  .desktop-footer {
    background: #232f3e;
    color: white;
    padding: 48px 24px 24px;
    margin-top: 48px;
  }
  
  .desktop-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    max-width: 1440px;
    margin: 0 auto;
  }
  
  .desktop-footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
  }
  
  .desktop-footer-link {
    display: block;
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
  }
  
  .desktop-footer-link:hover {
    text-decoration: underline;
  }
  
  .desktop-footer-bottom {
    text-align: center;
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid #3a4553;
    font-size: 13px;
    color: #999;
  }
  
  /* Footer */
  .footer-section {
    display: none;
  }
}

/* Desktop motion (mirrors app.css .rv system) */
@media (min-width: 769px) {
  .desktop-hero-slide .desktop-hero-tag,
  .desktop-hero-slide .desktop-hero-title,
  .desktop-hero-slide .desktop-hero-subtitle,
  .desktop-hero-slide .desktop-hero-btn { opacity: 0; transform: translateY(14px); }
  .desktop-hero-slide.active .desktop-hero-tag,
  .desktop-hero-slide.active .desktop-hero-title,
  .desktop-hero-slide.active .desktop-hero-subtitle,
  .desktop-hero-slide.active .desktop-hero-btn {
    opacity: 1; transform: none;
    transition: opacity .45s ease, transform .55s cubic-bezier(.16,1,.3,1);
  }
  .desktop-hero-slide.active .desktop-hero-title    { transition-delay: .08s; }
  .desktop-hero-slide.active .desktop-hero-subtitle { transition-delay: .16s; }
  .desktop-hero-slide.active .desktop-hero-btn      { transition-delay: .24s; }

  @media (prefers-reduced-motion: reduce) {
    .desktop-hero-slide .desktop-hero-tag, .desktop-hero-slide .desktop-hero-title,
    .desktop-hero-slide .desktop-hero-subtitle, .desktop-hero-slide .desktop-hero-btn {
      opacity: 1; transform: none; transition: none;
    }
  }
}

@media (min-width: 1024px) {
  /* Scroll affordance on the category bar — without it the row just looks cut
     off at the right edge and reads as static. */
  .catnav-next {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    z-index: 2;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, transform .15s;
  }
  .catnav-next:hover { background: rgba(255,255,255,.28); transform: translateY(-50%) scale(1.08); }
  .catnav-next:disabled { opacity: .3; cursor: default; }
  /* fade the strip under the button so items slide out rather than stop dead */
  .desktop-catnav::after {
    content: '';
    position: sticky;
    right: 0;
    flex: 0 0 34px;
    height: 24px;
    margin-right: -34px;
    background: linear-gradient(90deg, rgba(35,47,62,0) 0%, #232f3e 70%);
    pointer-events: none;
  }
}
