/* Concept 5d: RANDOM MOSAIC GRID */

:root {
  --color-bg: #76FF03;
  --color-text: #1A0033;
  --color-accent: #FF4081;
  --color-card: #fff;
  --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: 1000px;
  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: 2rem;
  font-weight: 700;
  text-shadow: 2px 2px 0 var(--color-accent);
}

.shuffle-btn {
  padding: 10px 20px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 700;
  background: var(--color-accent);
  color: #fff;
  border: 3px solid var(--color-text);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.shuffle-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--color-text);
}

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

/* Mosaic Grid */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.mosaic-item {
  background: var(--color-card);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: popIn 0.4s ease backwards;
}

.mosaic-item:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.mosaic-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.mosaic-info {
  padding: 12px;
}

.mosaic-type {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 6px;
}

.mosaic-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.2;
}

.mosaic-year {
  font-size: 0.7rem;
  color: #999;
}

/* Bottom Bar */
.bottom-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(255,255,255,0.9);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.bar-item {
  flex: 1;
  min-width: 200px;
  font-size: 0.85rem;
}

.bar-item strong {
  color: var(--color-accent);
}

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

@media (max-width: 600px) {
  .mosaic-grid { grid-template-columns: repeat(2, 1fr); }
  .mosaic-thumb { height: 80px; }
}
