/* ==========================================================================
   AUREON — CREATIVE EDITING HUB & 3D MOTION SYSTEM
   Design System: Depth Palette (Sage, Sand, Leaf, Amber, Emerald, Ink)
   Extruded 3D Shapes, Real CSS Perspective, Dynamic Motion & Rotating 3D Cube
   ========================================================================== */

/* --- 1. HERO SECTION & 3D STAGE --- */
.hero h1 span {
  display: block;
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 0.4rem;
  color: var(--amber-deep);
  text-transform: uppercase;
}

.hero-editorial-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero-editorial-tag::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--amber);
}

/* 3D Scene Plate Stack */
.scene.wide {
  aspect-ratio: 16/10;
  max-width: 560px;
}

.plate.front {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--sand);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-preview-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  filter: contrast(1.05) saturate(1.1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene.wide:hover .hero-preview-art {
  transform: scale(1.04);
}

.hero-art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 53, 45, 0.1) 0%, rgba(38, 53, 45, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  pointer-events: none;
}

.hero-art-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-badge-pill {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgb(251 253 251 / 0.92);
  color: var(--ink);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-art-caption {
  color: #FFFFFF;
}

.hero-art-caption h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-art-caption p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #E2E8F0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Floating 3D Tags */
.float.a {
  left: 4%;
  top: -6%;
}

.float.b {
  right: -4%;
  bottom: 8%;
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--amber-deep), 0 10px 20px rgb(var(--shadow) / 0.2);
}

/* --- 2. EDITING PACKS SECTION (#packs) --- */
.packs-section {
  padding: 5rem 0 3rem;
  position: relative;
}

.sec-head {
  margin-bottom: 2rem;
}

.sec-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.sec-head p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Packs Grid Layout */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.2rem;
  margin-top: 2rem;
}

/* 3D Pack Card */
.pack-card {
  position: relative;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 8px 0 var(--leaf), 0 24px 38px rgb(var(--shadow) / 0.16);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease, opacity 0.3s ease;
}

.pack-card:hover {
  box-shadow: 0 8px 0 var(--amber), 0 34px 50px rgb(var(--shadow) / 0.24);
}

/* Specular light sweep on hover */
.pack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: radial-gradient(340px circle at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / 0.6), transparent 60%);
  border-radius: inherit;
}

.pack-card:hover::before {
  opacity: 1;
}

/* Card Visual Header */
.pack-thumb-wrap {
  position: relative;
  height: 220px;
  background: var(--sand);
  overflow: hidden;
}

.pack-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.pack-card:hover .pack-thumb-img {
  transform: scale(1.06);
}

.pack-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 53, 45, 0.15) 0%, rgba(38, 53, 45, 0.6) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.pack-category-tag {
  align-self: flex-start;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgb(251 253 251 / 0.95);
  color: var(--green-deep);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pack-drive-indicator {
  align-self: flex-end;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(38, 53, 45, 0.85);
  color: #FFFFFF;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pack-drive-indicator i {
  color: #34D399;
}

/* Card Body */
.pack-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.pack-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.pack-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pack-title a:hover {
  color: var(--green);
}

.pack-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.pack-specs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-deep);
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
}

.pack-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.pack-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgb(var(--shadow) / 0.08);
}

/* Action button in pack footer */
.pack-footer {
  margin-top: auto;
  border-top: 1px solid rgb(var(--shadow) / 0.08);
  padding-top: 1.2rem;
}

.pack-btn-drive {
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  padding: 0.75rem 1.2rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
}

/* --- 3. 3D ROTATING CUBE SECTION FOR X ACCOUNTS (Sage & Amber Style) --- */
.x-cube-section {
  padding: 5rem 0 6rem;
  position: relative;
}

.x-cube-section .cube-stage {
  perspective: 1200px;
  height: 400px;
  display: grid;
  place-items: center;
}

.x-cube-section .cube {
  position: relative;
  width: 320px;
  height: 320px;
  transform-style: preserve-3d;
  transform: rotateX(-8deg) rotateY(calc(var(--i, 0) * -90deg));
  transition: transform 0.85s cubic-bezier(0.5, 0, 0.2, 1);
}

.face-x {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  padding: 1.5rem;
  border-radius: 20px;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.7), 0 10px 24px rgb(var(--shadow) / 0.12);
  color: var(--ink);
  box-sizing: border-box;
}

.face-x:nth-child(1) {
  transform: rotateY(0deg) translateZ(160px) !important;
  background: var(--leaf) !important;
}
.face-x:nth-child(2) {
  transform: rotateY(90deg) translateZ(160px) !important;
  background: var(--sand) !important;
}
.face-x:nth-child(3) {
  transform: rotateY(180deg) translateZ(160px) !important;
  background: #f6dfae !important;
}
.face-x:nth-child(4) {
  transform: rotateY(270deg) translateZ(160px) !important;
  background: #d3e6c8 !important;
}

@media (max-width: 600px) {
  .x-cube-section .cube-stage {
    height: 340px;
  }
  .x-cube-section .cube {
    width: 270px;
    height: 270px;
  }
  .face-x {
    width: 270px;
    height: 270px;
    padding: 1.2rem;
  }
  .face-x:nth-child(1) { transform: rotateY(0deg) translateZ(135px) !important; }
  .face-x:nth-child(2) { transform: rotateY(90deg) translateZ(135px) !important; }
  .face-x:nth-child(3) { transform: rotateY(180deg) translateZ(135px) !important; }
  .face-x:nth-child(4) { transform: rotateY(270deg) translateZ(135px) !important; }
}

.face-x-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.face-x-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.face-x-handle {
  font-family: var(--font-mono, monospace);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: none;
  display: inline-block;
  margin-top: 0.15rem;
}

.face-x-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 0 var(--sand), 0 6px 14px rgb(var(--shadow) / 0.1);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--ink);
}

.face-x-bio {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0.6rem 0;
}

.face-x-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.face-x-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.8);
  color: var(--ink);
}

.face-x-btn {
  width: 100%;
  padding: 0.65rem 1rem !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
}

/* --- 4. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 768px) {
  .packs-grid {
    grid-template-columns: 1fr;
  }
  
  .cube-wrap {
    grid-template-columns: 1fr;
  }
}
