/**
 * UpdraftDocs Monetization Styles
 * Advertising and sponsorship UI
 */

/* ===== Ad Zones ===== */
.ad-zone {
  margin: 2rem 0;
  padding: 1rem;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  text-align: center;
}

.ad-zone-header {
  margin-top: 0;
  margin-bottom: 2rem;
}

.ad-zone-sidebar {
  margin: 1rem 0;
  position: sticky;
  top: 1rem;
}

.ad-zone-footer {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.ad-zone-content {
  margin: 2rem auto;
  max-width: 300px;
}

/* Ad wrapper */
.ad-wrapper {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ad label */
.ad-label {
  margin-top: 0.5rem;
  text-align: center;
  color: #6c757d;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Sponsorship Content ===== */
.sponsor-content {
  padding: 1.5rem;
}

.sponsor-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #17a2b8;
  color: white;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.sponsor-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid #dee2e6;
}

.sponsor-logo {
  flex-shrink: 0;
}

.sponsor-logo img {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
}

.sponsor-info {
  flex-grow: 1;
}

.sponsor-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.5rem;
}

.sponsor-tagline {
  font-size: 1rem;
  color: #495057;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.sponsor-description {
  font-size: 0.875rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sponsor-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #0066cc;
  color: white;
  text-decoration: none;
  border-radius: 0.25rem;
  font-weight: 600;
  transition: background-color 0.2s;
}

.sponsor-link:hover {
  background-color: #0052a3;
  text-decoration: none;
}

/* ===== Disclosure Banner ===== */
.disclosure-banner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.5rem;
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  margin: 2rem 0;
  border-radius: 0.25rem;
  position: relative;
}

.disclosure-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.disclosure-content {
  flex-grow: 1;
}

.disclosure-content strong {
  display: block;
  color: #212529;
  margin-bottom: 0.5rem;
}

.disclosure-content p {
  margin: 0 0 0.5rem 0;
  color: #495057;
  font-size: 0.875rem;
  line-height: 1.5;
}

.disclosure-link {
  color: #0066cc;
  text-decoration: underline;
  font-size: 0.875rem;
  font-weight: 600;
}

.disclosure-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #6c757d;
  cursor: pointer;
  padding: 0.25rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
}

.disclosure-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #212529;
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 2px solid #dee2e6;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-consent-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.cookie-consent-content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  color: #212529;
}

.cookie-consent-description {
  margin: 0 0 1.5rem 0;
  color: #495057;
  line-height: 1.6;
}

.cookie-consent-options {
  margin: 1.5rem 0;
}

.cookie-option {
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
}

.cookie-option label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
}

.cookie-option input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.cookie-option input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

.cookie-option-info strong {
  display: block;
  color: #212529;
  margin-bottom: 0.25rem;
}

.cookie-option-info small {
  display: block;
  color: #6c757d;
  font-size: 0.875rem;
}

.cookie-consent-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.cookie-btn-accept-all {
  background-color: #28a745;
  color: white;
}

.cookie-btn-accept-all:hover {
  background-color: #218838;
}

.cookie-btn-accept-selected {
  background-color: #0066cc;
  color: white;
}

.cookie-btn-accept-selected:hover {
  background-color: #0052a3;
}

.cookie-btn-reject {
  background-color: #6c757d;
  color: white;
}

.cookie-btn-reject:hover {
  background-color: #5a6268;
}

.cookie-consent-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

.cookie-link {
  color: #0066cc;
  text-decoration: underline;
  font-size: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.cookie-link:hover {
  color: #0052a3;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .sponsor-card {
    flex-direction: column;
    text-align: center;
  }

  .sponsor-logo {
    align-self: center;
  }

  .cookie-consent-content {
    padding: 1rem;
  }

  .cookie-consent-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
  .ad-zone {
    background-color: #2d2d2d;
    border-color: #495057;
  }

  .sponsor-card {
    background-color: #2d2d2d;
    border-color: #495057;
  }

  .sponsor-name {
    color: #e9ecef;
  }

  .sponsor-tagline {
    color: #adb5bd;
  }

  .sponsor-description {
    color: #adb5bd;
  }

  .disclosure-banner {
    background-color: #4a3f1a;
    border-left-color: #ffc107;
  }

  .disclosure-content strong {
    color: #e9ecef;
  }

  .disclosure-content p {
    color: #adb5bd;
  }

  .cookie-consent {
    background-color: #2d2d2d;
    border-top-color: #495057;
  }

  .cookie-consent-content h3 {
    color: #e9ecef;
  }

  .cookie-consent-description {
    color: #adb5bd;
  }

  .cookie-option {
    background-color: #343a40;
  }

  .cookie-option-info strong {
    color: #e9ecef;
  }

  .cookie-option-info small {
    color: #adb5bd;
  }
}

/* ===== Print Styles ===== */
@media print {
  .ad-zone,
  .disclosure-banner,
  .cookie-consent {
    display: none !important;
  }
}
