:root {
  --green: #1db954;
  --dark: #121212;
  --light: #f0f0f0;
  --gray: #2a2a2a;
  --glass-bg: rgba(30, 30, 40, 0.55);
  --glass-border: rgba(255,255,255,0.18);
  --accent: #38ef7d;
  --accent2: #11998e;
}

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

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #1db954 0%, #11998e 100%);
  color: var(--light);
  padding: 2rem 1rem;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1000px;
  margin: auto;
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

header p {
  font-size: 1.15rem;
  color: #e0ffe7;
  opacity: 0.9;
}

textarea {
  width: 100%;
  height: 150px;
  padding: 1.2rem;
  margin: 1.2rem 0;
  font-size: 1.1rem;
  border: none;
  border-radius: 18px;
  background: var(--glass-bg);
  color: var(--light);
  box-shadow: 0 4px 32px 0 #0002;
  backdrop-filter: blur(6px);
  border: 1.5px solid var(--glass-border);
  transition: box-shadow 0.2s;
  resize: vertical;
}

textarea:focus {
  outline: 2px solid var(--green);
  box-shadow: 0 6px 32px 0 #0003;
}

textarea::placeholder {
  color: #b7f7d8;
  opacity: 0.7;
}

button {
  background: linear-gradient(90deg, var(--green), var(--accent2));
  color: var(--dark);
  border: none;
  font-size: 1.1rem;
  padding: 0.9rem 2.5rem;
  border-radius: 30px;
  cursor: pointer;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  font-weight: bold;
  box-shadow: 0 2px 16px 0 #0002;
  transition: transform 0.15s, box-shadow 0.15s, background 0.3s;
  display: block;
  letter-spacing: 0.5px;
}

/* button:hover, button:focus {
  background: linear-gradient(90deg, #38ef7d, #43e97b 99%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 32px 0 #0003;
} */

.output {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

section {
  padding: 1.2rem 1rem 1.2rem 1.1rem;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  box-shadow: 0 2px 24px 0 #0002;
  backdrop-filter: blur(8px);
  transition: box-shadow 0.2s, border 0.2s;
  min-height: 180px;
  animation: fadeInUp 0.7s cubic-bezier(.23,1.01,.32,1) both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--light);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 8px #0002;
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 1px 8px #0001;
  transition: background 0.2s, transform 0.15s;
  animation: popIn 0.5s cubic-bezier(.23,1.01,.32,1) both;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

li:hover {
  background: rgba(56, 239, 125, 0.13);
  transform: scale(1.025);
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  padding: 0;
  margin: 0;
  transition: transform 0.15s;
}

.copy-btn img {
  width: 22px;
  height: 22px;
  filter: brightness(100%) drop-shadow(0 1px 2px #0003);
  transition: filter 0.2s, transform 0.15s;
}

.copy-btn:hover img {
  filter: brightness(150%) drop-shadow(0 2px 6px #38ef7d88);
  transform: scale(1.15) rotate(-8deg);
}

footer {
  margin-top: 3rem;
  text-align: center;
  color: #e0ffe7;
  padding-bottom: 2rem;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  opacity: 0.92;
}

footer .social {
  margin-top: 0.7rem;
  display: flex;
  justify-content: center;
  gap: 24px;
}

footer .social a {
  display: inline-block;
  transition: transform 0.2s;
}

footer .social img {
  width: 32px;
  height: 32px;
  filter: brightness(100%) drop-shadow(0 1px 4px #0002);
  transition: 0.3s;
}

footer .social img:hover {
  transform: scale(1.13) rotate(-6deg);
  filter: brightness(120%) drop-shadow(0 2px 8px #38ef7d88);
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  .output {
    grid-template-columns: 1fr;
  }

  section {
    min-height: 120px;
    padding: 1rem 0.7rem;
  }

  footer .social img {
    width: 26px;
    height: 26px;
  }
}