/* ===================================
   CUPONS SECTION
   =================================== */

.cupons-header {
  margin-bottom: 24px;
}

.cupons-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}

.cupons-description {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* ===================================
   CUPONS TABS
   =================================== */

.cupons-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0;
}

.cupons-tab {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cupons-tab:hover {
  color: #111827;
}

.cupons-tab.active {
  color: #000000;
}

.cupons-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #004F6B;
}

.cupons-tab i {
  font-size: 16px;
}

/* ===================================
   CUPONS TAB CONTENT
   =================================== */

.cupons-tab-content {
  display: none;
}

.cupons-tab-content.active {
  display: block;
}

/* ===================================
   CUPONS GRID
   =================================== */

.cupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.loading-cupons {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 16px;
}

.loading-cupons i {
  margin-right: 8px;
}

.no-cupons {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}

.no-cupons i {
  font-size: 64px;
  color: #d1d5db;
  margin-bottom: 24px;
  display: block;
}

.no-cupons-title {
  font-size: 20px;
  font-weight: 700;
  color: #374151;
  margin: 0 0 8px 0;
}

.no-cupons-description {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* ===================================
   CUPOM CARD
   =================================== */

.cupom-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 24px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cupom-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.cupom-card.expirado {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  opacity: 0.7;
}

.cupom-card-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  opacity: 0.1;
  pointer-events: none;
}

.cupom-card-pattern i {
  font-size: 180px;
  color: #ffffff;
}

.cupom-content {
  position: relative;
  z-index: 1;
}

.cupom-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.cupom-code {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 0 12px 0;
  font-family: 'Courier New', monospace;
  word-break: break-all;
}

.cupom-description {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  opacity: 0.95;
}

.cupom-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.cupom-detail {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cupom-detail i {
  width: 16px;
  text-align: center;
}

.cupom-actions {
  display: flex;
  gap: 12px;
}

.cupom-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cupom-btn-copy {
  background: #ffffff;
  color: #667eea;
}

.cupom-btn-copy:hover {
  background: #f3f4f6;
  transform: scale(1.02);
}

.cupom-btn-apply {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cupom-btn-apply:hover {
  background: rgba(255, 255, 255, 0.3);
}

.cupom-card.expirado .cupom-btn {
  opacity: 0.6;
  cursor: not-allowed;
}

.cupom-card.expirado .cupom-btn:hover {
  transform: none;
}

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

@media (max-width: 768px) {
  .cupons-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cupons-title {
    font-size: 20px;
  }

  .cupons-description {
    font-size: 13px;
  }

  .cupons-tabs {
    gap: 8px;
  }

  .cupons-tab {
    padding: 10px 16px;
    font-size: 13px;
  }

  .cupom-code {
    font-size: 22px;
  }

  .cupom-description {
    font-size: 13px;
  }

  .no-cupons {
    padding: 60px 20px;
  }

  .no-cupons i {
    font-size: 48px;
  }

  .no-cupons-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .cupons-tab {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 12px;
  }

  .cupons-tab i {
    font-size: 14px;
  }

  .cupom-code {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .cupom-actions {
    flex-direction: column;
    gap: 8px;
  }

  .cupom-btn {
    width: 100%;
  }
}
