/**
 * Cover preview gallery styles.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Cormorant+Garamond:wght@400;500&family=DM+Sans:wght@400;500&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0a0e18;
  color: #e8e0d5;
  font-family: 'DM Sans', system-ui, sans-serif;
  min-height: 100vh;
  padding: 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #d4a96a;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(232, 224, 213, 0.6);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 560px;
  margin: 0 auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr; max-width: 400px; }
}

.concept-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.concept-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.concept-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #d4a96a;
}

.concept-badge {
  font-size: 0.7rem;
  background: rgba(212, 169, 106, 0.15);
  color: rgba(212, 169, 106, 0.7);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* The book cover mockup */
.book-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 6/9;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(0,0,0,0.6), 0 2px 12px rgba(0,0,0,0.4);
}

.book-cover {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Spine overlay — positioned on the left edge */
.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3.5%;
  background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
  z-index: 5;
}

/* Concept 1 — Celestial Arch */
.cover-celestial-arch {
  background: radial-gradient(ellipse at 50% 40%, #141e30 0%, #0e1420 70%, #080e1a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.cover-celestial-arch .cover-art {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.5rem;
}

.cover-celestial-arch .star-arch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  transform: scale(0.85);
}

.cover-celestial-arch .star-arch .star {
  width: 3px;
  height: 3px;
  background: #d4a96a;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(212,169,106,0.8);
}

.cover-celestial-arch .star-arch .star.large {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 8px rgba(212,169,106,1);
}

.cover-celestial-arch .star-arch .connector {
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,169,106,0.4), transparent);
}

.cover-celestial-arch .wheel-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  aspect-ratio: 1;
}

.cover-celestial-arch .cover-title {
  position: absolute;
  top: 20%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.85rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: #e8e0d5;
  letter-spacing: 0.04em;
  padding: 0 8%;
}

.cover-celestial-arch .cover-footer {
  position: absolute;
  bottom: 8%;
  left: 0;
  right: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.cover-celestial-arch .cover-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.55rem, 1.4vw, 0.85rem);
  font-weight: 500;
  color: #d4a96a;
  letter-spacing: 0.06em;
}

.cover-celestial-arch .cover-year {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.4rem, 1vw, 0.6rem);
  color: rgba(212,169,106,0.6);
  letter-spacing: 0.08em;
}

.cover-celestial-arch .cover-imprint {
  position: absolute;
  bottom: 3%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.35rem, 0.9vw, 0.55rem);
  color: rgba(212,169,106,0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Concept 2 — Star Map Mosaic */
.cover-star-map {
  background: linear-gradient(135deg, #0a0e1a 0%, #0d1220 50%, #0a0e1a 100%);
  display: flex;
  flex-direction: column;
}

.cover-star-map .constellation-field {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.cover-star-map .wheel-container {
  position: absolute;
  left: 12%;
  top: 50%;
  transform: translateY(-50%);
  width: 52%;
  aspect-ratio: 1;
  z-index: 2;
}

.cover-star-map .cover-title {
  position: absolute;
  top: 8%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.8rem, 2.1vw, 1.3rem);
  font-weight: 700;
  color: #e8e0d5;
  z-index: 3;
  letter-spacing: 0.03em;
}

.cover-star-map .cover-name {
  position: absolute;
  right: 14%;
  top: 58%;
  text-align: right;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.5rem, 1.3vw, 0.8rem);
  font-weight: 500;
  color: #d4a96a;
  z-index: 3;
  line-height: 1.4;
}

.cover-star-map .cover-year {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.38rem, 0.9vw, 0.58rem);
  color: rgba(212,169,106,0.6);
  letter-spacing: 0.06em;
  display: block;
}

.cover-star-map .cover-imprint {
  position: absolute;
  bottom: 4%;
  right: 14%;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.35rem, 0.85vw, 0.55rem);
  color: rgba(212,169,106,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
}

/* Concept 3 — Eclipse & Constellation */
.cover-eclipse {
  background: linear-gradient(180deg, #111828 0%, #0e1420 40%, #0a0e18 100%);
  display: flex;
  flex-direction: column;
}

.cover-eclipse .eclipse-ring {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    0 0 0 2px rgba(212,169,106,0.15),
    0 0 30px rgba(212,169,106,0.08),
    0 0 80px rgba(212,169,106,0.04);
  z-index: 1;
}

.cover-eclipse .wheel-container {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48%;
  aspect-ratio: 1;
  z-index: 2;
}

.cover-eclipse .cover-title-band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.cover-eclipse .title-rule {
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,169,106,0.4), transparent);
}

.cover-eclipse .cover-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.85rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: #e8e0d5;
  letter-spacing: 0.05em;
  text-align: center;
}

.cover-eclipse .cover-footer {
  position: absolute;
  bottom: 6%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 8%;
}

.cover-eclipse .cover-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.5rem, 1.3vw, 0.8rem);
  font-weight: 500;
  color: #d4a96a;
}

.cover-eclipse .cover-year {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.38rem, 0.9vw, 0.58rem);
  color: rgba(212,169,106,0.6);
}

.cover-eclipse .cover-imprint {
  position: absolute;
  bottom: 6%;
  right: 8%;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.35rem, 0.85vw, 0.55rem);
  color: rgba(212,169,106,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Divider rule */
.gallery-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(212,169,106,0.3), transparent);
  height: 40px;
  margin: 0 auto 2rem;
}

/* Concept descriptions */
.concept-desc {
  padding: 0 0.5rem;
}

.concept-edition {
  font-size: 0.7rem;
  color: rgba(212,169,106,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.concept-desc p {
  font-size: 0.85rem;
  color: rgba(232, 224, 213, 0.55);
  line-height: 1.5;
}

/* CTA section */
.cta-section {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid rgba(212,169,106,0.15);
  border-radius: 8px;
  background: rgba(14,20,32,0.6);
}

.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #d4a96a;
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(232, 224, 213, 0.55);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: #d4a96a;
  color: #0e1420;
}

.btn-primary:hover {
  background: #f0c36a;
}

.btn-secondary {
  background: transparent;
  color: #d4a96a;
  border: 1px solid rgba(212,169,106,0.4);
}

.btn-secondary:hover {
  border-color: #d4a96a;
  background: rgba(212,169,106,0.05);
}

/* Blocked notice */
.blocked-notice {
  max-width: 600px;
  margin: 2rem auto 0;
  padding: 1rem 1.25rem;
  background: rgba(212,169,106,0.06);
  border: 1px solid rgba(212,169,106,0.15);
  border-radius: 6px;
  font-size: 0.8rem;
  color: rgba(232,224,213,0.5);
  text-align: center;
  line-height: 1.5;
}

.blocked-notice strong {
  color: rgba(212,169,106,0.7);
}

/* SVG wheel styles */
.wheel-svg {
  width: 100%;
  height: 100%;
}

/* Star and constellation decorations — CSS only */
@keyframes twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.star-deco {
  position: absolute;
  background: #d4a96a;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}