/**
 * EEZYONE Early Access Campaign Styles
 * Styles for popup, banner, countdown, and campaign elements
 *
 * @version 1.0
 * @date 2025-12-27
 */

/* ============================================
   CSS VARIABLES - Match EEZYONE Brand
   ============================================ */
:root {
  --ea-black: #000000;
  --ea-orange: #FF5500;
  --ea-white: #ffffff;
  --ea-gray: #f5f5f5;
  --ea-dark-gray: #e0e0e0;
  --ea-overlay: rgba(0, 0, 0, 0.7);
  --ea-teal: #4cc2c4;
  --ea-success: #28a745;
  --ea-text-muted: #666666;
  --ea-text-light: #999999;
  --ea-positive-blue: #5DFBFF;
}

/* ============================================
   BOTTOM BANNER
   ============================================ */
.ea-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #000000 0%, #1a1a1a 100%);
  color: white;
  padding: 12px 16px;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  animation: bannerSlideUp 0.4s ease-out;
  min-height: 80px;
}

.ea-banner.ea-banner--hidden {
  display: none;
}

@keyframes bannerSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.ea-banner__content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
}

.ea-banner__text {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-top: 1rem;;
}

.ea-banner__text strong {
  color: var(--ea-orange);
  font-weight: 700;
}

.ea-banner__code {
  font-family: 'Courier New', monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  color:#00e5ff
}

.ea-banner__cta {
  background: var(--ea-orange);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  text-transform: uppercase;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.ea-banner__cta:hover {
  border: 1px solid #ffffff;
  transform: translateY(-1px);
  color: white;
}

.ea-banner__close {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0;
  width: 32px;
  height: 32px;
  line-height: 1;
}

.ea-banner__close:hover {
  opacity: 1;
}

/* Offset body content when banner is visible */
body.has-ea-banner {
  padding-bottom: 60px;
}

/* ============================================
   NEWSLETTER POPUP
   ============================================ */
.ea-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.ea-popup--visible {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Overlay */
.ea-popup__overlay {
  position: absolute;
  inset: 0;
  background: var(--ea-overlay);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

/* Container */
.ea-popup__container {
  position: relative;
  background: var(--ea-white);
  border-radius: 8px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.3s ease-out;
  z-index: 1;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Close button */
.ea-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--ea-gray);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.ea-popup__close:hover {
  background: var(--ea-dark-gray);
}

.ea-popup__close svg {
  width: 16px;
  height: 16px;
}

/* Header section */
.ea-popup__header {
  text-align: center;
  margin-bottom: 24px;
}

.ea-popup__badge {
  display: inline-block;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Icon */
.ea-popup__icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 16px;
}

/* Title */
.ea-popup__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ea-black);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* Subtitle */
.ea-popup__subtitle {
  font-size: 1.05rem;
  color: var(--ea-text-muted);
  text-align: center;
  margin-bottom: 0;
  line-height: 1.5;
}

.ea-popup__subtitle strong {
  color: var(--ea-orange);
  font-weight: 700;
}

/* Price comparison section */
.ea-popup__price-comparison {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin: 24px 0;
}

.price-item {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 8px;
  border: 2px solid var(--ea-dark-gray);
  background: var(--ea-white);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 0;
}

.price-item--vip {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  border-color: var(--ea-orange);
  border-width: 3px;
  position: relative;
  box-shadow: 0 4px 16px rgba(255, 85, 0, 0.2);
}

.price-item--vip::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--ea-orange), #ff7733);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.3;
}

.price-item--soldes {
  background: var(--ea-gray);
}

.price-item .label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.price-item--vip .label {
  color: var(--ea-orange);
}

.price-item--soldes .label {
  color: var(--ea-text-muted);
}

.price-item .price {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  display: block;
  margin-bottom: 8px;
}

.price-item--vip .price {
  color: white;
}

.price-item--soldes .price {
  color: var(--ea-black);
}

