/*
 * FILNAMN: style.css
 * VERSION: 2.6
 * PROJEKT: Kvartersmenyguiden – Deals & Stämplar
 * URL: https://kvartersmenyguiden.se/deals/style.css
 * DIR: /public/start/deals/style.css
 */
:root {
  --deals-bg-dark: #020617;
  --deals-bg-card: #0f172a;
  --deals-accent-orange: #f97316;
  --deals-accent-rose: #f43f5e;
  --deals-text-muted: #94a3b8;
  --deals-border: rgba(255, 255, 255, 0.08);
}

body {
  background: linear-gradient(to bottom right, #020617, #0f172a, #020617);
  color: #e5e7eb;
  min-height: 100vh;
}

.deals-page,
.deals-page * {
  box-sizing: border-box;
}

.deals-page {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #e5e7eb;
}

.deals-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.2rem 1rem 2.5rem 1rem;
}

/* HERO */

.deals-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 270px;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom right, #0f172a, #020617);
  border: 1px solid var(--deals-border);
  margin-bottom: 2rem;
}

.deals-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 138, 31, 0.18), transparent 50%);
  pointer-events: none;
}

.deals-hero::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.22), transparent 65%);
  pointer-events: none;
}

.deals-hero-content {
  position: relative;
  z-index: 10;
  padding: 1.4rem 2rem 1.6rem 2rem;
  max-width: 54rem;
}

.eyebrow {
  color: #fed7aa;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
}

.deals-hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 0.55rem 0;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(to right, var(--deals-accent-orange), var(--deals-accent-rose));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.deals-hero p {
  font-size: 1.07rem;
  color: #cbd5e1;
  margin: 0 0 1.15rem 0;
  max-width: 46rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.3rem;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(to right, var(--deals-accent-orange), var(--deals-accent-rose));
  color: #020617;
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* DEAL GRID */

.deals-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.4rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.3rem 0;
  color: #fff;
}

.section-subtitle {
  color: #cbd5e1;
  margin: 0;
}

.deal-count-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(249, 115, 22, 0.25);
  background: rgba(249, 115, 22, 0.10);
  color: #fed7aa;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

.deals-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(1, 1fr);
}

.deals-grid.single-deal {
  max-width: 42rem;
}

@media (min-width: 768px) {
  .deals-grid:not(.single-deal) {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .deals-grid:not(.single-deal) {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* DEAL CARD */

.deal-card {
  position: relative;
  background: linear-gradient(to bottom right, #0f172a, #020617);
  border: 1px solid var(--deals-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.deal-card:hover {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.12);
  transform: translateY(-7px);
}

.deal-image {
  position: relative;
  height: 11.5rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(249,115,22,0.28), transparent 32%),
    radial-gradient(circle at 80% 60%, rgba(244,63,94,0.20), transparent 35%),
    linear-gradient(to bottom right, #1e293b, #020617);
}

.deal-image-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(2,6,23,0.28));
}

.deal-badge {
  position: absolute;
  top: 1.05rem;
  right: 1.05rem;
  background: radial-gradient(circle at top left, #fff, var(--deals-accent-orange), var(--deals-accent-rose));
  color: #020617;
  font-weight: 1000;
  padding: 1.15rem 1.65rem;
  border-radius: 9999px;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.05em;
  box-shadow:
    0 0 0 6px rgba(249,115,22,0.15),
    0 12px 30px rgba(0,0,0,0.6);
  transform: rotate(-8deg);
  z-index: 20;
  line-height: 1;
  text-align: center;
}

.deal-card:hover .deal-badge {
  transform: scale(1.06) rotate(-6deg);
}

.deal-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.deal-content h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 0.45rem 0;
  color: #fff;
}

.deal-address {
  color: var(--deals-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.deal-description {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  flex: 1;
}

.deal-description strong {
  color: #fff;
}

.deal-actions {
  display: flex;
  gap: 0.75rem;
}

.deal-actions .btn {
  flex: 1;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* STAMP CARD SPECIFIC STYLES */
.stamp-image {
  background:
    radial-gradient(circle at 50% 50%, rgba(214,165,77,0.15), transparent 60%),
    linear-gradient(to bottom right, #1e293b, #020617);
}

.stamp-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #dfa84a, #9f6d18);
  color: #1a1a1a;
  padding: 3px;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 20;
}

.stamp-badge-inner {
  background: #1e293b;
  color: #facc15;
  border-radius: 50%;
  width: 75px;
  height: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(223, 168, 74, 0.4);
}

.stamp-badge-inner .count {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.1;
}

.stamp-badge-inner .label {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.stamp-card:hover {
  border-color: rgba(223, 168, 74, 0.35);
  box-shadow: 0 20px 25px -5px rgba(223, 168, 74, 0.12);
}

.btn-stamp-action {
  background: rgba(214, 165, 77, 0.1);
  color: #facc15;
  border: 1px solid rgba(214, 165, 77, 0.3);
  width: 100%;
}

.btn-stamp-action:hover {
  background: rgba(214, 165, 77, 0.2);
  border-color: rgba(214, 165, 77, 0.5);
}

/* INFO */

.notice-box {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.notice-box strong {
  color: #fff;
}

.info-section {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

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

.info-box {
  background: linear-gradient(to bottom right, #0f172a, #020617);
  border: 1px solid var(--deals-border);
  border-radius: 16px;
  padding: 1.6rem;
}

.info-box h2 {
  margin: 0 0 0.55rem 0;
  color: #fff;
  font-size: 1.35rem;
}

.info-box p {
  color: #cbd5e1;
  margin: 0 0 0.85rem 0;
}

.inline-link {
  color: #fed7aa;
  font-weight: 800;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .deals-container {
    padding-top: 0.8rem;
  }

  .deals-hero {
    border-radius: 18px;
    min-height: 0;
  }

  .deals-hero-content {
    padding: 1.2rem;
  }

  .deals-topline {
    display: block;
  }

  .deal-count-badge {
    display: inline-flex;
    margin-top: 0.9rem;
  }

  .deal-actions {
    flex-direction: column;
  }
}
