/* ==========================================================================
   Dr. Weight Loss of Atlanta - Google Review Carousel Embed Styling
   Branded design system with Teal (#397C97 / #1ABC9C), Navy (#0C1115),
   Google Gold (#FFB800), and cutting-edge card micro-interactions.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Brand Palette */
  --dwl-teal-primary: #397C97;
  --dwl-teal-bright: #1ABC9C;
  --dwl-teal-dark: #204147;
  --dwl-teal-light: #EBF5F8;
  --dwl-teal-glow: rgba(26, 188, 156, 0.25);
  
  --dwl-navy-deep: #0C1115;
  --dwl-navy-slate: #1E293B;
  --dwl-text-main: #2C3E50;
  --dwl-text-muted: #64748B;
  --dwl-text-light: #94A3B8;
  
  --google-gold: #FFB800;
  --google-blue: #4285F4;
  --google-green: #34A853;
  --google-red: #EA4335;

  /* Card & Surface Tokens - Tight/Close Shadows */
  --card-bg: #FFFFFF;
  --card-border: rgba(57, 124, 151, 0.18);
  --card-shadow: 0 2px 8px rgba(12, 17, 21, 0.05), 0 1px 3px rgba(57, 124, 151, 0.06);
  --card-shadow-hover: 0 4px 14px rgba(57, 124, 151, 0.12), 0 2px 6px rgba(12, 17, 21, 0.06);

  /* Radius & Transitions */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Theme Overrides */
[data-theme="dark"] {
  --card-bg: #151D24;
  --card-border: rgba(26, 188, 156, 0.2);
  --dwl-text-main: #F1F5F9;
  --dwl-text-muted: #94A3B8;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 4px 14px rgba(26, 188, 156, 0.2);
}

/* Reset & Iframe Container */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: auto;
  min-height: 0;
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: transparent;
  color: var(--dwl-text-main);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Pure Carousel Layout (Zero Outer Titles/Headers)
   -------------------------------------------------------------------------- */
.dwl-carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 12px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

@media (max-width: 640px) {
  .dwl-carousel-wrapper {
    padding: 8px 12px;
  }
}

/* Carousel Track Window */
.dwl-carousel-track-container {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 12px 4px;
}

.dwl-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform var(--transition-smooth);
  will-change: transform;
  cursor: grab;
}

.dwl-carousel-track:active {
  cursor: grabbing;
}

/* --------------------------------------------------------------------------
   Review Card Styling
   -------------------------------------------------------------------------- */
.dwl-review-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 280px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  backdrop-filter: blur(10px);
}

@media (max-width: 1024px) {
  .dwl-review-card {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 640px) {
  .dwl-review-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

.dwl-review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(26, 188, 156, 0.4);
}

/* Card Header: Author, Avatar & Google Badge */
.dwl-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dwl-author-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dwl-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--dwl-teal-primary) 0%, var(--dwl-teal-dark) 100%);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(57, 124, 151, 0.25);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.dwl-author-info {
  display: flex;
  flex-direction: column;
}

.dwl-author-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--dwl-text-main);
  line-height: 1.2;
}

.dwl-location-tag {
  font-size: 12px;
  color: var(--dwl-teal-primary);
  font-weight: 500;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Google G Logo Badge */
.dwl-google-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

/* 5-Star Gold Rating Rating Bar */
.dwl-rating-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.dwl-stars {
  display: flex;
  gap: 3px;
  color: var(--google-gold);
}

.dwl-stars svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.dwl-time-ago {
  font-size: 12px;
  color: var(--dwl-text-muted);
}

/* Truncated Review Body */
.dwl-review-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dwl-text-main);
  margin-bottom: 16px;
  flex-grow: 1;
}

.dwl-review-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: max-height 0.3s ease;
}

.dwl-read-more-btn {
  background: none;
  border: none;
  color: var(--dwl-teal-primary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.dwl-read-more-btn:hover {
  color: var(--dwl-teal-bright);
  text-decoration: underline;
}

/* Verified Badge Footer */
.dwl-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed rgba(57, 124, 151, 0.12);
  font-size: 12px;
  color: var(--dwl-text-muted);
}

.dwl-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #10B981;
  font-weight: 500;
}

.dwl-verified-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Navigation Arrows & Pagination Controls
   -------------------------------------------------------------------------- */
.dwl-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--dwl-teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(12, 17, 21, 0.08);
  transition: all var(--transition-fast);
  z-index: 10;
}

.dwl-nav-btn:hover {
  background: var(--dwl-teal-primary);
  color: #FFFFFF;
  border-color: var(--dwl-teal-primary);
  box-shadow: 0 3px 8px var(--dwl-teal-glow);
  transform: translateY(-50%) scale(1.04);
}

.dwl-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.dwl-nav-btn.prev {
  left: 6px;
}

.dwl-nav-btn.next {
  right: 6px;
}

.dwl-nav-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 640px) {
  .dwl-nav-btn {
    width: 36px;
    height: 36px;
  }
  .dwl-nav-btn.prev { left: 2px; }
  .dwl-nav-btn.next { right: 2px; }
}

/* Pagination Dots */
.dwl-dots-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dwl-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: rgba(57, 124, 151, 0.25);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dwl-dot.active {
  width: 24px;
  background: var(--dwl-teal-primary);
  border-radius: 12px;
}

/* Modal Popup for Full Review Reading */
.dwl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 17, 21, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 999;
  padding: 20px;
}

.dwl-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.dwl-modal-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform var(--transition-fast);
}

.dwl-modal-overlay.active .dwl-modal-card {
  transform: scale(1);
}

.dwl-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dwl-text-muted);
  cursor: pointer;
  line-height: 1;
}

.dwl-modal-close:hover {
  color: var(--dwl-text-main);
}
