/* ===================================================================
   VAN88 ELITE PORTAL - MOBILE & RESPONSIVE MASTER STYLESHEET
   Optimized for iOS, Android, Tablets & Modern Mobile Browsers
   =================================================================== */

/* -------------------------------------------------------------------
   1. LAPTOPS & TABLETS (MAX-WIDTH: 1200px)
   ------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .header-center-highlights {
    display: none;
  }
  .nav-link {
    font-size: 12.5px;
    padding: 11px 6px;
    gap: 4px;
  }
  .nav-link .nav-icon {
    font-size: 16px;
  }
  .game-grid-display {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* -------------------------------------------------------------------
   2. TABLETS PORTRAIT (MAX-WIDTH: 992px)
   ------------------------------------------------------------------- */
@media (max-width: 992px) {
  .header-quick-links {
    display: none;
  }
  .nav-link {
    font-size: 11.5px;
    padding: 10px 4px;
  }
}

/* -------------------------------------------------------------------
   3. MOBILE & PHABLETS (MAX-WIDTH: 900px)
   ------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Body bottom padding for fixed navigation */
  body {
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  }

  /* Header Top Row */
  .header-top-row {
    height: 60px;
    padding: 0 12px;
    gap: 10px;
  }

  .brand-identity {
    gap: 8px;
  }

  .brand-logo-svg {
    height: 38px;
  }

  /* Golden Mobile Hamburger Button */
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(240, 185, 11, 0.12);
    border: 1px solid rgba(240, 185, 11, 0.35);
    color: #ffd700;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
  }

  .mobile-nav-toggle:active {
    background: var(--gold-gradient);
    color: #0a0b10;
    transform: scale(0.95);
  }

  /* Row 2: Touch Horizontal App Scroll Bar */
  .header-nav-bar {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #090b13;
    border-bottom: 1px solid rgba(240, 185, 11, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  }

  .header-nav-bar::-webkit-scrollbar {
    display: none;
  }

  .header-nav-bar .container {
    padding: 0 8px;
    width: 100%;
    max-width: 100%;
  }

  .category-nav-wrap {
    width: max-content;
  }

  .main-nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    margin: 0;
    list-style: none;
    width: max-content;
  }

  .main-nav-menu li {
    flex: 0 0 auto;
    width: auto;
  }

  .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    font-size: 12.5px;
    font-weight: 700;
    color: #cbd5e1;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    transition: all 0.2s ease;
  }

  .nav-link.active {
    background: var(--gold-gradient);
    color: #0a0b10;
    border-color: transparent;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(240, 185, 11, 0.4);
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link .nav-icon {
    font-size: 15px;
  }

  .nav-badge-hot {
    top: -4px;
    right: -4px;
    font-size: 8.5px;
    padding: 1px 4px;
  }

  /* Hero Section Mobile */
  .hero-luxury-wrap {
    padding: 20px 0 25px;
  }

  .hero-grid-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-eyebrow {
    font-size: 11px;
    padding: 4px 10px;
    margin-bottom: 12px;
  }

  .hero-main-title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .hero-desc-lead {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  .hero-perks-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .hero-perks-row .perk-item:last-child {
    grid-column: span 2;
  }

  .perk-item {
    font-size: 12.5px;
    gap: 8px;
  }

  .perk-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .hero-cta-group {
    display: flex;
    gap: 10px;
  }

  .hero-cta-group .btn {
    flex: 1;
    padding: 12px 14px;
    font-size: 13.5px;
    text-align: center;
    justify-content: center;
  }

  /* Progressive Jackpot Box Mobile */
  .jackpot-gold-box {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .jackpot-counter-display {
    font-size: 25px;
    letter-spacing: 0.5px;
  }

  .jackpot-recent-winner {
    font-size: 12px;
    padding: 8px 10px;
  }

  /* Category Hub Section Mobile */
  .game-hub-section {
    padding: 25px 0;
  }

  .section-head-center {
    margin-bottom: 18px;
  }

  .section-title {
    font-size: 22px;
  }

  .section-desc {
    font-size: 13.5px;
  }

  .hub-nav-tabs {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 4px 2px 10px;
    margin-bottom: 18px;
  }

  .hub-nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .hub-tab-btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 12.5px;
    border-radius: 20px;
    white-space: nowrap;
  }

  /* Game Grid: 2 Columns Compact Mobile */
  .game-grid-display {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .game-elite-card {
    padding: 12px 10px;
    border-radius: var(--radius-sm);
  }

  .game-thumb-svg {
    height: 72px;
    font-size: 34px;
    border-radius: 8px;
    margin-bottom: 8px;
  }

  .card-game-title {
    font-size: 13.5px;
    margin-bottom: 3px;
    line-height: 1.3;
  }

  .card-game-provider {
    font-size: 10.5px;
    margin-bottom: 6px;
  }

  .card-game-desc {
    display: none; /* Hide description on mobile cards to keep uniform grid */
  }

  .btn-card-action {
    padding: 8px 10px;
    font-size: 11.5px;
    width: 100%;
    text-align: center;
    margin-top: auto;
  }

  .card-top-status {
    margin-bottom: 6px;
  }

  .badge-tag {
    font-size: 9px;
    padding: 2px 6px;
  }

  .rtp-val {
    font-size: 9.5px;
  }

  /* SEO Article Mobile Styles */
  .seo-article-wrapper {
    padding: 20px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
  }

  .seo-article-wrapper h1 {
    font-size: 21px;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .seo-article-wrapper h2 {
    font-size: 18px;
    margin: 24px 0 10px;
    line-height: 1.35;
    padding-bottom: 6px;
  }

  .seo-article-wrapper h3 {
    font-size: 16px;
    margin: 18px 0 8px;
  }

  .seo-article-wrapper p {
    font-size: 14.5px;
    line-height: 1.75;
    margin-bottom: 14px;
  }

  .seo-article-wrapper ul,
  .seo-article-wrapper ol {
    padding-left: 20px;
    margin: 12px 0 16px;
    font-size: 14px;
  }

  .toc-luxury-box {
    padding: 14px 16px;
    margin: 18px 0;
    border-radius: 8px;
  }

  .toc-title {
    font-size: 14.5px;
    margin-bottom: 10px;
  }

  .toc-list a {
    font-size: 13.5px;
    padding: 4px 0;
  }

  .alert-gold-box,
  .alert-ruby-box {
    padding: 12px 14px;
    font-size: 13.5px;
    margin: 16px 0;
    border-radius: 6px;
  }

  /* Data Tables Horizontal Scroll */
  .table-responsive {
    margin: 16px 0;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }

  .table-luxury {
    font-size: 12.5px;
  }

  .table-luxury th,
  .table-luxury td {
    padding: 9px 10px;
    white-space: normal;
  }

  /* Desktop Dock Hide */
  .floating-action-dock {
    display: none !important;
  }

  /* Mobile Bottom Bar Fixed */
  .mobile-bottom-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 12, 19, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(240, 185, 11, 0.25);
    z-index: 1500;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0 6px;
  }

  .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10.5px;
    color: #94a3b8;
    gap: 3px;
    font-weight: 700;
    transition: var(--transition);
  }

  .mob-nav-item.active {
    color: #ffd700;
  }

  .mob-nav-item .mob-icon {
    font-size: 19px;
  }

  .mob-nav-item.highlight {
    position: relative;
    top: -10px;
  }

  .mob-nav-item.highlight .mob-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #0a0b10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.6);
  }

  /* Footer Mobile */
  .site-footer {
    padding: 35px 0 25px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
  }

  .footer-col-title {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .footer-links-list li {
    margin-bottom: 8px;
  }

  .footer-links-list a {
    font-size: 13.5px;
  }

  .footer-bottom-line {
    font-size: 12px;
    text-align: center;
  }
}

/* -------------------------------------------------------------------
   4. SLIDE-IN MOBILE DRAWER PANEL & BACKDROP
   ------------------------------------------------------------------- */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 310px;
  max-width: 86vw;
  background: #0b0d16;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(240, 185, 11, 0.25);
  overflow: hidden;
}

