/* ==========================================================================
   ULASIN - Responsive Layout & Breakpoint Styles
   Precision fluid breakpoints from 1920px down to 320px
   ========================================================================== */

/* Ultra Wide Desktops (1440px+) */
@media (min-width: 1440px) {
  .hero-headline {
    font-size: 3.75rem;
  }
  .editor-workspace {
    grid-template-columns: 480px 1fr;
    gap: 40px;
  }
}

/* Standard Desktops / Laptops (1200px) */
@media (max-width: 1200px) {
  .hero-headline {
    font-size: 2.85rem;
  }
  .editor-workspace {
    grid-template-columns: 420px 1fr;
    gap: 24px;
  }
  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
  /* Navbar Collapse Drawer */
  .navbar-ulasin .navbar-collapse {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-floating);
    border: 1px solid var(--color-border);
    padding: 20px;
    margin-top: 14px;
  }

  .navbar-ulasin .navbar-nav {
    flex-direction: column;
    align-items: stretch !important;
    gap: 6px;
  }

  .navbar-ulasin .nav-link {
    padding: 10px 14px !important;
    border-radius: var(--radius-sm);
  }

  /* Hero Section Single Column */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }

  .hero-headline-title {
    font-size: 2.45rem;
  }

  .hero-headline-sub {
    font-size: 1.75rem;
    justify-content: center;
  }

  .hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subheadline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-trust-list {
    justify-content: center;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .support-creator-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  /* Editor Workspace 1 Column */
  .editor-workspace {
    grid-template-columns: 100%;
    gap: 32px;
    width: 100%;
    min-width: 0;
  }

  .editor-sidebar-panel,
  .editor-preview-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .preview-viewport {
    padding: 24px 12px;
    min-height: auto;
  }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
  .hero-section {
    padding: 52px 0 68px 0;
  }

  .hero-headline {
    font-size: 2.25rem;
  }

  .hero-headline-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .hero-headline-sub {
    font-size: 1.35rem;
    justify-content: center;
    gap: 6px;
  }

  .hero-star-icon {
    width: 18px;
    height: 18px;
  }

  .hero-subheadline {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-process-strip {
    font-size: 0.75rem;
    padding: 6px 12px;
    gap: 6px;
  }

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

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

  .hero-poster-mockup {
    width: 290px;
    padding: 20px 16px;
  }

  .floating-review-bubble {
    top: -10px;
    right: -6px;
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .floating-qr-bubble {
    bottom: -10px;
    left: -6px;
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .steps-grid,
  .showcase-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .tutorial-banner .btn {
    width: 100%;
    justify-content: center;
  }

  .editor-section {
    padding: 36px 0 64px 0;
  }

  .editor-sidebar-panel {
    padding: 16px 14px;
  }

  .editor-tabs-nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 3px;
  }

  .editor-tab-btn {
    padding: 6px 2px;
    font-size: 0.6875rem;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    min-width: 0;
  }

  .editor-tab-btn i {
    width: 14px;
    height: 14px;
  }

  .input-text,
  .input-select {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    min-height: 44px;
  }

  .url-action-buttons-row {
    flex-direction: column;
  }

  .btn-demo-beliaza-strip {
    width: 100%;
    justify-content: center;
  }

  .color-picker-row {
    grid-template-columns: 1fr;
  }

  .template-grid-scroll {
    grid-template-columns: 1fr;
    max-height: 320px;
  }

  .preview-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .preview-toolbar-right {
    justify-content: space-between;
    width: 100%;
  }

  .preview-export-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .export-btns-left,
  .export-btns-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .export-btns-left .btn,
  .export-btns-right .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .support-creator-section {
    padding: 64px 0;
  }

  .creator-profile-card,
  .qris-support-card {
    padding: 24px 18px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-signature {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .signature-sep {
    display: none;
  }

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

/* Compact Smartphones (max-width: 390px) */
@media (max-width: 390px) {
  .hero-headline {
    font-size: 1.95rem;
  }

  .hero-headline-title {
    font-size: 1.65rem;
  }

  .hero-headline-sub {
    font-size: 1.2rem;
  }

  .hero-poster-mockup {
    width: 270px;
  }

  .editor-tab-btn span {
    font-size: 0.625rem;
  }
}

/* Ultra-Compact Smartphones (max-width: 359px) */
@media (max-width: 359px) {
  .hero-headline {
    font-size: 1.75rem;
  }

  .hero-headline-title {
    font-size: 1.45rem;
  }

  .hero-headline-sub {
    font-size: 1.1rem;
  }

  .hero-poster-mockup {
    width: 250px;
    padding: 16px 12px;
  }

  .mockup-qr-img {
    width: 110px;
    height: 110px;
  }
}
