:root {
  /* Transitions */
  --transition-smooth: 0.4s ease;
}

/* ============================================
   AD CARD BASE STYLES
   ============================================ */

.burk-ad {
  position: relative;
  display: block;
  cursor: pointer;
  text-decoration: none;
  margin: 2rem auto;
  transition: transform 0.4s ease !important;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.burk-ad:hover {
  transform: translate3d(0, -4px, 0) !important;
}

.burk-ad img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================
   AD FORMATS
   ============================================ */

/* Horizontal: 1800x300 (In-Article) */
.burk-ad-horizontal {
  width: 1800px;
  max-width: 100%;
}

/* Stacked: 300x400 (Fixed Corner) */
.burk-ad-stacked {
  width: 300px;
  max-width: 100%;
}

/* ============================================
   PLACEMENTS
   ============================================ */

/* In-Article */
.burk-ad-inline {
  margin: 2rem 0;
}

/* Fixed Corner */
.burk-ad-fixed {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1000;
  animation: slideInFromBottom 0.5s ease-out;
}

.burk-ad-fixed-close {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: normal;
  line-height: 1;
  font-family: Arial, sans-serif;
  z-index: 1001;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.burk-ad-fixed-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* Overlay/Popup */
.burk-ad-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease-out;
}

.burk-ad-overlay-content {
  position: relative;
  max-width: 500px;
  width: 100%;
  animation: slideInFromTop 0.4s ease-out;
}

.burk-ad-overlay-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  background: white;
  color: #1f2937;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  z-index: 10001;
  transition: all 0.15s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.burk-ad-overlay-close:hover {
  background: #ec4899;
  color: white;
  transform: rotate(90deg) scale(1.1);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutToBottom {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes slideInFromTop {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Hide fixed corner ad on screens < 1400px */
@media (max-width: 1400px) {
  .burk-ad-fixed {
    display: none;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .burk-ad-fixed {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }
}

/* Print: hide all ads */
@media print {

  .burk-ad,
  .burk-ad-overlay {
    display: none !important;
  }
}