.price-item .discount {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.price-item--vip .discount {
  background: var(--ea-orange);
  color: white;
}

.price-item--soldes .discount {
  background: rgba(0, 0, 0, 0.1);
  color: var(--ea-black);
}

.price-item .deadline {
  font-size: 0.8rem;
  display: block;
  margin-top: 4px;
  font-weight: 600;
}

.price-item--vip .deadline {
  color: var(--ea-positive-blue);
}

.price-item .diff {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

.price-item--soldes .diff {
  color: #e74c3c;
}

/* Benefits list */
.ea-popup__benefits {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.ea-popup__benefits li {
  padding: 8px 0;
  font-size: 1rem;
  color: var(--ea-black);
  line-height: 1.6;
}

.ea-popup__benefits strong {
  color: var(--ea-orange);
  font-weight: 700;
}

/* Form */
.ea-popup__form {
  margin-top: 24px;
}

.ea-popup__input {
  width: 100%;
  padding: 18px 20px;
  font-size: 1.05rem;
  border: 3px solid var(--ea-black);
  border-radius: 8px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  font-family: inherit;
  background: var(--ea-white);
  color: var(--ea-black);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ea-popup__input:hover {
  border-color: var(--ea-orange);
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.15);
}

.ea-popup__input:focus {
  outline: none;
  border-color: var(--ea-orange);
  box-shadow: 0 4px 16px rgba(255, 85, 0, 0.25);
  transform: translateY(-1px);
}

.ea-popup__input::placeholder {
  color: var(--ea-text-muted);
  font-weight: 400;
}

.ea-popup__submit {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ea-white);
  background: var(--ea-orange);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.ea-popup__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 102, 27, 0.4);
}

.ea-popup__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Urgency text */
.ea-popup__urgency {
  font-size: 0.95rem;
  color: var(--ea-black);
  text-align: center;
  margin-top: 20px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fff3e6 0%, #ffe8d1 100%);
  border-radius: 8px;
  border-left: 4px solid var(--ea-orange);
}

.ea-popup__urgency strong {
  color: var(--ea-orange);
  font-weight: 700;
}

/* Privacy text */
.ea-popup__privacy {
  font-size: 0.85rem;
  color: var(--ea-text-muted);
  text-align: center;
  margin-top: 12px;
}

/* Success state */
.ea-popup__success {
  text-align: center;
  padding: 20px 0;
}

.ea-popup__code {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ea-orange);
  background: var(--ea-gray);
  padding: 16px 32px;
  border-radius: 8px;
  margin: 16px 0;
  letter-spacing: 4px;
  font-family: 'Courier New', monospace;
  display: inline-block;
}

.ea-popup__code-note {
  color: var(--ea-text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.ea-popup__cta {
  display: inline-block;
  padding: 16px 32px;
  background: var(--ea-orange);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.2s;
  font-size: 1rem;
}

.ea-popup__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 102, 27, 0.4);
  color: white;
}

.ea-popup__email-note {
  font-size: 0.85rem;
  color: var(--ea-text-light);
  margin-top: 16px;
}

/* Error state */
.ea-popup__error {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  text-align: center;
}

/* ============================================
   HERO COUNTDOWN
   ============================================ */
.hero__countdown {
  margin: 32px 0 24px;
  text-align: center;
}

.hero__countdown-label {
  display: block;
  font-size: 0.9rem;
  color: var(--ea-black);
  opacity: 0.8;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__countdown-timer {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--ea-black);
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  min-width: 80px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero__countdown-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ea-positive-blue);
  font-family: 'Courier New', monospace;
  line-height: 1;
}

.hero__countdown-unit .hero__countdown-label {
  font-size: 0.75rem;
  color: var(--ea-text-light);
  margin-top: 8px;
  margin-bottom: 0;
  opacity: 1;
  text-transform: lowercase;
}

