/* =====================================================
   WILDVERSE MOBILE PAGINATION
   File: public_html/wildverse/Styles/wildverse-library/wildverse-mobile-pagination.css
   Load after wildverse-library.css / stats.css / actions.css
===================================================== */

@media (max-width: 760px) {
  .wv-pagination,
  .wv-pagination-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 8 !important;

    display: grid !important;
    grid-template-columns: 42px minmax(74px, 1fr) 42px 92px !important;
    align-items: center !important;
    gap: 7px !important;

    width: 100% !important;
    box-sizing: border-box !important;

    margin: 6px 0 8px !important;
    padding: 7px !important;

    border: 1px solid rgba(120, 247, 255, 0.18) !important;
    border-radius: 18px !important;

    background:
      radial-gradient(circle at 15% 0%, rgba(120, 247, 255, 0.13), transparent 42%),
      linear-gradient(135deg, rgba(120, 247, 255, 0.08), rgba(255, 79, 216, 0.04)),
      rgba(3, 10, 18, 0.96) !important;

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 10px 24px rgba(0, 0, 0, 0.3) !important;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .wv-pagination button,
  .wv-pagination select,
  #wvPageInfo,
  #wvPerPage {
    min-width: 0 !important;
    min-height: 38px !important;
    height: 38px !important;
    max-height: 38px !important;

    margin: 0 !important;
    border-radius: 999px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }

  #wvPrevPage,
  #wvNextPage {
    display: inline-grid !important;
    place-items: center !important;

    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    padding: 5px !important;

    border: 1px solid rgba(120, 247, 255, 0.24) !important;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
      rgba(3, 10, 18, 0.82) !important;

    color: transparent !important;
    font-size: 0 !important;
    overflow: hidden !important;

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.09),
      0 0 14px rgba(120, 247, 255, 0.08) !important;
  }

  #wvPrevPage::before,
  #wvNextPage::before {
    display: block !important;
    color: #eaffff !important;
    font-size: 18px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    text-shadow: 0 0 10px rgba(120, 247, 255, 0.22);
  }

  #wvPrevPage::before {
    content: "‹";
  }

  #wvNextPage::before {
    content: "›";
  }

  #wvPrevPage:disabled,
  #wvNextPage:disabled {
    opacity: 0.34 !important;
    box-shadow: none !important;
  }

  #wvPrevPage:not(:disabled):active,
  #wvNextPage:not(:disabled):active {
    transform: scale(0.96);
  }

  #wvPageInfo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-width: 0 !important;
    padding: 0 8px !important;

    border: 1px solid rgba(120, 247, 255, 0.22) !important;
    background:
      linear-gradient(135deg, rgba(120, 247, 255, 0.1), rgba(255, 79, 216, 0.04)),
      rgba(0, 0, 0, 0.3) !important;

    color: #bff8ff !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    letter-spacing: 0.04em !important;
    text-align: center !important;
    text-transform: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  #wvPerPage {
    appearance: none !important;
    -webkit-appearance: none !important;

    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;

    padding: 0 25px 0 12px !important;

    border: 1px solid rgba(120, 247, 255, 0.5) !important;
    background:
      linear-gradient(45deg, transparent 50%, #dffcff 50%) calc(100% - 15px) 50% / 7px 7px no-repeat,
      linear-gradient(135deg, #dffcff 50%, transparent 50%) calc(100% - 10px) 50% / 7px 7px no-repeat,
      linear-gradient(135deg, rgba(120, 247, 255, 0.13), rgba(255, 79, 216, 0.06)),
      rgba(24, 39, 43, 0.94) !important;

    color: #f2ffff !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    text-align: left !important;

    box-shadow:
      0 0 0 3px rgba(120, 247, 255, 0.08),
      0 0 16px rgba(120, 247, 255, 0.12) !important;
  }

  #wvPerPage option {
    background: #142124 !important;
    color: #eaffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }

  #wvPrevPage:focus-visible,
  #wvNextPage:focus-visible,
  #wvPerPage:focus-visible {
    outline: 2px solid rgba(120, 247, 255, 0.74) !important;
    outline-offset: 2px !important;
  }

  @media (max-width: 390px) {
    .wv-pagination,
    .wv-pagination-top {
      grid-template-columns: 38px minmax(64px, 1fr) 38px 82px !important;
      gap: 6px !important;
      padding: 6px !important;
    }

    #wvPrevPage,
    #wvNextPage {
      width: 38px !important;
      min-width: 38px !important;
      max-width: 38px !important;
    }

    #wvPerPage {
      width: 82px !important;
      min-width: 82px !important;
      max-width: 82px !important;
      font-size: 12px !important;
      padding-left: 9px !important;
    }

    #wvPageInfo {
      font-size: 13px !important;
    }
  }
}