/* ==========================================================================
   MakeCookbook Banner Ads
   
   Usage: Include this CSS and use the HTML templates above.
   Colors match MakeCookbook branding.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */

.mcb-banner {
  display: block;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  border: 1px solid #4b5563;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mcb-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #f97316;
}

.mcb-banner * {
  box-sizing: border-box;
}

.mcb-content {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 12px 16px;
}

.mcb-icon {
  font-size: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

.mcb-icon-large {
  font-size: 48px;
  margin-bottom: 12px;
}

.mcb-text {
  flex: 1;
  min-width: 0;
}

.mcb-headline {
  display: block;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.mcb-subtext {
  display: block;
  color: #d1d5db;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 2px;
}

.mcb-cta {
  display: inline-block;
  background: #f97316;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.mcb-banner:hover .mcb-cta {
  background: #ea580c;
}

.mcb-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Leaderboard (728x90)
   -------------------------------------------------------------------------- */

.mcb-leaderboard {
  width: 728px;
  height: 90px;
  max-width: 100%;
  position: relative;
}

.mcb-leaderboard .mcb-content {
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}

.mcb-leaderboard .mcb-badge {
  position: absolute;
  top: 6px;
  left: 10px;
}

.mcb-leaderboard .mcb-icon {
  font-size: 32px;
}

.mcb-leaderboard .mcb-headline {
  font-size: 18px;
}

.mcb-leaderboard .mcb-subtext {
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Medium Rectangle (300x250)
   -------------------------------------------------------------------------- */

.mcb-rectangle {
  width: 300px;
  height: 250px;
  position: relative;
}

.mcb-rectangle .mcb-content {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
}

.mcb-rectangle .mcb-headline {
  font-size: 18px;
  margin-bottom: 8px;
}

.mcb-rectangle .mcb-subtext {
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.mcb-rectangle .mcb-cta {
  padding: 10px 24px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Wide Skyscraper (160x600)
   -------------------------------------------------------------------------- */

.mcb-sidebar {
  width: 160px;
  height: 600px;
  position: relative;
}

.mcb-sidebar .mcb-content {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 20px 12px;
}

.mcb-sidebar .mcb-icon-large {
  font-size: 40px;
}

.mcb-sidebar .mcb-headline {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.mcb-sidebar .mcb-divider {
  display: block;
  width: 40px;
  height: 2px;
  background: #f97316;
  margin: 12px auto;
}

.mcb-sidebar .mcb-subtext {
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.mcb-sidebar .mcb-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
}

.mcb-sidebar .mcb-features li {
  color: #d1d5db;
  font-size: 11px;
  padding: 4px 0;
}

.mcb-sidebar .mcb-cta {
  padding: 10px 16px;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Mobile Banner (320x50)
   -------------------------------------------------------------------------- */

.mcb-mobile {
  width: 320px;
  height: 50px;
  max-width: 100%;
}

.mcb-mobile .mcb-content {
  justify-content: space-between;
  padding: 8px 12px;
  gap: 8px;
}

.mcb-mobile .mcb-icon {
  font-size: 20px;
  margin-right: 8px;
}

.mcb-mobile .mcb-headline {
  flex: 1;
  font-size: 13px;
}

.mcb-mobile .mcb-cta {
  padding: 6px 12px;
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   Responsive Banner (Fluid)
   -------------------------------------------------------------------------- */

.mcb-responsive {
  width: 100%;
  max-width: 728px;
  min-height: 60px;
}

.mcb-responsive .mcb-content {
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 480px) {
  .mcb-responsive .mcb-content {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  
  .mcb-responsive .mcb-icon {
    margin-right: 0;
    margin-bottom: 4px;
  }
  
  .mcb-responsive .mcb-cta {
    margin-top: 8px;
  }
}

/* --------------------------------------------------------------------------
   Inline/Text Banner
   -------------------------------------------------------------------------- */

.mcb-inline-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fef3c7;
  border-left: 3px solid #f97316;
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #1f2937;
  margin: 16px 0;
}

.mcb-inline-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.mcb-inline-text {
  line-height: 1.5;
}

.mcb-inline-text a {
  color: #ea580c;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mcb-inline-text a:hover {
  color: #c2410c;
}

/* --------------------------------------------------------------------------
   Light Theme Variant (add .mcb-light class to banner)
   -------------------------------------------------------------------------- */

.mcb-banner.mcb-light {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
}

.mcb-banner.mcb-light .mcb-headline {
  color: #1f2937;
}

.mcb-banner.mcb-light .mcb-subtext {
  color: #4b5563;
}

.mcb-banner.mcb-light .mcb-badge {
  background: rgba(0, 0, 0, 0.05);
  color: #6b7280;
}

.mcb-banner.mcb-light .mcb-features li {
  color: #4b5563;
}
