/* ==========================================================================
   DREMORA IT — FEATURED WORK COVERFLOW
   ========================================================================== */

.coverflow-section {
  padding-block: var(--space-20) var(--space-16);
}

.coverflow {
  position: relative;
  width: 100%;
  height: clamp(320px, 46vw, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  outline: none;
  margin-top: var(--space-10);
}

.coverflow-track {
  position: relative;
  width: clamp(300px, 42vw, 480px);
  height: clamp(200px, 28vw, 320px);
  transform-style: preserve-3d;
}

.cf-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(300px, 42vw, 480px);
  height: clamp(200px, 28vw, 320px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow var(--duration-slow) var(--ease-out);
}

.cf-card-active {
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-accent), 0 0 48px var(--accent-glow);
}

/* Browser-chrome header bar — matches the mockup pattern used elsewhere on
   this page, so every card unambiguously reads as a captured live site. */
.cf-card-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--space-3);
  background: rgba(15, 15, 15, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cf-card-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.cf-card-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
}

.cf-card-dots span:nth-child(1) { background: #FF5F56; }
.cf-card-dots span:nth-child(2) { background: #FFBD2E; }
.cf-card-dots span:nth-child(3) { background: #27C93F; }

.cf-card-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.cf-card-live {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--success);
}

.cf-card-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.cf-card-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}

.cf-card-dim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000000;
  opacity: 0.55;
  transition: opacity var(--duration-slow) var(--ease-out);
  pointer-events: none;
}

.cf-card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: var(--space-5) var(--space-5) var(--space-4);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 75%);
  pointer-events: none;
}

.cf-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cf-card-category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-bright);
}

.cf-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
  pointer-events: none;
}

.cf-card-active .cf-card-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ── Nav (arrows + dots) ─────────────────────────────────────────────── */
.coverflow-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.coverflow-arrow {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--duration-base) var(--ease-out);
}

.coverflow-arrow:hover {
  background: var(--accent-subtle);
  border-color: var(--border-accent);
  color: var(--accent-bright);
  transform: scale(1.06);
  box-shadow: 0 0 16px var(--accent-glow);
}

.coverflow-arrow:active { transform: scale(0.96); }

.coverflow-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cf-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--border-hover);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 300ms var(--ease-out);
}

.cf-dot-active {
  width: 22px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

@media (max-width: 640px) {
  .coverflow { height: clamp(260px, 70vw, 340px); }
  .cf-card-cta { display: none; }
}
