/* ==========================================================================
   PRINCESTARS WORLD - RESPONSIVE & MOBILE-FIRST STYLES
   Breakpoints: 1200px (Desktop), 992px (Tablet Land), 768px (Tablet Port), 576px (Mobile)
   ========================================================================== */

/* --- Mobile Navigation Drawer --- */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid var(--border-glass-bright);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 24px;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.mobile-nav-item-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: 4px;
  padding-left: 10px;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
}

.mobile-link:hover, .mobile-link.active {
  background: var(--bg-tertiary);
  border-color: var(--primary-glow);
  color: var(--primary-glow);
}

.mobile-link i {
  font-size: 1.1rem;
  color: var(--accent-cyan);
}

.mobile-drawer-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Breakpoint: max-width 1200px --- */
@media (max-width: 1200px) {
  :root {
    --container-max: 1080px;
  }

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

  .hero-carousel-wrap {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
  }

  .nav-menu {
    gap: 2px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 0.88rem;
  }
}

/* --- Breakpoint: max-width 992px (Tablets) --- */
@media (max-width: 992px) {
  .nav-menu, .nav-auth-buttons {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .ribbon-content {
    justify-content: center;
    text-align: center;
  }

  .news-grid-container.hero-mode .news-card.featured-card {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }

  .cta-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .footer-social-band {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* --- Breakpoint: max-width 768px (Mobile Landscapes & Large Phones) --- */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .top-info-ribbon {
    font-size: 0.78rem;
  }

  .ribbon-left, .ribbon-right {
    gap: 8px;
    justify-content: center;
    width: 100%;
  }

  .hero-section {
    padding: 30px 0 25px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-search-box {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: var(--radius-lg);
  }

  .hero-search-btn {
    width: 100%;
    justify-content: center;
  }

  .news-nav-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .news-category-pills {
    width: 100%;
  }

  .news-tools-bar {
    justify-content: space-between;
    width: 100%;
  }

  .news-grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .products-grid, .tools-grid, .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .legal-links {
    justify-content: center;
  }

  .back-to-top-btn {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }

  .toast-notification {
    left: 20px;
    right: 20px;
    bottom: 20px;
    text-align: center;
    justify-content: center;
  }
}

/* --- Breakpoint: max-width 480px (Compact Mobile) --- */
@media (max-width: 480px) {
  .brand-name {
    font-size: 1.15rem;
  }

  .brand-tagline {
    display: none;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .slide-title {
    font-size: 1.25rem;
  }

  .hero-slide {
    padding: 18px;
  }

  .modal-dialog {
    max-height: 92vh;
  }

  .lang-grid-list {
    grid-template-columns: 1fr;
  }

  .ticker-wrap {
    gap: 10px;
  }

  .ticker-badge {
    padding: 4px 10px;
    font-size: 0.72rem;
  }

  .ticker-item {
    font-size: 0.82rem;
  }
}