.hero__countdown-expired {
  font-size: 1.2rem;
  color: var(--ea-text-muted);
  font-weight: 600;
  padding: 20px;
  background: var(--ea-gray);
  border-radius: 8px;
  display: inline-block;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

/* Tablets and below (Bootstrap md breakpoint) */
@media (max-width: 767.98px) {
  .ea-popup__price-comparison {
    flex-direction: row;
  }

  .price-item {
    flex: 1;
    min-width: 0;
  }

  .ea-banner {
    flex-direction: column;
    padding: 12px 10px;
    text-align: center;
  }

  .ea-banner__content {
    flex-direction: column;
    gap: 10px;
    padding: 0.2rem 1.5rem;
  }

  .ea-banner__text {
    font-size: 0.85rem;
  }

  .ea-banner__close {
    top: 8px;
    right: 8px;
  }

  body.has-ea-banner {
    padding-bottom: 110px;
  }

  .ea-popup__container {
    padding: 32px 24px;
    border-radius: 8px;
  }

  .ea-popup__badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .ea-popup__title {
    font-size: 1.4rem;
  }

  .ea-popup__subtitle {
    font-size: 0.95rem;
  }

  .price-item .price {
    font-size: 1.75rem;
  }

  .price-item .label {
    font-size: 0.8rem;
  }

  .price-item .discount {
    font-size: 0.85rem;
  }

  .ea-popup__urgency {
    font-size: 0.9rem;
    padding: 10px 14px;
  }

  .ea-popup__code {
    font-size: 1.5rem;
    padding: 12px 24px;
    letter-spacing: 3px;
  }

  .hero__countdown-timer {
    gap: 12px;
  }

  .hero__countdown-unit {
    padding: 12px 16px;
    min-width: 70px;
  }

  .hero__countdown-value {
    font-size: 2rem;
  }
}

/* Mobile phones (Bootstrap sm breakpoint) */
@media (max-width: 575.98px) {
  .ea-banner__text {
    font-size: 0.8rem;
  }

  .ea-banner__cta {
    font-size: 0.85rem;
    padding: 6px 16px;
  }

  .ea-popup__container {
    padding: 24px 20px;
    width: 95%;
  }

  .ea-popup__badge {
    font-size: 0.7rem;
    padding: 6px 10px;
  }

  .ea-popup__title {
    font-size: 1.25rem;
  }

  .ea-popup__subtitle {
    font-size: 0.9rem;
  }

  .price-item {
    padding: 14px;
  }

  .price-item .price {
    font-size: 1.5rem;
  }

  .price-item .label {
    font-size: 0.75rem;
  }

  .price-item .discount {
    font-size: 0.8rem;
    padding: 3px 10px;
  }

  .price-item .deadline,
  .price-item .diff {
    font-size: 0.75rem;
  }

  .ea-popup__urgency {
    font-size: 0.85rem;
    padding: 10px 12px;
  }

  .ea-popup__benefits li {
    font-size: 0.9rem;
  }

  .ea-popup__input,
  .ea-popup__submit {
    font-size: 1rem;
    padding: 14px;
  }

  .hero__countdown-unit {
    padding: 10px 12px;
    min-width: 60px;
  }

  .hero__countdown-value {
    font-size: 1.75rem;
  }

  .hero__countdown-unit .hero__countdown-label {
    font-size: 0.7rem;
  }
}

/* ============================================
   LOADING STATE
   ============================================ */
.ea-popup__loading {
  display: none;
  text-align: center;
  padding: 20px;
}

.ea-popup__loading.active {
  display: block;
}

.ea-popup__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--ea-gray);
  border-top-color: var(--ea-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   DEBUG MODE INDICATOR
   ============================================ */
.ea-debug-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff0000;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 99999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-family: monospace;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus states for keyboard navigation */
.ea-popup__close:focus,
.ea-popup__input:focus,
.ea-popup__submit:focus,
.ea-banner__close:focus,
.ea-banner__cta:focus {
  outline: 2px solid var(--ea-orange);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .ea-banner,
  .ea-popup,
  .ea-debug-indicator {
    display: none !important;
  }

  body.has-ea-banner {
    padding-top: 0 !important;
  }
}
