/* ============================================================
   ROYALVEGAS WordPress Theme - Responsive Stylesheet
   ============================================================ */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .container { max-width: 100%; padding: 0 20px; }
    .header-time { display: none; }
    .nav-link { padding: 12px 8px; font-size: 11px; }
    .hero-brand-title { font-size: 36px; letter-spacing: 5px; }
    .hero-crown-icon { font-size: 60px; }
    .hero-slider .swiper-slide img { height: 250px; }
    .shield-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .shield-shape { width: 80px; height: 96px; font-size: 26px; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .poster-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-columns-grid { grid-template-columns: repeat(2, 1fr); }
    .content-area { flex-direction: column; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .floating-sidebar { right: 8px; }
    .sidebar-btn { width: 44px; height: 44px; font-size: 16px; }
    .sidebar-label { display: none; }
    .download-app-title { font-size: 24px; }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .site-header { position: relative; }
    .header-top { flex-direction: column; gap: 10px; padding: 12px 0; }
    .header-btn-group { width: auto; justify-content: center; }
    .header-time { display: none; }

    .main-navigation { padding: 0; }
    .mobile-menu-toggle { display: block; width: 100%; text-align: center; padding: 10px; border: none; border-bottom: 1px solid #4a2090; }
    .nav-menu { display: none; flex-direction: column; width: 100%; max-height: 60vh; overflow-y: auto; }
    .nav-menu.active { display: flex; }
    .nav-link { padding: 10px 15px; font-size: 13px; border-bottom: 1px solid #1A0533; }

    .hero-royal { padding: 50px 0 40px; }
    .hero-crown-icon { font-size: 50px; }
    .hero-brand-title { font-size: 28px; letter-spacing: 3px; }
    .hero-brand-subtitle { font-size: 13px; letter-spacing: 2px; }
    .hero-brand-desc { font-size: 14px; }
    .btn-cta-primary, .btn-cta-secondary { padding: 12px 24px; font-size: 14px; }

    .hero-slider .swiper-slide img { height: 180px; }
    .hero-slider .swiper-button-next, .hero-slider .swiper-button-prev { display: none; }

    .crown-title h2 { font-size: 18px; }
    .crown-title { padding-top: 30px; }

    .shield-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .shield-shape { width: 70px; height: 84px; font-size: 22px; }
    .shield-name { font-size: 10px; }

    .article-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .download-app-wrapper { padding: 30px 15px; }
    .download-app-title { font-size: 20px; }
    .download-app-buttons { flex-direction: column; align-items: center; }
    .download-app-btn { width: 100%; justify-content: center; }

    .footer-columns-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-bottom { text-align: center; }

    .single-article { padding: 20px 15px; }
    .article-title { font-size: 22px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }

    .notification-content { font-size: 12px; gap: 30px; }

    .floating-sidebar { right: 5px; gap: 4px; }
    .sidebar-btn { width: 42px; height: 42px; font-size: 14px; border-radius: 8px; }
    .sidebar-label { display: none; }

    .provider-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 15px; }
    .provider-tab { flex-shrink: 0; }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container { padding: 0 10px; }
    .btn-login, .btn-register, .btn-demo { padding: 6px 12px; font-size: 12px; }
    .logo img { max-height: 35px; }

    .hero-royal { padding: 40px 0 30px; }
    .hero-crown-icon { font-size: 40px; }
    .hero-brand-title { font-size: 22px; letter-spacing: 2px; }
    .hero-brand-subtitle { font-size: 11px; }
    .hero-cta-group { flex-direction: column; align-items: center; }
    .btn-cta-primary, .btn-cta-secondary { width: 100%; text-align: center; }

    .shield-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .shield-shape { width: 60px; height: 72px; font-size: 18px; }

    .poster-grid { grid-template-columns: 1fr; }
    .poster-item img { height: 160px; }

    .related-grid { grid-template-columns: 1fr; }

    .nav-links a, .nav-links .current, .nav-links span.page-numbers { min-width: 32px; height: 32px; padding: 6px 10px; font-size: 13px; }

    .floating-sidebar { bottom: 80px; top: auto; transform: none; right: 5px; }
    .sidebar-btn { width: 38px; height: 38px; font-size: 12px; }

    .notification-bar { padding: 6px 0; }
    .notification-content { font-size: 11px; gap: 20px; }

    .single-article { padding: 15px 12px; }
    .article-title { font-size: 20px; }

    .footer-col h4 { font-size: 13px; }
    .footer-copyright { font-size: 12px; }

    .crown-title h2 { font-size: 16px; letter-spacing: 2px; }
    .crown-title::before { font-size: 24px; }
}

/* === Mobile Optimization Additions === */
@media (max-width: 768px) {
  .nav-link, .btn-login, .btn-register, .btn-demo,
  a, button, .sidebar-btn {
    min-height: 44px;
    min-width: 44px;
  }
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  body {
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
  }
  img {
    max-width: 100%;
    height: auto;
  }
  .site-footer {
    padding-bottom: env(safe-area-inset-bottom, 20px);
  }
  .site-header {
    padding-top: env(safe-area-inset-top, 0px);
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  .article-card {
    margin-bottom: 20px;
  }
  .content-area {
    padding: 10px;
  }
}
@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }
  h1, .hero-title {
    font-size: 24px !important;
  }
  h2 {
    font-size: 20px !important;
  }
}
