@tailwind base;
@tailwind components;
@tailwind utilities;

body {
  background: #0a0e1a; /* deep near-black blue */
  color: #e5e9f5;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  margin: 0;
  min-height: 100vh;
}

.idea-generator-container {
  background: #f3e8ff !important;
  border-radius: 18px;
  max-width: 580px;
  margin: 48px auto 0 auto;
  padding: 36px 32px 40px 32px;
  box-shadow: 0 2px 24px 0 rgba(8,12,40,0.25);
}

.title {
  color: #5b7fff; /* Electric blue accent */
  text-shadow: 0 2px 10px rgba(118, 129, 150, 0.18);
  text-align: center;
  font-size: 2.2rem;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-bottom: 26px;
  justify-content: center;
}

.select-label {
  color: #ec4899 !important;
  font-weight: 400;
  margin-right: 6px;
}

.category-select {
  border-radius: 7px;
  border: 2px solid #27336b;
  background: #3b1c32 !important;
  color: #ffffff;
  padding: 7px 18px;
  font-size: 1rem;
  outline: none;
  transition: border 0.18s;
  box-shadow: 0 1px 6px 0 #12162928;
}

.category-select:focus {
  border-color: #5b7fff;
  color: #ffffff;
  background: #3b1c32 !important;
}
.category-select option {
  background-color: #3b1c32 !important;
  color: #ffffff !important;
}
.generate-btn {
  border: none;
  background: linear-gradient(90deg, #13286c 65%, #5b7fff 120%);
  color: #fff;
  padding: 8px 30px;
  font-size: 1.05rem;
  font-weight: bold;
  border-radius: 7px;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(58,96,195,0.07);
  letter-spacing: 1px;
  transition: background 0.2s, transform 0.12s;
}

.generate-btn:hover, .generate-btn:focus {
  background: linear-gradient(90deg, #1b3fa0 70%, #8fbeff 120%);
  color: #101c38;
  transform: translateY(-2px) scale(1.03);
}

.loading-state {
  color: #53acff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 20px;
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #5b7fff;
  border-top: 3px solid #222a45;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ideas-container {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.idea-card {
  background: #3b1c32 !important;
  color: #ffffff;
  border-radius: 9px;
  box-shadow: 0 2px 12px rgba(36, 50, 100, 0.15);
  padding: 20px 18px;
  font-size: 1.07rem;
  min-width: 160px;
  max-width: 230px;
  flex: 1 1 165px;
  min-height: 66px;
  transition: box-shadow 0.17s;
  opacity: 0.97;
}

.idea-card.placeholder {
  background: linear-gradient(115deg, #222941 87%, #283363 100%);
  color: #3c4f83;
  opacity: 0.35;
  border: 1.5px dashed #3a4b8a;
}

.idea-card:not(.placeholder):hover {
  box-shadow: 0 4px 24px rgba(91,127,255, 0.18),0 1.5px 7px 0 rgba(32,42,85,0.13);
}

/* Responsive tweaks */
@media (max-width: 700px) {
  .idea-generator-container {
    padding: 15px 10px;
    width: 95%;
    margin: 0 auto;
  }
  .ideas-container, #favorites-container {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    justify-content: center;
  }
  .idea-card {
    width: 100%;
    margin: 0 auto;
  }
  .controls {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
}
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #db2777;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

#toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.spring-btn:active {
  transform:scale(0.95);
  transition: transform 0.1s ease-in-out;
}
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.idea-card {
  animation: slideUpFade 0.4s ease-out forwards;
}
@keyframes celebratePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); background-color: #ec4899;}
  100% { transform: scale(1); }
}
.celebrate {
  animation: celebratePulse 0.5s ease-in-out;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}
.favorite-icon:hover {
  display: inline-block;
  animation: wiggle 0.3s ease-in-out infinite;
}
.favorite-btn:hover {
  transform: scale(1.15);
  transition: transform 0.2s ease;
}