/*
 * Shared Design Template Page Styles
 * Used by all design template pages (turkey, pumpkin, acorn, etc.)
 * Edit this file to update styling across all design template pages
 */

/* Hero Section Overrides */
.prod-hero {
  padding: 40px 0 60px;
  background: radial-gradient(circle at 90% 20%, rgba(80, 227, 164, 0.08), transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(103, 179, 255, 0.08), transparent 50%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.prod-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.crumb-text {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 16px;
  font-weight: 500;
}

.crumb-text a {
  color: var(--sub);
  text-decoration: none;
}

.crumb-text a:hover {
  color: var(--accent2);
}

/* Typography */
.prod-hero__content h1 {
  font-size: 42px;
  margin: 0 0 12px;
  line-height: 1.1;
  color: #fff;
  background: linear-gradient(to bottom right, #ffffff, #d7e2f3);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prod-hero__desc {
  font-size: 18px;
  color: #b7c6d6;
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.5;
}

/* Rating Stars */
.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

.rating-text {
  font-size: 13px;
  color: var(--sub);
}

/* Actions / Buttons */
.prod-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.btn--pulse {
  position: relative;
  overflow: hidden;
}

.btn--pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.2);
  transform: translateX(-100%);
  animation: shine 3s infinite;
}

@keyframes shine {
  20% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* Trust Signals */
.prod-hero__meta {
  font-size: 13px;
  color: var(--sub);
  display: flex;
  align-items: center;
  gap: 12px;
}

.check {
  color: var(--accent);
  font-weight: bold;
}

.dot {
  color: var(--edge);
}

/* Image Area */
.prod-image-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  background: var(--panel);
  aspect-ratio: 1 / 1;
}

.prod-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.free-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  pointer-events: none;
}

.free-pill--top-right {
  top: 16px;
  right: 16px;
}

.free-pill.design-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1d9b63;
  color: #f5fff7;
  font-size: 11px;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 999px;
  letter-spacing: .03em;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
  line-height: 1;
}

.free-pill[hidden] {
  display: none !important;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.feature-card {
  background: linear-gradient(180deg, #131a25, #0f141b);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 16px;
  transition: transform 0.2s;
}

.feature-card:hover {
  border-color: var(--edge);
  transform: translateY(-2px);
}

.icon-box {
  width: 40px;
  height: 40px;
  background: rgba(103,179,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: #fff;
}

.feature-card p {
  font-size: 14px;
  margin: 0;
  color: #9fb1c6;
  line-height: 1.5;
}

/* Mobile Sticky Bar */
.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 20, 27, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  z-index: 100;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.sticky-bar__info {
  display: flex;
  flex-direction: column;
}

.sticky-bar__title {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

.sticky-bar__price {
  font-size: 12px;
  color: var(--accent);
}

/* ===== Style Selector Grid ===== */
.style-selector {
  margin-top: 24px;
}

.style-selector__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sub);
  font-weight: 600;
  margin-bottom: 12px;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.style-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  background: rgba(15, 20, 27, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.style-card__icon {
  font-size: 24px;
  line-height: 1;
  filter: grayscale(0.4);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.style-card__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.style-card:hover {
  background: linear-gradient(180deg, #172033, #111827);
  border-color: var(--accent2);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.style-card:hover .style-card__icon {
  transform: scale(1.15);
  filter: grayscale(0);
}

.style-card:hover .style-card__name {
  color: #fff;
}

.style-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: center;
}

.style-card:hover::after {
  transform: scaleX(1);
}

.style-selector__sub {
  margin-top: 16px;
  opacity: 0.8;
}

@media (max-width: 480px) {
  .style-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .style-card {
    padding: 10px 4px;
  }
  .style-card__icon {
    font-size: 20px;
  }
  .style-card__name {
    font-size: 10px;
  }
  .style-card:nth-last-child(2):nth-child(4),
  .style-card:nth-last-child(1):nth-child(5) {
    grid-column: span 1.5;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .prod-hero {
    padding: 20px 0 40px;
  }

  .prod-hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .prod-hero__grid > .prod-hero__visual {
    order: -1;
  }

  .prod-hero__content {
    text-align: center;
  }

  .prod-hero__content h1 {
    font-size: 32px;
  }

  .prod-hero__desc {
    margin: 0 auto 24px;
    font-size: 16px;
  }

  .rating-row {
    justify-content: center;
  }

  .prod-hero__actions {
    flex-direction: column;
  }

  .prod-hero__meta {
    justify-content: center;
  }

  .desktop-only {
    display: none;
  }

  .sticky-bar {
    display: flex;
  }

.ftr {
  padding-bottom: 80px;
}
}

/* Enhanced section cards for learn pages */
.learn-section {
  background: radial-gradient(circle at 15% 20%, rgba(103, 179, 255, 0.08), rgba(20, 27, 38, 0.85));
  border: 1px solid rgba(103, 179, 255, 0.12);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
  margin-bottom: 18px;
}
.learn-section h2 {
  margin: 0 0 12px;
  position: relative;
  padding-left: 14px;
}
.learn-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: calc(100% - 8px);
  border-radius: 8px;
  background: linear-gradient(180deg, #67b3ff, #50e3a4);
}
.learn-section p {
  margin: 0 0 10px;
  color: #c8d4e3;
}
.learn-section ul.list {
  margin: 0;
  padding-left: 18px;
  color: #c8d4e3;
  line-height: 1.5;
}
.learn-section ul.list li + li {
  margin-top: 6px;
}
.learn-section ul.list strong {
  color: #fff;
}

/* FAQ spacing */
.learn-section details summary {
  cursor: pointer;
  font-weight: 600;
  color: #e6edf7;
}
.learn-section details {
  padding: 8px 0;
  border-bottom: 1px solid rgba(103, 179, 255, 0.12);
}
.learn-section details:last-child {
  border-bottom: none;
}
.learn-section details p {
  margin: 6px 0 0;
}

/* Sidebar card polish */
.guide-cta {
  background: radial-gradient(circle at 30% 20%, rgba(103, 179, 255, 0.16), rgba(15, 20, 30, 0.9));
  border: 1px solid rgba(103, 179, 255, 0.14);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  border-radius: 14px;
  padding: 18px;
  min-width: 240px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 100px;
  align-self: start;
  z-index: 10;
}
.guide-cta p {
  color: #c8d4e3;
  margin: 8px 0 12px;
}
.guide-cta .btn--primary {
  box-shadow: 0 12px 28px rgba(80, 227, 164, 0.28);
  width: 100%;
}
.guide-cta .link {
  color: #67b3ff;
}
.guide-cta h2 {
  margin: 0 0 8px;
  position: relative;
  padding-left: 12px;
}
.guide-cta h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: calc(100% - 8px);
  border-radius: 6px;
  background: linear-gradient(180deg, #67b3ff, #50e3a4);
}
