/* 
  Estilos específicos do Bot de Cupons (LaPromotion)
  Usa variáveis do base.css / style.css do LukkeSystems
*/

:root {
  --neon-blue: #0ea5e9;
  --neon-glow: 0 0 15px rgba(14, 165, 233, 0.5);
  --success-color: #10b981;
}

body.cupons-body {
  background: 
    radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(167, 139, 250, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(56, 189, 248, 0.15) 0px, transparent 50%),
    var(--bg);
  background-size: 200% 200%;
  animation: cuponsMeshFlow 15s ease infinite;
  
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  padding: 2rem 1rem;
}

@keyframes cuponsMeshFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cupons-wrapper {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Banner Promocional Dinâmico - NerdOfertas Style */
.promo-banner.nerd-style {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  animation: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 24px;
  text-decoration: none;
}

.promo-banner.nerd-style:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.promo-inner-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.promo-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #ffbc00;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-bottom-right-radius: 12px;
  text-transform: uppercase;
}

.promo-logo {
  background: #ee4d2d;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.promo-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.promo-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.promo-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #111827;
  margin: 0;
  line-height: 1;
}

.promo-subtitle {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0;
}

.promo-link-pill {
  margin-top: 6px;
  background: #fee2e2;
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.promo-timer-nerd {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #f3f4f6;
  padding: 12px 16px;
  border-radius: 12px;
  min-width: 110px;
}

.timer-label-nerd {
  font-size: 0.65rem;
  color: #6b7280;
  text-transform: uppercase;
  font-weight: 700;
}

.countdown-nerd {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
}

/* Efeito Expirado */
.promo-banner.expired {
  pointer-events: none;
}

.promo-banner.expired .promo-inner-content,
.promo-banner.expired .promo-timer-nerd {
  filter: blur(2px) grayscale(0.5);
  opacity: 0.6;
}

.promo-banner.expired::after {
  content: 'EXPIRADO';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  background: #ff0000;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 900;
  padding: 10px 0;
  width: 120%;
  text-align: center;
  letter-spacing: 2px;
  box-shadow: 0 4px 15px rgba(255,0,0,0.4);
  z-index: 10;
}

@media (max-width: 600px) {
  .promo-banner.nerd-style {
    flex-direction: column;
    align-items: flex-start;
  }
  .promo-timer-nerd {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
  }
}

/* Header */
.cupons-header {
  text-align: center;
}

.brand-name {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 5px;
  text-shadow: var(--neon-glow);
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Generator Card */
.input-group {
  position: relative;
  margin-bottom: 16px;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

#shopeeInput {
  width: 100%;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #fff;
  padding: 16px 16px 16px 45px;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

#shopeeInput:focus {
  border-color: var(--neon-blue);
  box-shadow: var(--neon-glow);
  background: rgba(15, 23, 42, 0.8);
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: transparent;
  color: var(--neon-blue);
  border: 2px solid var(--neon-blue);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover:not(:disabled) {
  background: var(--neon-blue);
  color: var(--bg);
  box-shadow: var(--neon-glow);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.result-area {
  margin-top: 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px dashed var(--success-color);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

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

.success-msg {
  color: var(--success-color);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.btn-success {
  display: block;
  background: var(--success-color);
  color: #fff;
  text-decoration: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.btn-success:hover {
  background: #0ea5e9;
  box-shadow: var(--neon-glow);
}

.trust-badges {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Recent Links */
.recent-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recent-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card {
  display: flex;
  gap: 15px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  align-items: stretch;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.2);
  background: rgba(30, 41, 59, 0.8);
}

.product-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  background: #0f172a;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0; /* allows text truncation */
}

.product-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 5px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.product-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--neon-blue);
  margin: 0 0 8px 0;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.btn-card {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s;
  border: none;
}

.btn-card-primary {
  background: var(--neon-blue);
  color: var(--bg);
}

.btn-card-primary:hover {
  background: #38bdf8;
}

.btn-card-secondary {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-card-secondary:hover {
  background: rgba(255,255,255,0.15);
}

.empty-msg {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 20px;
  background: rgba(30, 41, 59, 0.4);
  border-radius: 12px;
}

.spin {
  display: inline-block;
  animation: spin 1s linear infinite;
}

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

@media (max-width: 480px) {
  .product-card {
    flex-direction: column;
  }
  .product-image {
    width: 100%;
    height: 150px;
  }
  .promo-banner {
    flex-direction: column;
    text-align: center;
  }
  .promo-badge {
    align-self: center;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}
