/* 12-Hour Ad Modal Styling */

/* Overlay Background */
.ad-modal-12h-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  backdrop-filter: blur(2px);
}

.ad-modal-12h-overlay.active {
  opacity: 1;
}

/* Modal Container */
.ad-modal-12h-container {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(229, 9, 20, 0.2);
  max-width: 420px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(229, 9, 20, 0.3);
}

/* Modal Content */
.ad-modal-12h-content {
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Ad Wrapper */
.ad-modal-12h-ad-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 280px;
}

#ad-modal-12h-ad-space {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#ad-modal-12h-ad-space iframe,
#ad-modal-12h-ad-space > div {
  max-width: 100%;
  width: 300px;
  height: 250px;
}

/* Message Section */
.ad-modal-12h-message {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Title */
.ad-modal-12h-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-align: center;
  letter-spacing: 0.3px;
}

/* Main Text */
.ad-modal-12h-text {
  font-size: 14px;
  line-height: 1.6;
  color: #e0e0e0;
  margin: 0;
  text-align: center;
  font-weight: 500;
}

/* Note Text */
.ad-modal-12h-note {
  font-size: 13px;
  line-height: 1.5;
  color: #b0b0b0;
  margin: 0;
  text-align: center;
  padding: 12px;
  background: rgba(229, 9, 20, 0.1);
  border-left: 3px solid #e50914;
  border-radius: 4px;
  font-style: italic;
}

.ad-modal-12h-note strong {
  color: #e50914;
  font-weight: 700;
}

/* Highlighted Instructions */
.ad-modal-12h-highlight {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.15) 0%, rgba(229, 9, 20, 0.1) 100%);
  border: 2px solid #e50914;
  border-radius: 8px;
  padding: 12px 15px;
  margin: 12px 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.2);
}

.ad-modal-12h-highlight strong {
  color: #ff1a24;
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

/* Ad Wrapper - Clickable */
.ad-modal-12h-ad-wrapper {
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-bottom: 15px;
}

.ad-modal-12h-ad-wrapper:hover {
  opacity: 0.95;
}

/* Reload Button */
.ad-modal-12h-reload-btn {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #e50914 0%, #c20812 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.ad-modal-12h-reload-btn:hover {
  background: linear-gradient(135deg, #ff1a24 0%, #e50914 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

.ad-modal-12h-reload-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.3);
}

/* Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Scrollbar Styling */
.ad-modal-12h-container::-webkit-scrollbar {
  width: 6px;
}

.ad-modal-12h-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.ad-modal-12h-container::-webkit-scrollbar-thumb {
  background: rgba(229, 9, 20, 0.5);
  border-radius: 10px;
}

.ad-modal-12h-container::-webkit-scrollbar-thumb:hover {
  background: rgba(229, 9, 20, 0.8);
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .ad-modal-12h-container {
    width: 95%;
    max-width: 100%;
  }

  .ad-modal-12h-content {
    padding: 20px 15px;
    gap: 15px;
  }

  .ad-modal-12h-ad-wrapper {
    padding: 10px;
    min-height: 270px;
  }

  #ad-modal-12h-ad-space iframe,
  #ad-modal-12h-ad-space > div {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 300 / 250;
  }

  .ad-modal-12h-title {
    font-size: 16px;
  }

  .ad-modal-12h-text {
    font-size: 13px;
  }

  .ad-modal-12h-note {
    font-size: 12px;
    padding: 10px;
  }

  .ad-modal-12h-close {
    width: 32px;
    height: 32px;
  }

  .ad-modal-12h-close svg {
    width: 18px;
    height: 18px;
  }
}

/* Tablet Responsive */
@media (min-width: 481px) and (max-width: 768px) {
  .ad-modal-12h-container {
    width: 92%;
  }

  .ad-modal-12h-content {
    padding: 25px 20px;
  }

  .ad-modal-12h-title {
    font-size: 17px;
  }

  .ad-modal-12h-text {
    font-size: 13.5px;
  }
}

/* Desktop */
@media (min-width: 769px) {
  .ad-modal-12h-container {
    width: 420px;
  }

  .ad-modal-12h-content {
    padding: 30px 25px;
  }
}

/* Print Styles */
@media print {
  .ad-modal-12h-overlay {
    display: none !important;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .ad-modal-12h-overlay,
  .ad-modal-12h-container,
  .ad-modal-12h-close {
    animation: none;
    transition: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .ad-modal-12h-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  }

  .ad-modal-12h-text {
    color: #e0e0e0;
  }

  .ad-modal-12h-note {
    color: #b0b0b0;
    background: rgba(229, 9, 20, 0.1);
  }
}
