
/* =================================================
   AEROGLOW LANDSCAPE MODAL STYLES
   ================================================= */

/* Backdrop overlay */
.ag-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.ag-modal-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* White Landscape Container */
.ag-ad-card.landscape {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 720px; /* Wide landscape width */
  max-height: 90vh;
  display: flex;
  flex-direction: row; /* Side-by-side layout */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.28), 
              0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.ag-modal-backdrop.is-visible .ag-ad-card.landscape {
  transform: translateY(0) scale(1);
}

/* Close (X) button */
.ag-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, color 0.2s ease;
  padding: 0;
}

.ag-close-btn:hover {
  color: #ef4444;
  transform: scale(1.08);
}

/* --- LEFT COLUMN: MEDIA & GIF --- */
.ag-media-col {
  position: relative;
  flex: 0 0 42%; /* 42% width for media */
  background: #0b0e14;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 24px; /* Small space at the top */
  padding-bottom: 12px;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

.ag-media-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ag-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ag-banner-gif {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
}

/* --- RIGHT COLUMN: COPY & BUTTONS --- */
.ag-content-col {
  flex: 1;
  background: #ffffff;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  text-align: left;
}

.ag-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e11d48;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ag-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
  line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ag-subtext {
  font-size: 1rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 24px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Action Buttons */
.ag-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

.ag-btn-primary {
  background: #e11d48;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.22);
}

.ag-btn-primary:hover {
  background: #be123c;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.32);
}

.ag-btn-secondary {
  background: #f8fafc;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
}

.ag-btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* Responsive adjustment for Mobile (stacks vertically if screen is small) */
@media (max-width: 640px) {
  .ag-ad-card.landscape {
    flex-direction: column;
    max-width: 380px;
    max-height: 92vh;
    overflow-y: auto;
  }
  .ag-media-col {
    flex: none;
    width: 100%;
    padding-top: 26px;
  }
  .ag-banner-gif {
    max-height: 280px;
  }
  .ag-content-col {
    padding: 24px 20px;
    text-align: center;
  }
}

/* =================================================
   YouTube Video Modal
   ================================================= */
.ag-video-backdrop {
  z-index: 1000000;
  background: rgba(0, 0, 0, 0.85);
}

.ag-video-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.ag-video-close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  color: #ffffff;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

.ag-video-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.ag-video-ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
