/* TempMail Pro - Custom Styles & Animations */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.6);
}
.dark ::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.5);
}
.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.8);
}

/* Glassmorphism Classes */
.glass-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.dark .glass-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.dark .glass-nav {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

.glass-dropdown {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}
.dark .glass-dropdown {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.8);
}

/* Subtle Gradient Background */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.bg-pattern {
  background-image: radial-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}
.dark .bg-pattern {
  background-image: radial-gradient(rgba(99, 102, 241, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Pulse Glow & Radar animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.4;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.pulse-ring {
  animation: pulse-ring 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: float-slow 4s ease-in-out infinite;
}

/* Skeleton Loading Shimmer */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.6) 25%, rgba(241, 245, 249, 0.9) 50%, rgba(226, 232, 240, 0.6) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.dark .skeleton {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.6) 25%, rgba(51, 65, 85, 0.9) 50%, rgba(30, 41, 59, 0.6) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Normalized Google AdSense Image Ad Styling */
.adsense-unit-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.adsense-image-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.adsense-image-frame:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.08);
}

.dark .adsense-image-frame {
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.4);
}

.dark .adsense-image-frame:hover {
  box-shadow: 0 8px 24px -2px rgba(0, 0, 0, 0.6);
}

.adsense-image {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* CLS (Cumulative Layout Shift) Prevention & Standard IAB Slot Dimensions */
.adsense-slot-leaderboard {
  min-height: 50px;
}
@media (min-width: 640px) {
  .adsense-slot-leaderboard {
    min-height: 90px;
  }
}

.adsense-slot-rectangle {
  min-height: 250px;
}

.adsense-slot-billboard {
  min-height: 90px;
}
@media (min-width: 768px) {
  .adsense-slot-billboard {
    min-height: 250px;
  }
}

.adsense-slot-inarticle {
  min-height: 250px;
}
@media (min-width: 640px) {
  .adsense-slot-inarticle {
    min-height: 280px;
  }
}

.adsense-slot-mobile-sticky {
  height: 50px;
}

.adsense-slot-square-250 {
  width: 250px;
  min-height: 250px;
}

/* Cosmic Hero Theme */
.hero-cosmic-section {
  background-color: #1e0947;
  background-image: 
    radial-gradient(1.5px 1.5px at 40px 60px, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 120px 150px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 280px 80px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 400px 220px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 520px 40px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 680px 180px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 820px 100px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(2px 2px at 960px 260px, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 1100px 70px, rgba(255, 255, 255, 0.3), transparent),
    linear-gradient(180deg, #1b0741 0%, #260c57 50%, #170538 100%);
  background-repeat: repeat;
  background-size: 1200px 400px, 1200px 400px, 1200px 400px, 1200px 400px, 1200px 400px, 1200px 400px, 1200px 400px, 1200px 400px, 1200px 400px, 100% 100%;
}

.hero-generator-box {
  background: rgba(26, 11, 60, 0.88);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.08), 0 16px 36px rgba(0, 0, 0, 0.4);
}

.hero-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 0.65rem;
  background-color: #f1f5f9;
  color: #1e293b;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: all 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}

.hero-action-btn:hover {
  background-color: #ffffff;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-action-btn:active {
  transform: translateY(0);
}

.hero-action-btn.active,
.hero-action-btn.btn-qr-active {
  border-color: #6366f1;
  background-color: #e0e7ff;
  color: #3730a3;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4);
}

/* Toast Animation */
@keyframes slide-in-right {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-out-right {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

.toast-enter {
  animation: slide-in-right 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-exit {
  animation: fade-out-right 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom modal animations */
@keyframes modal-pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-content-animated {
  animation: modal-pop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}
