/**
 * Food Lion Weekly Catalog Viewer Styles
 * Domain: foodlionweeklydeals.us
 */

.fl-catalog-wrapper {
  background: var(--color-surface, #FFFFFF);
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  margin: 32px 0 40px;
  overflow: hidden;
}

.fl-catalog-header {
  background: linear-gradient(135deg, #0B2545 0%, #17375E 100%);
  color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.fl-catalog-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fl-catalog-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: #FFFFFF;
}

.fl-catalog-badge {
  background-color: #D97706;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fl-catalog-meta {
  font-size: 0.85rem;
  color: #CBD5E1;
}

.fl-catalog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fl-btn-viewer {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.fl-btn-viewer:hover {
  background: #FFFFFF;
  color: #0B2545 !important;
}

/* Responsive Iframe Container */
.fl-iframe-container {
  position: relative;
  width: 100%;
  height: 820px;
  background-color: #F8FAFC;
}

.fl-catalog-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Fullscreen mode */
.fl-catalog-wrapper.is-fullscreen {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 99999;
  border-radius: 0;
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.fl-catalog-wrapper.is-fullscreen .fl-iframe-container {
  flex: 1;
  height: calc(100vh - 65px);
}

/* Notice Bar below viewer */
.fl-catalog-notice {
  background: #FEF3C7;
  border-top: 1px solid #FCD34D;
  padding: 10px 20px;
  color: #78350F;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.fl-catalog-notice a {
  color: #92400E;
  text-decoration: underline;
  font-weight: 600;
}

/* Local Gallery Slider Mode */
.fl-gallery-container {
  padding: 24px;
  text-align: center;
  background: #F1F5F9;
}

.fl-gallery-slide-wrap {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  background: #FFFFFF;
}

.fl-gallery-img {
  width: 100%;
  height: auto;
  display: block;
}

.fl-gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11, 37, 69, 0.85);
  color: #FFFFFF;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.fl-gallery-nav-btn:hover {
  background: #0B2545;
}

.fl-gallery-prev { left: 16px; }
.fl-gallery-next { right: 16px; }

.fl-gallery-footer {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0F172A;
}

@media (max-width: 768px) {
  .fl-iframe-container {
    height: 580px;
  }
  .fl-catalog-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
