/* Concept 5b: SWIPEABLE CARD STACK */

:root {
  --color-bg: #FF4081;
  --color-text: #fff;
  --color-dark: #1A0033;
  --color-accent: #FFEB3B;
  --font-mono: "SF Mono", "Fira Code", Consolas, monospace;
}

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

body {
  font-family: var(--font-mono);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

#canvas-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  opacity: 0.3;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 2px 2px 0 var(--color-dark);
}

.social-icons { display: flex; gap: 10px; }
.social-icon {
  width: 32px; height: 32px;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: transform 0.2s;
}
.social-icon:hover { transform: scale(1.15); }
.social-icon svg { width: 18px; height: 18px; }

/* Card Stack */
.card-stack {
  position: relative;
  height: 350px;
  perspective: 1000px;
}

.stack-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--color-text);
  color: var(--color-dark);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.4s, opacity 0.4s;
  cursor: pointer;
}

.stack-card.behind-1 { transform: scale(0.95) translateY(15px); opacity: 0.7; z-index: 1; }
.stack-card.behind-2 { transform: scale(0.9) translateY(30px); opacity: 0.4; z-index: 0; }
.stack-card.active { transform: scale(1) translateY(0); opacity: 1; z-index: 2; }
.stack-card.exit-left { transform: translateX(-120%) rotate(-15deg); opacity: 0; z-index: 3; }
.stack-card.exit-right { transform: translateX(120%) rotate(15deg); opacity: 0; z-index: 3; }

.card-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 2px solid var(--color-dark);
}

.card-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--color-bg);
  color: var(--color-text);
  padding: 3px 10px;
  border-radius: 10px;
  align-self: flex-start;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.85rem;
  color: #666;
  flex: 1;
}

.card-year {
  font-size: 0.8rem;
  color: #999;
  margin-top: auto;
}

/* Controls */
.card-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.card-btn {
  width: 50px; height: 50px;
  font-size: 1.5rem;
  background: var(--color-text);
  color: var(--color-dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}

.card-btn:hover { transform: scale(1.1); }

.card-counter {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Live Row */
.live-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0,0,0,0.2);
  padding: 12px;
  border-radius: 10px;
}

.live-item {
  font-size: 0.8rem;
  display: flex;
  gap: 8px;
}

.live-label {
  font-weight: 600;
  opacity: 0.8;
}

.live-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer {
  margin-top: auto;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.7;
}

@media (max-width: 500px) {
  .card-stack { height: 300px; }
  .card-thumb { height: 100px; }
}
