/* ===== Global ===== */

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(270deg, #9333ea, #ec4899, #3b82f6, #06b6d4);
  background-size: 800% 800%;
  animation: gradientShift 20s ease infinite;
  color: #f8fafc;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ===== Header / Nav ===== */

header {
  padding: 1rem 1.5rem;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1f2937;
}

h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

h1::after {
  content: " ★";
  color: #f97316; /* small anime/star hint */
}

nav a {
  color: #38bdf8;
  margin-left: 1rem;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

nav a:hover {
  border-color: #38bdf8;
  background: rgba(15, 23, 42, 0.8);
}

/* ===== Layout ===== */

main {
  padding: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

#status {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #a5b4fc;
}

/* ===== Anime List & Cards ===== */

.anime-list {
  display: grid;
  gap: 1rem;
}

.anime-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid #1f2937;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.anime-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.9);
  border-color: #38bdf8;
}

/* Status colour accent on card border */

.anime-card.status-watching {
  border-left: 4px solid #fde047; /* yellow */
}

.anime-card.status-completed {
  border-left: 4px solid #22c55e; /* green */
}

.anime-card.status-plan_to_watch {
  border-left: 4px solid #38bdf8; /* blue */
}

/* ===== Card Content ===== */

.anime-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
  font-size: 1rem;
}

.anime-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

/* Status pill */

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-watching-pill {
  background: rgba(250, 204, 21, 0.15);
  color: #fde047;
}

.status-completed-pill {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.status-plan_to_watch-pill {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.rating-badge {
  font-size: 0.8rem;
  color: #fbbf24;
}

.fav-char {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.anime-notes {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

/* Tags row */

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.tag-chip {
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: rgba(15, 23, 42, 0.9);
  color: #c4b5fd;
}

/* ===== Actions ===== */

.card-actions {
  display: flex;
  gap: 0.5rem;
}

button {
  border: none;
  padding: 0.4rem 0.7rem;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.8rem;
}

/* You can add more buttons later (e.g. Edit) */

button.delete-btn {
  background: #b91c1c;
  color: white;
}

button.delete-btn:hover {
  background: #dc2626;
}

/* ===== Small devices ===== */

@media (max-width: 600px) {
  main {
    padding: 1rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  nav a {
    margin-left: 0;
    margin-right: 0.5rem;
  }
}
