/*
 * Yanai Calendar - Daily Calendars Styles
 * Upgraded with enlarged prominent sticky navigation, zero-waste full-width gallery,
 * and responsive fast-switching controls.
 */

/* ==========================================
   ENLARGED & PROMINENT STICKY SIDEBAR NAVIGATION
   ========================================== */
.daily-detail-layout {
  display: flex;
  gap: 2.25rem;
  align-items: flex-start;
  width: 100%;
}

.daily-sticky-sidebar {
  width: 290px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
  background: #ffffff;
  border-radius: 0;
  border: 1.5px solid var(--color-border-lavender);
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
  padding: 1.5rem 1.25rem;
  z-index: 30;
}

.daily-detail-main {
  flex: 1;
  min-width: 0;
}

.sidebar-sticky-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-header-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.95rem;
  background: rgba(6, 182, 212, 0.12);
  color: var(--color-secondary);
  border-radius: 0;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sidebar-group-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: 0 0.5rem 0.2rem;
}

.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-radius: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-text-body);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.sidebar-nav-item:hover {
  background: var(--color-secondary-light);
  color: var(--color-secondary);
  border-color: rgba(6, 182, 212, 0.25);
  transform: translateX(4px);
}

.sidebar-nav-item.active {
  background: var(--gradient-primary);
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.25);
  border-color: transparent;
}

.sidebar-support-card {
  background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 0;
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.support-card-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.support-card-text {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.45;
  margin: 0;
}

.support-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.support-btn-call,
.support-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.support-btn-call {
  background: #ffffff;
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.support-btn-call:hover {
  background: #0284c7;
  color: #ffffff;
}

.support-btn-wa {
  background: #22c55e;
  color: #ffffff;
}

.support-btn-wa:hover {
  background: #16a34a;
}

.sidebar-cta-box {
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(10, 37, 64, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sidebar-all-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-decoration: none;
  text-align: center;
  padding: 0.35rem 0;
}

.sidebar-all-link:hover {
  text-decoration: underline;
}

/* ==========================================
   FULL-WIDTH DESIGNS GALLERY (NO LEFT WHITE SPACE)
   ========================================== */
.designs-gallery-section.full-width-gallery {
  width: 100%;
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 2px solid rgba(6, 182, 212, 0.25);
}

.gallery-sticky-size-nav {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--color-border-lavender);
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(10, 37, 64, 0.08);
  padding: 0.65rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gallery-sticky-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}

.gallery-sticky-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.gallery-size-pill {
  padding: 0.35rem 0.85rem;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-body);
  background: #f8fafc;
  border: 1px solid var(--color-border-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

.gallery-size-pill:hover {
  background: var(--color-secondary-light);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.gallery-size-pill.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.25);
}

.gallery-size-pill.gold-pill {
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.3);
  background: #fffbeb;
}

.gallery-size-pill.gold-pill:hover {
  background: #d97706;
  color: #ffffff;
}

.gallery-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.gallery-section-title {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 800;
}

.gallery-section-sub {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
}

.gallery-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-secondary);
  border-radius: var(--border-radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

@media (max-width: 991px) {
  .daily-detail-layout {
    flex-direction: column;
    gap: 1.5rem;
  }
  .daily-sticky-sidebar {
    width: 100%;
    position: relative;
    top: 0;
    padding: 1.25rem 1rem;
    border-radius: 0;
  }
  .sidebar-sticky-inner {
    flex-direction: column;
    gap: 1rem;
  }
  .sidebar-nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .gallery-sticky-size-nav {
    border-radius: 0;
    top: 65px;
  }
}

/* ==========================================================================
   DAILY THEME - PHOTO COLLAGE MOSAIC BANNER
   Overrides the generic dotted .banner-matrix-grid (common.css) on every
   theme-daily page (listing + all 6 size-detail pages) with a real tiled
   mosaic of calendar design photos behind a color-wash gradient, so text
   stays readable while the backdrop shows the actual product range.
   ========================================================================== */
.theme-daily .banner-matrix-grid {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  background-image: none;
  opacity: 1;
  overflow: hidden;
  transform: scale(1.15) rotate(-1.25deg);
  z-index: 0;
}

.theme-daily .banner-matrix-grid img {
  flex: 1 1 110px;
  height: 140px;
  min-width: 90px;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: saturate(1.05);
}

.theme-daily .banner-matrix-grid::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(120deg, var(--bg-hero, #a12999) 18%, rgba(161, 41, 153, 0.82) 52%, rgba(70, 8, 65, 0.94) 100%);
  z-index: 1;
}

@media (max-width: 767px) {
  .theme-daily .banner-matrix-grid img {
    flex-basis: 80px;
    height: 100px;
    min-width: 70px;
  }
}

/* ==========================================================================
   DAILY HERO BANNER (FRESH MINIMAL SPLIT LAYOUT - IMAGE-LED, NO CARD CHROME)
   ========================================================================== */
.daily-hero-banner {
  background: var(--bg-hero, #a12999);
  color: #ffffff;
  height: var(--banner-height, 420px);
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.daily-hero-banner .container {
  width: 100%;
  position: relative;
  z-index: 5;
}

.daily-hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.daily-hero-text {
  flex: 1 1 380px;
  max-width: 460px;
}

.daily-hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.6rem;
}

.daily-hero-text h1 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.daily-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--bg-hero, #a12999);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.35);
}

.daily-hero-btn:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.4);
}

