/**
 * Everything - Collage Theme
 * Chaotic, overlapping, magazine-cutout aesthetic
 */

.theme-collage {
  --color-bg: #1a1a2e;
  --color-bg-alt: #16213e;
  --color-text: #eee;
  --color-text-muted: #aaa;
  --color-primary: #ff6b6b;
  --color-secondary: #4ecdc4;
  --color-accent: #ffe66d;

  --font-family-body: 'Segoe UI', system-ui, sans-serif;
  --font-family-heading: 'Impact', 'Arial Black', sans-serif;
}

.theme-collage body {
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 230, 109, 0.05) 0%, transparent 70%),
    var(--color-bg);
  min-height: 100vh;
}

/* Chaotic container */
.collage-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xl);
  min-height: 100vh;
}

/* Floating elements */
.collage-item {
  position: absolute;
  transition: transform 0.3s ease;
}

.collage-item:hover {
  transform: scale(1.05) rotate(2deg);
  z-index: 10;
}

/* Different card styles */
.collage-card {
  background: var(--color-bg-alt);
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
}

.collage-card--torn {
  clip-path: polygon(0 0, 100% 2%, 98% 100%, 3% 97%);
}

.collage-card--tape {
  position: relative;
}

.collage-card--tape::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 60px;
  height: 20px;
  background: rgba(255, 230, 109, 0.6);
}

.collage-card--polaroid {
  background: white;
  padding: var(--space-sm);
  padding-bottom: var(--space-xl);
}

.collage-card--polaroid img {
  width: 100%;
}

.collage-card--polaroid .caption {
  color: #333;
  font-family: 'Comic Sans MS', cursive;
  text-align: center;
  margin-top: var(--space-sm);
}

/* Stamp effect */
.collage-stamp {
  border: 3px dashed var(--color-primary);
  padding: var(--space-sm);
  transform: rotate(-5deg);
  font-weight: bold;
  text-transform: uppercase;
}

/* Cut-out text */
.collage-cutout {
  display: inline-block;
  background: var(--color-accent);
  color: #000;
  padding: 2px 8px;
  transform: rotate(-1deg);
  font-family: serif;
}

.collage-cutout:nth-child(odd) {
  background: var(--color-primary);
  color: white;
  transform: rotate(1deg);
}

.collage-cutout:nth-child(3n) {
  background: var(--color-secondary);
  transform: rotate(-2deg);
}

/* Magazine headline style */
.collage-headline {
  font-family: 'Impact', sans-serif;
  font-size: var(--text-4xl);
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 0.9;
}

.collage-headline span {
  display: inline-block;
}

.collage-headline span:nth-child(odd) {
  color: var(--color-primary);
}

.collage-headline span:nth-child(even) {
  color: var(--color-secondary);
}

/* Scribble/annotation style */
.collage-scribble {
  font-family: 'Comic Sans MS', 'Marker Felt', cursive;
  color: var(--color-accent);
  transform: rotate(-3deg);
}

/* Arrow annotations */
.collage-arrow {
  position: relative;
}

.collage-arrow::after {
  content: '';
  position: absolute;
  right: -30px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 20px solid var(--color-primary);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* Layered shadows for depth */
.collage-layered {
  box-shadow:
    5px 5px 0 var(--color-primary),
    10px 10px 0 var(--color-secondary),
    15px 15px 0 var(--color-accent);
}

/* Grid of chaos */
.collage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.collage-grid > * {
  transform: rotate(var(--rotation, 0deg));
}

.collage-grid > *:nth-child(1) { --rotation: -3deg; }
.collage-grid > *:nth-child(2) { --rotation: 2deg; }
.collage-grid > *:nth-child(3) { --rotation: -1deg; }
.collage-grid > *:nth-child(4) { --rotation: 4deg; }
.collage-grid > *:nth-child(5) { --rotation: -2deg; }
.collage-grid > *:nth-child(6) { --rotation: 1deg; }

/* Sticker style */
.collage-sticker {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  font-weight: bold;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  transform: rotate(-5deg);
}

/* Washi tape strip */
.collage-washi {
  height: 30px;
  background: repeating-linear-gradient(
    45deg,
    var(--color-accent),
    var(--color-accent) 10px,
    transparent 10px,
    transparent 20px
  );
  opacity: 0.7;
}

/* Ripped paper edge */
.collage-ripped {
  position: relative;
}

.collage-ripped::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(135deg, var(--color-bg) 25%, transparent 25%),
              linear-gradient(-135deg, var(--color-bg) 25%, transparent 25%);
  background-size: 20px 20px;
}

/* Homepage specific hero */
.collage-hero {
  position: relative;
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
  overflow: hidden;
}

.collage-hero__title {
  font-size: clamp(4rem, 15vw, 12rem);
  font-family: 'Impact', sans-serif;
  letter-spacing: -5px;
  line-height: 0.85;
  margin-bottom: var(--space-lg);
}

.collage-hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Floating decorative elements */
.collage-float {
  animation: float 4s ease-in-out infinite;
}

.collage-float:nth-child(2n) {
  animation-delay: -1s;
  animation-duration: 5s;
}

.collage-float:nth-child(3n) {
  animation-delay: -2s;
  animation-duration: 6s;
}
