* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at 20% 20%, #0b1a4a, #030614);
  color: #fff;
  min-height: 100vh;
}

.topbar {
  text-align: center;
  padding: 20px 10px;
}
.topbar h1 {
  font-size: 2rem;
  margin-bottom: 5px;
}
.topbar p {
  opacity: 0.8;
}

.grid {
  width: 100%;
  max-width: 1200px;  
  margin: 20px auto 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  max-width: 280px;
  margin: 0 auto;  
  padding: 2px;
  border-radius: 18px;
  background:
    linear-gradient(140deg, rgba(87,148,255,.9), rgba(200,178,255,.9)) padding-box,
    conic-gradient(from 120deg at 50% 50%, #7db6ff, #c0a7ff, #69d3ff, #7db6ff) border-box;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  transition: transform .2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-frame {
  background: linear-gradient(180deg, #0d1f57, #0a1640 55%, #091234 100%);
  border-radius: 16px;
  height: 100%;
  padding: 12px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.card-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.card-header {
  margin-bottom: 8px;
}
.card-name {
  font-size: 1rem;
  font-weight: bold;
}
.card-meta {
  font-size: .85rem;
  opacity: .8;
}

.card-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
}
.card-stats li {
  text-align: center;
}
.stat-label {
  font-size: .7rem;
  text-transform: uppercase;
  opacity: .7;
}
.stat-value {
  font-size: 1rem;
  font-weight: bold;
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 22px;
  cursor: pointer;
  color: #bbb;
  transition: color 0.3s;
}

.favorite-btn.active {
  color: gold;
}
h1 {
  font-size: 2.2rem;
  margin: 25px 0 15px;
  text-align: center;
  font-weight: 700;
  background: linear-gradient(90deg, #69d3ff, #c0a7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

form#addJogadoraForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 380px;
  margin: 30px auto;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  animation: fadeIn 0.6s ease;
}

form#addJogadoraForm input {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: all 0.3s ease;
}

form#addJogadoraForm input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

form#addJogadoraForm input:focus {
  border-color: #7db6ff;
  box-shadow: 0px 0px 8px rgba(125, 182, 255, 0.6);
  outline: none;
}

form#addJogadoraForm button {
  background: linear-gradient(90deg, #4CAF50, #45a049);
  color: white;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

form#addJogadoraForm button:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
}

.edit-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  display: inline-block;
}

.edit-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-2px);
}

.edit-btn:active {
  transform: translateY(1px);
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.delete-btn {
  margin-top: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  display: inline-block;
}

.delete-btn:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  transform: translateY(-2px);
}

.delete-btn:active {
  transform: translateY(1px);
  background: linear-gradient(135deg, #991b1b, #7f1d1d);
}

#searchInput {
  width: 100%;
  max-width: 300px;
  padding: 10px 14px;
  font-size: 15px;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  outline: none;
  transition: 0.3s;
  margin-bottom: 15px;
}

#searchInput:focus {
  border-color: #2563eb;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.5);
}

button.sort-btn {
  padding: 10px 16px;
  margin: 5px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

button.sort-btn:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  transform: translateY(-2px);
}

button.sort-btn:active {
  transform: translateY(1px);
  background: linear-gradient(135deg, #3730a3, #312e81);
}
