:root {
  --primary-color: #007aff;
  --secondary-color: #5ac8fa;
  --text-color: #ffffff;
  --background-color: #000000;
  --card-bg: rgba(30, 30, 30, 0.8);
  --glass-bg: rgba(30, 30, 30, 0.7);
  --glass-border: rgba(60, 60, 60, 0.3);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  --dead-color: rgba(50, 50, 50, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: #000000;
  color: var(--text-color);
  min-height: 100vh;
  padding: 20px;
  transition: all 0.3s ease;
}

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

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

h1, h2 {
  margin-bottom: 20px;
  font-weight: 500;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--glass-shadow);
  padding: 25px;
  margin-bottom: 20px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Typen-Rechner Styles */
.search-container {
  position: relative;
  margin-bottom: 20px;
}

input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(50, 50, 50, 0.5);
  backdrop-filter: blur(5px);
  font-size: 16px;
  transition: all 0.3s;
  color: white;
}

input[type="text"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-color);
}

.autocomplete-results {
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background: #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
  display: none;
  color: white;
}

.autocomplete-item {
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.autocomplete-item:hover {
  background: rgba(0, 122, 255, 0.2);
}

.mode-toggle-container {
  display: flex;
  margin-bottom: 20px;
}

.mode-button {
  flex: 1;
  padding: 10px;
  background: rgba(50, 50, 50, 0.5);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.3s;
  color: white;
}

.mode-button:first-child {
  border-radius: 8px 0 0 8px;
}

.mode-button:last-child {
  border-radius: 0 8px 8px 0;
}

.mode-button.active {
  background: var(--primary-color);
  color: white;
}

.pokemon-info {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.pokemon-image {
  width: 120px;
  height: 120px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pokemon-details h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 500;
}

.type-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  margin-right: 5px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.type-effectiveness {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.effectiveness-group {
  background: rgba(50, 50, 50, 0.5);
  border-radius: 8px;
  padding: 15px;
}

.effectiveness-group h4 {
  margin-bottom: 10px;
  text-align: center;
  font-weight: 500;
}

.effectiveness-types {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Soullink Styles */
.soullink-form {
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.add-button {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.add-button:hover {
  background: #0062cc;
}

.soullink-pairs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.soullink-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}

.soullink-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.soullink-card.dead {
  background: var(--dead-color);
  position: relative;
}

.soullink-card.dead::after {
  content: "✕";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  color: rgba(255, 0, 0, 0.5);
  pointer-events: none;
}

.soullink-pokemon {
  display: flex;
  justify-content: space-between;
}

.pokemon-card {
  width: 50%;
  padding: 15px;
  text-align: center;
}

.pokemon-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
  object-fit: contain;
}

.soullink-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  background: rgba(40, 40, 40, 0.5);
  font-size: 20px;
}

footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  font-size: 14px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
}


.soullink-actions {
  display: flex;
  justify-content: flex-end;
  padding: 5px 10px;
  background: rgba(40, 40, 40, 0.5);
}

.delete-button {
  background: rgba(255, 50, 50, 0.2);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #fff;
}

.delete-button:hover {
  background: rgba(255, 50, 50, 0.8);
}
