/* AdSense Modal Styles */
.adsense-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
}

.adsense-modal.show {
  display: flex;
}

.adsense-modal-content {
  background-color: var(--md-default-bg-color, #fff);
  color: var(--md-default-fg-color, #000);
  margin: auto;
  padding: 0;
  border: 1px solid var(--md-default-fg-color--lighter, #888);
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.adsense-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--md-default-fg-color--lightest, #e0e0e0);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.adsense-modal-close {
  color: var(--md-default-fg-color--light, #aaa);
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  transition: all 0.2s ease;
}

.adsense-modal-close:hover,
.adsense-modal-close:focus {
  color: var(--md-default-fg-color, #000);
  text-decoration: none;
}

.adsense-modal-close.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.adsense-modal-body {
  padding: 20px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adsense-ad-placeholder {
  width: 100%;
  min-height: 200px;
  background-color: var(--md-code-bg-color, #f5f5f5);
  border: 2px dashed var(--md-default-fg-color--lighter, #ccc);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: var(--md-default-fg-color--light, #666);
}

.adsense-ad-placeholder p {
  text-align: center;
  padding: 40px 20px;
  margin: 0;
}

.adsense-modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--md-default-fg-color--lightest, #e0e0e0);
  text-align: center;
}

#adsense-timer {
  font-size: 14px;
  color: var(--md-default-fg-color--light, #666);
  font-weight: 500;
  display: none;
}

#adsense-timer.visible {
  display: block;
}

#adsense-countdown {
  font-weight: bold;
  color: var(--md-primary-fg-color, #3f51b5);
}

/* Responsive design */
@media (max-width: 768px) {
  .adsense-modal-content {
    width: 95%;
    margin: 10px;
  }
  
  .adsense-modal-body {
    min-height: 200px;
  }
  
  .adsense-ad-placeholder {
    min-height: 150px;
  }
}