.daily-hero-gallery {
  position: relative;
  flex: 1 1 360px;
  max-width: 420px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  position: absolute;
  border-radius: 0;
  object-fit: cover;
  /* drop-shadow follows the image shape (die-cut / transparent edges),
     so no rectangular ghost shadow shows around the cards */
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.35));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-photo-a {
  width: 180px;
  height: 240px;
  transform: rotate(-9deg) translate(-84px, 6px);
  z-index: 1;
}

.hero-photo-b {
  width: 180px;
  height: 240px;
  transform: rotate(8deg) translate(84px, -6px);
  z-index: 1;
}

.hero-photo-c {
  width: 220px;
  height: 280px;
  transform: translateY(0);
  z-index: 2;
}

.daily-hero-gallery:hover .hero-photo-a {
  transform: rotate(-12deg) translate(-92px, 0);
}

.daily-hero-gallery:hover .hero-photo-b {
  transform: rotate(11deg) translate(92px, 0);
}

.daily-hero-gallery:hover .hero-photo-c {
  transform: translateY(-8px);
}

/* Snug catalog top padding immediately after hero banner */
#daily-catalog {
  padding-top: 2rem;
}

@media (max-width: 991px) {
  .daily-hero-banner {
    height: var(--banner-height-tablet, 340px);
  }

  .daily-hero-flex {
    gap: 1.5rem;
  }

  .daily-hero-gallery {
    max-width: 340px;
    height: 190px;
  }

  .hero-photo-a,
  .hero-photo-b {
    width: 120px;
    height: 150px;
  }

  .hero-photo-a {
    transform: rotate(-9deg) translate(-66px, 6px);
  }

  .hero-photo-b {
    transform: rotate(8deg) translate(66px, -6px);
  }

  .hero-photo-c {
    width: 150px;
    height: 180px;
  }
}

@media (max-width: 600px) {
  .daily-hero-banner {
    height: auto;
    min-height: var(--banner-height-mobile, 240px);
    padding: 1.75rem 0;
  }

  .daily-hero-flex {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 1.25rem;
  }

  .daily-hero-text {
    flex: none;
    max-width: 100%;
  }

  .daily-hero-text h1 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .daily-hero-gallery {
    flex: none;
    width: 100%;
    max-width: 280px;
    height: 150px;
    margin: 0 auto;
  }

  .hero-photo-a,
  .hero-photo-b {
    width: 82px;
    height: 112px;
  }

  .hero-photo-a {
    transform: rotate(-8deg) translate(-50px, 6px);
  }

  .hero-photo-b {
    transform: rotate(7deg) translate(50px, -6px);
  }

  .hero-photo-c {
    width: 96px;
    height: 130px;
  }
}



/* ==========================================
   Daily Calendar Pages: Image Borders
   Only the Deluxe Real Art calendars (10x15,
   12x18) get a thin black border on their
   product/design images. Other daily calendar
   types (Fancy Die-Cut, Gold, Slip & Panchagam)
   do not.
   ========================================== */
body.theme-daily-deluxe main img,
body.theme-daily #dlx-section img {
  border: 1px solid #000;
}

/* Exclude hero/banner imagery from the border above */
body.theme-daily-deluxe main .banner-matrix-grid img,
body.theme-daily-deluxe main .hero-photo,
body.theme-daily-deluxe main .banner-stage-img {
  border: none;
}

/* Lightbox popup image (opened full view) keeps the border
   only on the Deluxe Real Art pages */
body.theme-daily-deluxe .lightbox-img {
  border: 1px solid #000;
}

/* Remove the white background/padding box behind the lightbox image
   so only the image (with its black border) shows on the dark backdrop.
   Gold 12x18 uses its own no-box rule in common.css (lb-theme-daily-gold). */
body.theme-daily:not(.theme-daily-gold) .lightbox-zoom-layer {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}
