/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #6d5dfc, #c86dd7);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  text-align: center;
  padding: 2.5rem 1rem;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-top: 8px;
}

/* Main Container */
main {
  flex: 1;
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* Glassmorphism Card */
.tool-card, .quota-section {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 25px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  margin-bottom: 25px;
  animation: fadeIn 0.6s ease-in-out;
}

/* Input + Button */
.input-section {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#topic-input {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
  transition: 0.3s;
}

#topic-input:focus {
  box-shadow: 0 0 12px #c86dd7;
}

/* Buttons */
button {
  background: linear-gradient(135deg, #ff4b2b, #ff416c);
  border: none;
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Tags Section */
.tags-section h2 {
  margin-top: 20px;
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-weight: 600;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 80px;
}

.tags-container span {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #fff;
  transition: 0.2s;
}

.tags-container span:hover {
  background: rgba(255,255,255,0.25);
}

/* Quota Info */
.quota-section h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

/* Loading */
#loading {
  margin-top: 15px;
  font-style: italic;
  text-align: center;
  opacity: 0.9;
}

.hidden {
  display: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 18px;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.3);
  margin-top: auto;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
