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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    #f093fb 0%,
    #f5576c 25%,
    #4facfe 50%,
    #00f2fe 75%,
    #43e97b 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: -1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  max-width: 500px;
  width: 100%;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

h1 {
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
}

.subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.meme-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.category {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

.situation {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.4;
  text-align: center;
}

.dialog-box {
  background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 100%);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #ddd;
}

.dialog-message {
  text-align: center;
  color: #444;
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 500;
}

.button-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.meme-btn {
  padding: 12px 20px;
  border: 2px solid #888;
  background: white;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  min-width: 140px;
}

.meme-btn:hover {
  background: #333;
  color: white;
  border-color: #333;
  transform: scale(1.05);
}

.meme-btn:active {
  transform: scale(0.98);
}

.new-meme-btn {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.new-meme-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.new-meme-btn:active {
  transform: translateY(0);
}

footer {
  text-align: center;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

footer p {
  margin-bottom: 8px;
}

.footer-small {
  font-size: 0.85rem;
  opacity: 0.8;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1000;
  max-width: 90%;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Card entrance animation */
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.meme-card.animate {
  animation: cardEntrance 0.4s ease-out;
}

/* Responsive */
@media (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
  }
  
  .situation {
    font-size: 1.2rem;
  }
  
  .meme-btn {
    min-width: 120px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .button-container {
    flex-direction: column;
  }
  
  .meme-btn {
    width: 100%;
  }
}
