@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gradient-text {
  background: linear-gradient(135deg, #00d4ff 0%, #fb5607 50%, #ff006e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.lens-flare {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: flare-pulse 4s ease-in-out infinite;
}

@keyframes flare-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.upload-zone {
  border: 3px dashed;
  border-radius: 20px;
  padding: 60px 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(30, 30, 60, 0.5);
  backdrop-filter: blur(10px);
}

.upload-zone:hover {
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

.polaroid-frame {
  background: white;
  padding: 20px 20px 60px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.polaroid-frame:hover {
  transform: rotate(0deg) translateY(-5px);
}

.font-handwriting {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
}

.story-card {
  background: linear-gradient(135deg, rgba(30, 30, 60, 0.9) 0%, rgba(60, 30, 80, 0.9) 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  animation: fade-in 0.5s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 212, 255, 0.3);
  border-color: rgba(0, 212, 255, 0.5);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .polaroid-frame {
    transform: rotate(0deg);
  }
  
  .lens-flare {
    width: 300px;
    height: 300px;
  }
  
  .story-card {
    padding: 20px;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00d4ff, #ff006e);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #00e5ff, #ff1177);
}