.hidden {
  display: none;
}

.loader {
  display: none;
}
.loader:not(.hidden) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

.diamond-spinner {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff3ea5, #ffb6d9);
  transform: rotate(45deg);
  animation: spin 1.2s linear infinite;
  position: relative;
}

.diamond-spinner::after {
  content: "";
  position: absolute;
  inset: -8px;
  background: #d9d9e3;
  border-radius: 4px;
  z-index: -1;
  animation: pulse-glow 1.2s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(405deg);
  }
}
@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}
.page-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding: 1.5rem 2rem 1rem;
  text-align: center;
}

.site-title {
  margin: 0;
  line-height: 1.1;
}

.site-title__main {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ff3ea5, #ffb6d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: #ff3ea5;
  -webkit-text-fill-color: transparent;
}

.site-title__sub {
  display: block;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #d9d9e3;
  margin-top: 0.25rem;
}

.site-tagline {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  color: rgb(215, 0, 114.7409326425);
  margin-top: 0.5rem;
}

.layout-body {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  padding: 0 2rem;
  overflow: hidden;
  min-height: 0;
}

.filters-sidebar {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #ff3ea5, #ffb6d9);
  border-radius: 12px;
  height: 100%;
  overflow-y: auto;
}

.filters-sidebar .pagination-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}
.filters-sidebar .pagination-controls button {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}
.filters-sidebar .pagination-controls .page-info {
  text-align: center;
  font-size: 0.8rem;
  color: rgb(215, 0, 114.7409326425);
}

.results-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 0;
}

.site-footer {
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #6e6e7a;
  border-top: 1px solid #ffb6d9;
}

.footer-links a {
  color: #ff3ea5;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .layout-body {
    flex-direction: column;
    padding: 0 1rem;
    overflow: visible;
  }
  .filters-sidebar {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .results-area {
    overflow: visible;
  }
}
#heroes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.hero-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 62, 165, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 62, 165, 0.35);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  background: linear-gradient(135deg, #d9d9e3, #ffffff, #d9d9e3);
  clip-path: polygon(27px 0, 100% 0, 100% calc(100% - 27px), calc(100% - 27px) 100%, 0 100%, 0 27px);
}
.hero-card img {
  width: 100%;
  aspect-ratio: 3/4;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.hero-card h3 {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: rgb(215, 0, 114.7409326425);
  margin: 0.75rem 0.5rem 0.25rem;
}
.hero-card p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  color: rgba(215, 0, 114.7409326425, 0.7);
  margin: 0 0.5rem 0.75rem;
}

#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
#modal-overlay:not(.hidden) {
  display: flex;
}

#modal {
  border: 3px solid transparent;
  background: linear-gradient(160deg, #ffffff 0%, rgba(255, 182, 217, 0.2) 100%) padding-box, linear-gradient(135deg, #d9d9e3, #ffffff, #d9d9e3) border-box;
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(255, 62, 165, 0.25);
  position: relative;
}
#modal h2 {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  color: rgb(215, 0, 114.7409326425);
}
#modal p,
#modal li {
  font-family: "Space Grotesk", sans-serif;
}
#modal strong {
  color: rgb(215, 0, 114.7409326425);
}

#modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ff3ea5;
  transition: color 0.2s ease;
}
#modal-close-btn:hover {
  color: rgb(215, 0, 114.7409326425);
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  font-family: "Space Grotesk", sans-serif;
}

.pagination-controls button {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, #ff3ea5, #ffb6d9);
  box-shadow: 0 2px 8px rgba(255, 62, 165, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.pagination-controls button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 62, 165, 0.4);
}
.pagination-controls button:disabled {
  background: #d9d9e3;
  color: rgba(215, 0, 114.7409326425, 0.5);
  box-shadow: none;
  cursor: not-allowed;
}

#page-info {
  color: rgb(215, 0, 114.7409326425);
  font-weight: 600;
}

.search-section {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

#search-input {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: linear-gradient(160deg, #ffffff 0%, rgba(255, 182, 217, 0.15) 100%) padding-box, linear-gradient(135deg, #d9d9e3, #ffffff, #d9d9e3) border-box;
  color: rgb(215, 0, 114.7409326425);
}
#search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 62, 165, 0.35);
}
#search-input {
  flex: 1;
  min-width: 200px;
}
#search-input::-moz-placeholder {
  color: rgba(215, 0, 114.7409326425, 0.5);
}
#search-input::placeholder {
  color: rgba(215, 0, 114.7409326425, 0.5);
}

#sort-select,
#publisher-select,
#alignment-select {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: linear-gradient(160deg, #ffffff 0%, rgba(255, 182, 217, 0.15) 100%) padding-box, linear-gradient(135deg, #d9d9e3, #ffffff, #d9d9e3) border-box;
  color: rgb(215, 0, 114.7409326425);
}
#sort-select:focus,
#publisher-select:focus,
#alignment-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 62, 165, 0.35);
}
#sort-select,
#publisher-select,
#alignment-select {
  cursor: pointer;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  color: rgb(215, 0, 114.7409326425);
  cursor: pointer;
}
.toggle-label input[type=checkbox] {
  accent-color: #ff3ea5;
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}

.terminal-preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 2rem;
}
.terminal-preloader:not(.hidden) {
  display: flex;
}

.terminal-text {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: #ffffff;
  max-width: 640px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.terminal-text::after {
  content: "|";
  color: #ff3ea5;
  animation: blink-cursor 0.8s step-end infinite;
}

.terminal-hint {
  font-family: "JetBrains Mono", monospace;
  color: #d9d9e3;
  margin-top: 1.5rem;
  text-align: center;
  animation: blink-cursor 1.2s step-end infinite;
}

@keyframes blink-cursor {
  50% {
    opacity: 0;
  }
}/*# sourceMappingURL=main.css.map */