.mobile-drawer-panel.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #07080f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-brand-link {
  display: flex;
  align-items: center;
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.drawer-close-btn:active {
  background: var(--ruby-primary);
  color: #fff;
}

.drawer-auth-card {
  padding: 14px 16px;
  background: rgba(240, 185, 11, 0.06);
  border-bottom: 1px solid rgba(240, 185, 11, 0.15);
}

.drawer-auth-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.drawer-auth-desc {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 10px;
}

.drawer-auth-actions {
  display: flex;
  gap: 8px;
}

.drawer-auth-actions .btn {
  flex: 1;
  padding: 8px 10px;
  font-size: 12px;
  text-align: center;
  justify-content: center;
}

.drawer-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px 25px;
  -webkit-overflow-scrolling: touch;
}

.drawer-group-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 8px 6px;
}

.drawer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-nav-list li {
  margin-bottom: 4px;
}

.drawer-nav-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #cbd5e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
  position: relative;
}

.drawer-nav-list a:active,
.drawer-nav-list a.active {
  background: rgba(240, 185, 11, 0.15);
  color: #ffd700;
  font-weight: 700;
}

.drawer-nav-list.secondary a {
  font-size: 12.5px;
  color: #94a3b8;
}

.drawer-icon {
  font-size: 17px;
  line-height: 1;
}

.drawer-text {
  flex: 1;
}

.drawer-support-box {
  margin-top: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 12px;
}

.support-title {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.support-item {
  color: #cbd5e1;
  margin-bottom: 4px;
}

/* -------------------------------------------------------------------
   5. COMPACT SMARTPHONES (MAX-WIDTH: 600px)
   ------------------------------------------------------------------- */
@media (max-width: 600px) {
  .top-notice-bar {
    display: none;
  }

  .header-top-row {
    height: 56px;
  }

  .brand-logo-svg {
    height: 35px;
  }

  .header-actions .btn-login {
    display: none;
  }

  .header-actions .btn-register {
    padding: 7px 12px;
    font-size: 11.5px;
  }

  .hero-main-title {
    font-size: 21px;
  }

  .jackpot-counter-display {
    font-size: 22px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .game-grid-display {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* -------------------------------------------------------------------
   6. EXTRA SMALL PHONES (MAX-WIDTH: 380px)
   ------------------------------------------------------------------- */
@media (max-width: 380px) {
  .brand-logo-svg {
    height: 30px;
  }

  .mobile-nav-toggle {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .header-actions .btn-register {
    padding: 6px 10px;
    font-size: 11px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 12px;
  }

  .game-grid-display {
    gap: 8px;
  }

  .game-elite-card {
    padding: 10px 8px;
  }

  .game-thumb-svg {
    height: 60px;
    font-size: 28px;
  }

  .card-game-title {
    font-size: 12.5px;
  }

  .btn-card-action {
    padding: 6px 8px;
    font-size: 10.5px;
  }
}
