/* =========================
   Hero Grid Layout CSS
   Clean structure for mobile-first design
   ========================= */

/* Hero Grid Container - Desktop Default */
.hero-grid-mode {
  width: 100%;
  max-width: 100vw;
  background: #f8fafc;
  padding: 16px 0 16px 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

.hero-grid-mode .hero-grid-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  height: 400px;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Slider Section */
.hero-grid-mode .hero-slider-section {
  border-radius: 12px;
  position: relative;
  height: 100%;
  width: 100%;
  max-width: 100%;
  max-height: 400px;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-grid-mode .hero-slider {
  height: 100%;
  width: 100%;
  max-width: 100%;
  position: relative;
  box-sizing: border-box;
}

.hero-grid-mode .hero-slides {
  height: 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-grid-mode .hero-slide {
  height: 400px;
  width: 100%;
  max-width: 100%;
  display: none;
  opacity: 0;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 12px;
}

.hero-grid-mode .hero-slide.is-active {
  display: flex !important;
  opacity: 1;
}

/* Static Section */
.hero-grid-mode .hero-static-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow: hidden;
}

/* =========================
   Navigation & Controls
   ========================= */

/* Progress Bar */
.hero-grid-mode .hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 9;
}

/* Navigation Buttons */
.hero-grid-mode .hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  transition: all 0.3s ease;
}

.hero-grid-mode .hero-slider:hover .hero-nav {
  opacity: 1;
}

.hero-grid-mode .hero-nav.prev { left: 12px; }
.hero-grid-mode .hero-nav.next { right: 12px; }

/* Dots Navigation */
.hero-grid-mode .hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 9;
}

.hero-grid-mode .hero-dot {
  width: 15px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.hero-grid-mode .hero-dot.is-active {
  background: #f59e0b;
}

/* =========================
   Static Banners
   ========================= */
.static-banners {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.static-banner {
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 120px;
}

/* Click & Pick Up Banner - Red Theme */
.banner-clickpick {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
}

.banner-clickpick .banner-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.banner-clickpick .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.banner-clickpick .logo-main {
  font-weight: 700;
  font-size: 14px;
}

.banner-clickpick .logo-sub {
  font-weight: 700;
  font-size: 14px;
}

.banner-clickpick .logo-domain {
  font-size: 10px;
  opacity: 0.9;
}

.banner-clickpick h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 4px 0;
  line-height: 1.2;
}

.banner-clickpick .promo-text {
  background: #fbbf24;
  color: #000;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  margin: 4px 0 8px 0;
}

/* Gak Pake Mahal Banner - Green Theme */
.banner-gakpakemahal {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
}

.banner-gakpakemahal .promo-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.banner-gakpakemahal .star {
  font-size: 16px;
}

.banner-gakpakemahal .plazait-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.banner-gakpakemahal .logo-text {
  background: white;
  color: #dc2626;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
}

.banner-gakpakemahal .logo-addon {
  font-size: 10px;
  margin-top: 2px;
  opacity: 0.9;
}

.banner-gakpakemahal .promo-title {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0 8px 0;
  color: #fbbf24;
}

/* Plaza IT Protect Banner - Yellow Theme */
.banner-plazaitprotect {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
}

.banner-plazaitprotect .plazaitprotect-logo {
  margin-bottom: 4px;
}

.banner-plazaitprotect .plaza-text {
  font-weight: 600;
  font-size: 18px;
}

.banner-plazaitprotect .protect-text {
  font-weight: 700;
  font-size: 18px;
}

.banner-plazaitprotect .tagline {
  font-size: 12px;
  margin: 4px 0 8px 0;
  font-weight: 500;
}

/* Banner buttons */
.banner-btn {
  background: rgba(0,0,0,0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.3);
}

.banner-btn:hover {
  background: rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

.banner-plazaitprotect .banner-btn {
  background: rgba(0,0,0,0.15);
  color: #000;
  border-color: rgba(0,0,0,0.2);
}

.banner-plazaitprotect .banner-btn:hover {
  background: rgba(0,0,0,0.25);
}

/* =========================
   Responsive Design - Mobile First
   ========================= */

/* Mobile View - Stack Layout */
@media (max-width: 768px) {
  .hero-grid-mode {
    padding: 12px;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .hero-grid-mode .hero-grid-container {
    grid-template-columns: 1fr;
    gap: 12px;
    height: auto;
    width: 100%;
    max-width: calc(100vw - 24px); /* viewport - (padding kiri + kanan) */
    overflow-x: hidden;
  }
  
  /* Slider Section - Mobile */
  .hero-grid-mode .hero-slider-section {
    min-height: 400px;
    max-height: 550px;
    width: 100%;
    max-width: calc(100vw - 24px); /* Same as container */
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 12px;
  }
  
  .hero-grid-mode .hero-slider {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .hero-grid-mode .hero-slides {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .hero-grid-mode .hero-slide {
    height: auto;
    min-height: 400px;
    max-height: 550px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 12px;
  }
  
  /* Hide nav buttons on mobile */
  .hero-grid-mode .hero-nav {
    display: none;
  }
  
  /* Static Banners - Horizontal Scroll */
  .static-banners {
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  
  .static-banner {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-grid-mode {
    padding: 8px;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .hero-grid-mode .hero-grid-container {
    gap: 8px;
    width: 100%;
    max-width: calc(100vw - 16px); /* viewport - (padding 8px x 2) */
    overflow-x: hidden;
  }
  
  .hero-grid-mode .hero-slider-section {
    width: 100%;
    max-width: calc(100vw - 16px); /* Same as container */
    overflow: hidden;
    border-radius: 12px;
  }
  
  .hero-grid-mode .hero-slider {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .hero-grid-mode .hero-slides {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .hero-grid-mode .hero-slide {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-sizing: border-box;
  }
  
  .static-banner {
    flex: 0 0 260px;
  }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
  .hero-grid-mode {
    padding: 6px;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .hero-grid-mode .hero-grid-container {
    gap: 6px;
    width: 100%;
    max-width: calc(100vw - 12px); /* viewport - (padding 6px x 2) */
    overflow-x: hidden;
  }
  
  .hero-grid-mode .hero-slider-section {
    width: 100%;
    max-width: calc(100vw - 12px); /* Same as container */
    overflow: hidden;
    border-radius: 12px;
  }
  
  .hero-grid-mode .hero-slider {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .hero-grid-mode .hero-slides {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .hero-grid-mode .hero-slide {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-sizing: border-box;
  }
  
  .static-banner {
    flex: 0 0 240px;
  }
}