/* WC Giveaway Entries Frontend Styles */

.wcge-hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 100px 20px 80px;
  background-color: #000;
}

.wcge-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

.wcge-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.wcge-hero-subtitle {
  color: #cf9f53;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 600;
}

.wcge-hero-subtitle::before,
.wcge-hero-subtitle::after {
  content: " — ";
}

.wcge-hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.wcge-hero-title span {
  color: #cf9f53;
}

.wcge-hero-desc {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 30px;
  line-height: 1.6;
}

.wcge-prize-value {
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 40px;
}

.wcge-prize-value span {
  color: #cf9f53;
  font-size: 1.3rem;
  margin-left: 10px;
}

.wcge-countdown-wrapper {
  margin-bottom: 40px;
  color: #cf9f53;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wcge-countdown-timer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.wcge-countdown-item {
  width: 90px;
  text-align: center;
}

.wcge-countdown-item .number {
  display: block;
  font-size: 3.5rem;
  font-weight: bold;
  color: #fff;
  line-height: 1;
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums; /* Critical for preventing shifts */
}

.wcge-countdown-separator {
  font-size: 3.5rem;
  font-weight: bold;
  color: #cf9f53;
  line-height: 1;
  margin: 0 10px;
  padding-top: 0; /* Align with the numbers */
  transform: translateY(-8px); /* Elevates the colons to center them vertically with the digits */
}

.wcge-action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.wcge-btn {
  display: inline-block;
  padding: 15px 30px;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.wcge-btn-primary {
  background: #cf9f53;
  color: #000;
}

.wcge-btn-primary:hover {
  background: #b58842;
  color: #000;
}

.wcge-btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.wcge-btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

/* How It Works Section */
.wcge-section {
  background-color: #0d0d0d;
  padding: 80px 20px;
  color: #fff;
}

.wcge-section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.wcge-section-subtitle {
  text-align: center;
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 50px;
}

.wcge-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.wcge-step-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  transition:
    transform 0.3s,
    border-color 0.3s;
}

.wcge-step-card:hover {
  transform: translateY(-5px);
  border-color: #cf9f53;
}

.wcge-step-number {
  position: absolute;
  top: 20px;
  left: 20px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

.wcge-step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(207, 159, 83, 0.1);
  color: #cf9f53;
  font-size: 20px;
}

.wcge-step-title {
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.wcge-step-desc {
  color: #888;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Eligible Products */
.wcge-products-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.wcge-tab-btn {
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.wcge-tab-btn.active,
.wcge-tab-btn:hover {
  background: #cf9f53;
  color: #000;
}

/* Category Grid */
.wcge-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.wcge-category-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  display: block;
  transition: all 0.3s;
}

.wcge-category-card:hover {
  border-color: #cf9f53;
  color: #cf9f53;
}

.wcge-category-card svg,
.wcge-category-card i {
  font-size: 30px;
  margin-bottom: 15px;
  display: block;
}

.wcge-category-card span {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 12px;
}

/* Past Winners Grid */
.wcge-winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.wcge-winner-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
}

.wcge-winner-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(207, 159, 83, 0.1);
  color: #cf9f53;
}

.wcge-winner-details h4 {
  margin: 0 0 5px;
  font-size: 1.1rem;
}

.wcge-winner-details p {
  margin: 0;
  color: #888;
  font-size: 0.9rem;
}

.wcge-winner-id {
  color: #cf9f53;
  font-size: 12px;
  margin-bottom: 5px;
  display: block;
}

/* Product Badges injected into WooCommerce Loop */
.wcge-product-badge-wrapper {
  display: flex;
  align-items: center;
  margin-top: 10px;
  font-size: 11px;
  font-weight: bold;
}

.wcge-entries-pill {
  background: #cf9f53;
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.wcge-multiplier-pill {
  color: #f44336;
  margin-left: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .wcge-hero-title {
    font-size: 2.2rem;
  }

  .wcge-hero-section {
    padding: 60px 15px 50px;
  }

  .wcge-countdown-item .number {
    font-size: 2rem;
  }

  .wcge-countdown-separator {
    font-size: 2rem;
    margin: 0 5px;
    transform: translateY(-4px);
  }

  .wcge-countdown-item {
    width: 60px;
  }

  .wcge-action-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .wcge-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .wcge-steps-grid {
    grid-template-columns: 1fr;
  }

  .wcge-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .wcge-winners-grid {
    grid-template-columns: 1fr;
  }

  .wcge-section-title {
    font-size: 1.6rem;
  }

  .wcge-products-tabs {
    gap: 6px;
  }

  .wcge-tab-btn {
    padding: 8px 12px;
    font-size: 11px;
  }

  .wcge-product-badge-wrapper {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .wcge-hero-title {
    font-size: 1.6rem;
  }

  .wcge-countdown-item .number {
    font-size: 1.5rem;
  }

  .wcge-countdown-separator {
    font-size: 1.5rem;
  }

  .wcge-countdown-item {
    width: 48px;
  }

  .wcge-categories-grid {
    grid-template-columns: 1fr;
  }

  .wcge-section {
    padding: 50px 15px;
  }
}
