/**
 * BulkCreator Internal Ad System Styles
 * Location: https://cdn.bulkcreator.com/ads/bc-ads.css
 * Version: 1.0.0
 */

/* Base Ad Container */
.bc-internal-ad {
  position: relative;
  display: inline-block;
  max-width: 336px;
  margin: 0 auto;
}

/* Banner Ads */
.bc-ad-banner {
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

.bc-ad-banner iframe {
  display: block;
  border: 0;
}

.bc-ad-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Native Ads */
.bc-native-ad {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 10px;
  min-height: 280px;
  width: 336px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  position: relative;
  overflow: hidden;
}

.bc-native-ad::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: bc-pulse 4s ease-in-out infinite;
}

@keyframes bc-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

.bc-ad-badge {
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.bc-ad-headline {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.bc-ad-description {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px 0;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.bc-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  position: relative;
  z-index: 1;
}

.bc-feature-list li {
  padding: 6px 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  opacity: 0.95;
}

.bc-feature-list li::before {
  content: '✓';
  margin-right: 8px;
  font-weight: bold;
  font-size: 16px;
}

/* Buttons */
.bc-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.bc-btn-upgrade {
  background: white;
  color: #667eea;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bc-btn-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  background: #f8f8f8;
}

.bc-btn-primary {
  background: #667eea;
  color: white;
  padding: 14px 28px;
  font-size: 16px;
}

.bc-btn-primary:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

.bc-btn-secondary {
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
}

.bc-btn-secondary:hover {
  background: #f5f5f5;
}

/* Modal Styles */
.bc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  animation: bc-fadeIn 0.3s ease;
}

@keyframes bc-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bc-modal {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  animation: bc-slideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes bc-slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.bc-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 10;
}

.bc-modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.bc-modal-content {
  padding: 40px 30px;
}

.bc-modal-content h2 {
  margin: 0 0 20px 0;
  font-size: 28px;
  color: #333;
}

.bc-modal-content p {
  color: #666;
  line-height: 1.6;
  margin: 0 0 30px 0;
}

.bc-modal-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Notification Styles */
.bc-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  max-width: 400px;
  z-index: 999998;
  animation: bc-slideInRight 0.4s ease;
}

@keyframes bc-slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.bc-notification-hide {
  animation: bc-slideOutRight 0.4s ease;
}

@keyframes bc-slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.bc-notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bc-notification-text {
  flex: 1;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

.bc-notification-cta {
  background: #667eea;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.bc-notification-cta:hover {
  background: #5a67d8;
}

.bc-notification-close {
  background: none;
  border: none;
  color: #999;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bc-notification-close:hover {
  color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bc-native-ad {
    width: 100%;
    max-width: 336px;
    min-height: 250px;
  }
  
  .bc-modal {
    width: 95%;
    margin: 10px;
  }
  
  .bc-modal-content {
    padding: 30px 20px;
  }
  
  .bc-modal-cta {
    flex-direction: column;
  }
  
  .bc-notification {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .bc-ad-headline {
    font-size: 20px;
  }
  
  .bc-ad-description {
    font-size: 13px;
  }
  
  .bc-feature-list li {
    font-size: 12px;
  }
  
  .bc-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .bc-ad-banner {
    background: #2a2a2a;
  }
  
  .bc-modal {
    background: #1a1a1a;
    color: #e0e0e0;
  }
  
  .bc-modal-content h2 {
    color: #f0f0f0;
  }
  
  .bc-modal-content p {
    color: #b0b0b0;
  }
  
  .bc-modal-close {
    color: #888;
  }
  
  .bc-modal-close:hover {
    background: #2a2a2a;
    color: #f0f0f0;
  }
  
  .bc-btn-secondary {
    color: #b0b0b0;
    border-color: #444;
  }
  
  .bc-btn-secondary:hover {
    background: #2a2a2a;
  }
  
  .bc-notification {
    background: #1a1a1a;
    border: 1px solid #333;
  }
  
  .bc-notification-text {
    color: #e0e0e0;
  }
}

/* Alternative Native Ad Themes */
.bc-native-ad.theme-gold {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.bc-native-ad.theme-ultimate {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.bc-native-ad.theme-dark {
  background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

.bc-native-ad.theme-ocean {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Loading State */
.bc-ad-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: bc-loading 1.5s infinite;
  height: 280px;
  width: 336px;
  border-radius: 8px;
}

@keyframes bc-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Click Prevention for Analytics */
.bc-ad-link {
  display: block;
  position: relative;
}

.bc-ad-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  cursor: pointer;
}