/* Ads System CSS - Complete styles for Medevent */

/* =====================================
   AD LABELS AND COMMON STYLES
   ===================================== */

.ad-label {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =====================================
   HERO BANNER ADS - REDESIGNED
   Integrated within hero section
   ===================================== */

.hero-ad-banner {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  margin: 3rem auto 0;
  max-width: 1100px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-ad-content {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 2.5rem;
  align-items: stretch;
  padding: 0;
  min-height: 220px;
}

/* Left side - Event Image with Badge */
.hero-ad-visual {
  position: relative;
  overflow: hidden;
  border-radius: 20px 0 0 20px;
}

.hero-ad-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-ad-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  z-index: 2;
}

/* Right side - Compact Event Info */
.hero-ad-text {
  color: white;
  padding: 1.75rem 2rem 1.75rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-ad-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.25;
  /* Limit to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-ad-text p {
  font-size: 0.95rem;
  opacity: 0.95;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  /* Limit to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta info row - date, location, etc */
.hero-ad-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-ad-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.9;
  white-space: nowrap;
}

.hero-ad-meta-item i {
  font-size: 0.9rem;
}

/* CTA Button */
.hero-ad-footer {
  margin-bottom: 1rem;
}

.hero-ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.hero-ad-cta:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Sponsor info - positioned below CTA */
.hero-ad-sponsor {
  
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 0rem;
  padding-top: 0rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-ad-sponsor-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-ad-sponsor-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-ad-sponsor-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.hero-ad-sponsor-name {
  font-weight: 600;
  font-size: 0.85rem;
}

/* =====================================
   SIDEBAR ADS
   ===================================== */

.sidebar-ad-widget {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-gray-200);
  position: relative;
  margin-bottom: 2rem;
}

.sidebar-ad-content {
  text-align: center;
}

.sidebar-ad-image {
  margin-bottom: 1rem;
}

.sidebar-ad-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.sidebar-ad-description {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.sidebar-ad-cta {
  display: inline-block;
  background: var(--color-primary-600);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.sidebar-ad-cta:hover {
  background: var(--color-primary-700);
  transform: translateY(-1px);
}

.sidebar-ad-sponsor {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  margin-top: 0.75rem;
}

/* =====================================
   INLINE ADS (în events grid)
   ===================================== */

.inline-ad-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.inline-ad-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
}

.inline-ad-card .ad-label {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inline-ad-card .ad-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.inline-ad-card .event-image {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.inline-ad-card .event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inline-ad-card .event-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.inline-ad-card .event-title {
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.inline-ad-card .event-cta {
  background: #3b82f6;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: block;
}

.inline-ad-card .event-cta:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

/* Override medical-cards-super.css rule that hides event-image */
.inline-ad-card .event-image,
.inline-ad-card .inline-ad-image {
  display: flex !important;
}

.inline-ad-card .event-image img,
.inline-ad-card .inline-ad-image img {
  display: block !important;
}

/* =====================================
   STICKY ADS (popup)
   ===================================== */

.sticky-ad {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
  border: 1px solid var(--color-gray-200);
}

.sticky-ad.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.sticky-ad-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--color-gray-500);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.2s ease;
}

.sticky-ad-close:hover {
  background: var(--color-gray-700);
}

.sticky-ad-content {
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.sticky-ad-icon {
  font-size: 2rem;
  color: var(--color-primary-600);
  flex-shrink: 0;
}

.sticky-ad-text h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.sticky-ad-text p {
  font-size: 0.85rem;
  color: var(--color-gray-600);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.sticky-ad-cta {
  background: var(--color-primary-600);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.3s ease;
}

.sticky-ad-cta:hover {
  background: var(--color-primary-700);
}

/* =====================================
   SPONSORED CATEGORY BANNERS
   ===================================== */

.sponsored-category-banner {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1;
  transition: all 0.3s ease;
}

.sponsored-category-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sponsored-category-banner:hover::before {
  opacity: 1;
}

.sponsored-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.sponsored-banner-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sponsored-banner-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sponsored-banner-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.sponsored-banner-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.sponsored-banner-logo {
  font-size: 3rem;
  opacity: 0.9;
}

.sponsored-banner-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.sponsored-banner-description {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.sponsored-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.sponsored-banner-cta:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.sponsored-banner-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* =====================================
   EVENTS GRID WITH SPONSORED BANNER
   ===================================== */

.events-grid-with-sponsored {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

/* =====================================
   ADMIN ADS MANAGEMENT
   ===================================== */

.ads-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ads-list {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ad-card {
  border-bottom: 1px solid var(--color-gray-200);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.ad-card:hover {
  background: var(--color-gray-50);
}

.ad-card:last-child {
  border-bottom: none;
}

.recommended-event-card {
  border: 2px solid #f59e0b;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
  position: relative;
}

.recommended-event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  z-index: 1;
}

.recommended-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.25);
  border-color: #d97706;
}

.ad-card.inactive {
  opacity: 0.6;
}

.ad-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.ad-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ad-type-badge.hero-banner {
  background: #fef3c7;
  color: #d97706;
}

.ad-type-badge.sidebar {
  background: #dbeafe;
  color: #1d4ed8;
}

.ad-type-badge.inline {
  background: #dcfce7;
  color: #16a34a;
}

.ad-type-badge.sticky {
  background: #fce7f3;
  color: #be185d;
}

.ad-type-badge.recommended {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  animation: recommendedPulse 2s ease-in-out infinite;
}

@keyframes recommendedPulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
    transform: scale(1.05);
  }
}

.ad-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ad-status.active {
  background: #dcfce7;
  color: #16a34a;
}

.ad-status.inactive {
  background: #fef2f2;
  color: #dc2626;
}

.ad-card-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ad-image {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-placeholder {
  color: var(--color-gray-400);
  font-size: 1.5rem;
}

.ad-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.ad-subtitle {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.ad-description {
  font-size: 0.85rem;
  color: var(--color-gray-600);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.ad-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ad-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--color-gray-500);
}

.ad-meta-item i {
  width: 12px;
  text-align: center;
}

.ad-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* =====================================
   AD MODAL STYLES
   ===================================== */

.ad-modal {
  max-width: 800px;
  width: 90vw;
  max-height: 90vh;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--color-gray-700);
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-gray-300);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--color-primary-600);
  border-color: var(--color-primary-600);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* =====================================
   AD PREVIEW STYLES
   ===================================== */

.ad-preview-container {
  background: var(--color-gray-50);
  border-radius: 8px;
  padding: 1.5rem;
  border: 2px dashed var(--color-gray-300);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-hero-banner {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  position: relative;
}

.preview-sidebar-ad {
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  max-width: 250px;
}

.preview-inline-ad {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 320px;
}

.preview-sticky-ad {
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  padding: 1rem;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-cta {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: default;
}

.preview-sponsor {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* =====================================
   ANALYTICS MODAL STYLES
   ===================================== */

.analytics-modal {
  max-width: 900px;
  width: 90vw;
  max-height: 90vh;
}

.analytics-controls {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.period-selector {
  display: flex;
  gap: 0.5rem;
  background: var(--color-gray-100);
  padding: 0.25rem;
  border-radius: 8px;
}

.period-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.period-btn.active,
.period-btn:hover {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.analytics-metric {
  background: var(--color-gray-50);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-primary-600);
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  font-weight: 500;
}

.analytics-section {
  margin-bottom: 2rem;
}

.analytics-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 1rem;
}

.device-breakdown,
.pages-breakdown {
  background: var(--color-gray-50);
  border-radius: 8px;
  padding: 1rem;
}

.device-item,
.page-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.device-item:last-child,
.page-item:last-child {
  border-bottom: none;
}

.device-name,
.page-name {
  font-weight: 500;
  color: var(--color-gray-700);
}

.device-count,
.page-impressions,
.page-clicks {
  font-size: 0.9rem;
  color: var(--color-gray-600);
}

/* =====================================
   CONFIRM MODAL STYLES
   ===================================== */

.confirm-modal {
  max-width: 400px;
}

.confirm-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.confirm-icon {
  font-size: 2rem;
  color: var(--color-yellow-500);
  flex-shrink: 0;
}

.confirm-message {
  color: var(--color-gray-700);
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* ===================================== 
   RESPONSIVE - HERO AD 
   ===================================== */

/* Tablet landscape */
@media (max-width: 1024px) {
  .hero-ad-content {
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    min-height: 200px;
  }
  
  .hero-ad-text h3 {
    font-size: 1.35rem;
  }
  
  .hero-ad-text p {
    font-size: 0.9rem;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .hero-ad-banner {
    margin: 2rem 1rem 0;
  }
  
  /* Hide sponsor logo on small devices */
  .hero-ad-sponsor-logo {
    display: none;
  }
  
  /* Center meta info on small devices */
  .hero-ad-meta {
    justify-content: center;
  }
  
  .hero-ad-content {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
  }
  
  .hero-ad-visual {
    border-radius: 20px 20px 0 0;
    height: 200px;
  }
  
  .hero-ad-text {
    padding: 1.5rem;
  }
  
  .hero-ad-text h3 {
    font-size: 1.25rem;
    -webkit-line-clamp: 3;
  }
  
  .hero-ad-cta {
    width: 100%;
    justify-content: center;
  }
  
  .hero-ad-sponsor {
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero-ad-banner {
    margin: 1.5rem 0.75rem 0;
    border-radius: 16px;
  }
  
  /* Hide sponsor logo on mobile */
  .hero-ad-sponsor-logo {
    display: none;
  }
  
  /* Center meta info on mobile */
  .hero-ad-meta {
    justify-content: center;
  }
  
  .hero-ad-visual {
    border-radius: 16px 16px 0 0;
    height: 180px;
  }
  
  .hero-ad-text {
    padding: 1.25rem;
  }
  
  .hero-ad-text h3 {
    font-size: 1.1rem;
  }
  
  .hero-ad-text p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .hero-ad-meta {
    gap: 1rem;
  }
  
  .hero-ad-meta-item {
    font-size: 0.8rem;
  }
  
  .hero-ad-badge {
    top: 12px;
    left: 12px;
    font-size: 10px;
    padding: 5px 10px;
  }
}

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

@media (max-width: 768px) {
  .sponsored-banner-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .sticky-ad {
    width: calc(100vw - 40px);
    right: 20px;
    left: 20px;
  }
  
  .ad-card-content {
    grid-template-columns: 1fr;
  }
  
  .ad-card-actions {
    justify-content: center;
  }
  
  .analytics-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-ad-banner {
    margin: 1rem 0;
    padding: 1.5rem 0;
  }
  
  .hero-ad-content {
    padding: 0 1rem;
  }
  
  .sponsored-category-banner {
    padding: 1.5rem;
  }
  
  .analytics-summary {
    grid-template-columns: 1fr;
  }
  
  .period-selector {
    flex-direction: column;
    width: 100%;
  }
}

/* =====================================
   LUCA AD CARD STYLES
   ===================================== */

@keyframes lucaFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-15px) rotate(90deg) scale(1.1);
  }
  50% {
    transform: translateY(-25px) rotate(180deg) scale(1.05);
  }
  75% {
    transform: translateY(-10px) rotate(270deg) scale(1.1);
  }
}

@keyframes lucaPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.6);
  }
}

.luca-ad-card .ad-label {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  font-weight: 600;
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  z-index: 10;
}

.luca-ad-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.4), 0 0 30px rgba(6, 182, 212, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.luca-ad-card:hover .luca-ad-cover {
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(79, 70, 229, 0.5);
}

.luca-ad-card:hover .luca-ad-cover .shape {
  animation-duration: 8s;
  opacity: 0.3;
}

.luca-ad-card .event-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.luca-ad-cover {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  position: relative;
  overflow: hidden;
  height: 280px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.luca-ad-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.luca-ad-shape-1 {
  position: absolute;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, #4f46e5, #06b6d4, #8b5cf6);
  border-radius: 50%;
  opacity: 0.2;
  top: 5%;
  left: -15%;
  animation: lucaFloat 15s infinite ease-in-out;
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.3);
}

.luca-ad-shape-2 {
  position: absolute;
  width: 140px;
  height: 140px;
  background: linear-gradient(45deg, #06b6d4, #8b5cf6, #ec4899);
  border-radius: 50%;
  opacity: 0.18;
  top: 55%;
  right: -25%;
  animation: lucaFloat 18s infinite ease-in-out 3s;
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.4);
}

.luca-ad-shape-3 {
  position: absolute;
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #8b5cf6, #ec4899, #f59e0b);
  border-radius: 50%;
  opacity: 0.2;
  top: 35%;
  left: 75%;
  animation: lucaFloat 12s infinite ease-in-out 8s;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
}

.luca-ad-shape-4 {
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #f59e0b, #ef4444, #4f46e5);
  border-radius: 50%;
  opacity: 0.15;
  top: 80%;
  left: 20%;
  animation: lucaFloat 20s infinite ease-in-out 12s;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.luca-ad-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 20px;
}

.luca-ad-logo {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #4f46e5, #06b6d4, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.luca-ad-badge {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.25), rgba(6, 182, 212, 0.25));
  border: 1px solid rgba(79, 70, 229, 0.5);
  color: #4f46e5;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  display: inline-block;
  margin-bottom: 15px;
  animation: lucaPulse 2s infinite;
  backdrop-filter: blur(10px);
}

.luca-ad-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 15px;
  width: 100%;
  max-width: 200px;
}

.luca-ad-feature-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.luca-ad-feature-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.luca-ad-feature-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: #ffffff;
}

.luca-ad-pricing {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(79, 70, 229, 0.4);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
}

.luca-ad-pricing-label {
  font-size: 0.7rem;
  color: #a5b4fc;
  margin-bottom: 4px;
}

.luca-ad-price {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.luca-ad-price-per {
  font-size: 0.65rem;
  color: #a5b4fc;
}

.luca-ad-specialty-badge {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
}

.luca-ad-price-value {
  color: #06b6d4;
  font-weight: 700;
}

.luca-ad-cta {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  text-decoration: none;
}

.luca-ad-tag-ai {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
}

.luca-ad-tag-wa {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}

.luca-ad-tag-auto {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
}

.luca-ad-header-cursor {
  cursor: pointer;
}