/* Styles for the Offers page (/offres) */

.offers-page {
  background: linear-gradient(to bottom, #ffffffa1);
  min-height: 100vh;
  max-width: fit-content;
  justify-self: center;
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.offers-page .container {
  max-width: 1000px;
  margin-top: 5rem;
  padding: 0 1rem;
}

/* Header */
.offers-header {
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 4rem;
}

.offers-header .badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: #e0f2fe; /* blue-100 */
  color: #075985; /* blue-800 */
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.offers-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}

.highlight-offer {
  color: var(--color-accent-extra2)
}

@media (min-width: 768px) {
  .offers-title .highlight-offer {
    font-size: 1.75rem;
    color: var(--color-accent-extra2)
  }
}

.offers-title .highlight {
  color: var(--color-accent); /* Using brand accent color instead of blue */
}

.offers-intro {
  font-size: 1.25rem;
  color: #4b5563; /* gray-600 */
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grid */
.offers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .offers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Cards */
.offer-card {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.offer-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.offer-card .popular-tag {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-accent-extra2); /* Gold/Orange */
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-bottom-left-radius: 0.5rem;
}

.offer-card .icon-wrapper {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
}

.offer-card:hover .icon-wrapper {
  transform: scale(1.1);
}

.offer-card .icon-wrapper.blue {
  background-color: #eff6ff; /* blue-50 */
}
.offer-card .icon-wrapper.blue .icon {
  color: #2563eb; /* blue-600 */
}

.offer-card .icon-wrapper.purple {
  background-color: #faf5ff; /* purple-50 */
}
.offer-card .icon-wrapper.purple .icon {
  color: #9333ea; /* purple-600 */
}

.offer-card .icon-wrapper.green {
  background-color: #f0fdf4; /* green-50 */
}
.offer-card .icon-wrapper.green .currency-icon {
  color: #16a34a; /* green-600 */
  font-size: 1.5rem;
  font-weight: 700;
}

.offer-card .icon {
  width: 2rem;
  height: 2rem;
}

.offer-card h3 {
  font-family: 'ClashDisplay', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.offer-card p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.5;
}

/* Conditions */
.offers-conditions {
  background-color: #f9fafb; /* gray-50 */
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 4rem;
  border: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
  .offers-conditions {
    padding: 2.5rem;
  }
}

.offers-conditions h3 {
  font-family: 'ClashDisplay', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.offers-conditions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.offers-conditions li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.offers-conditions .check-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-accent); /* Brand green */
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.offers-conditions span {
  color: #374151; /* gray-700 */
  line-height: 1.5;
}

/* CTA Section */
.offers-cta-section {
  background-color: var(--color-accent); /* Brand green */
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  color: white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .offers-cta-section {
    padding: 4rem;
  }
}

.offers-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
  opacity: 0.1;
  pointer-events: none;
}

.offers-cta-section .cta-content {
  position: relative;
  z-index: 10;
}

.offers-cta-section h2 {
  font-family: 'ClashDisplay', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

@media (min-width: 768px) {
  .offers-cta-section h2 {
    font-size: 2.5rem;
  }
}

.offers-cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: white;
  color: var(--color-accent);
}

.btn-secondary:hover {
  background-color: #f0fdf4;
}

.btn-primary {
  background-color: var(--color-accent-extra); /* Brand red/accent */
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
  background-color: var(--color-accent-extra-hover);
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}
