@charset "UTF-8";
/* ============================= */
/* 🌍 GLOBAL */
/* ============================= */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Rubik", sans-serif;
  /* Fondo más profundo tipo arena */
  background: radial-gradient(circle at top, #2c2c2c 0%, #1a1a1a 50%, #0f0f0f 100%);
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

/* ============================= */
/* 🏆 TÍTULOS PRINCIPALES */
/* ============================= */
h1, h2, h3 {
  font-family: "Bangers", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 1px;
  color: #ffd94a;
  margin: 0 0 16px;
  text-transform: uppercase;
  /* Glow dorado sutil */
  text-shadow: 0 2px 0 #000, 0 0 8px rgba(255, 217, 74, 0.6), 0 0 18px rgba(255, 204, 0, 0.3);
}

/* ============================= */
/* 🎯 SUBTÍTULOS */
/* ============================= */
.subtitle,
h4,
h5 {
  font-family: "Lilita One", sans-serif;
  font-size: 1.1rem;
  color: #ffcc00;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.4);
}

/* ============================= */
/* 📝 TEXTO GENERAL */
/* ============================= */
p,
span,
input,
button,
label,
small {
  font-family: "Rubik", sans-serif;
  font-weight: 400;
  color: #eaeaea;
  line-height: 1.6;
}

/* ============================= */
/* ✨ SELECCIÓN DE TEXTO */
/* ============================= */
::selection {
  background: #ffcc00;
  color: #000;
}

/* ============================= */
/* 🎮 SCROLLBAR PERSONALIZADA */
/* ============================= */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #121212;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #ffd94a, #ff9900);
  border-radius: 4px;
}

form {
  margin-bottom: 1rem;
}
form input, form button {
  padding: 0.5rem;
  margin-right: 0.5rem;
  border: none;
  border-radius: 4px;
}
form button {
  background-color: #ffcc00;
  color: #1e1e1e;
  cursor: pointer;
}

#cardControls {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
#cardControls input, #cardControls select, #cardControls button {
  padding: 0.5rem;
  border-radius: 4px;
  border: none;
}
#cardControls button {
  background-color: #ffcc00;
  color: #1e1e1e;
  cursor: pointer;
}

.card {
  background: linear-gradient(135deg, #2e2e2e, #1e1e1e);
  border: 1px solid #ffcc00;
  border-radius: 12px;
  max-width: 400px;
  margin: 1.5rem auto;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 204, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 204, 0, 0.5);
}
.card h2 {
  margin: 0 0 0.5rem;
  color: #ffcc00;
  font-size: 1.6rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px #000;
}
.card h2 span {
  font-size: 0.85rem;
  color: #bbb;
  display: block;
  margin-top: 0.3rem;
  font-weight: 400;
}
.card p {
  margin: 0.5rem 0;
  color: #f0f0f0;
  font-size: 1rem;
  line-height: 1.4;
}
.card p strong {
  color: #ffcc00;
  font-weight: 600;
}
.card .card-img {
  width: 100px;
  margin: 1rem auto 0;
  display: block;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(255, 204, 0, 0.4);
  transition: transform 0.3s ease;
}
.card .card-img:hover {
  transform: scale(1.05);
}

.battlelog {
  margin-top: 1rem;
  background-color: #1a1a1a;
  border: 1px solid #444;
  padding: 1rem;
  border-radius: 8px;
}
.battlelog h3 {
  color: #ffcc00;
  margin-bottom: 0.5rem;
}
.battlelog ul {
  list-style: none;
  padding: 0;
}
.battlelog ul li {
  color: #fff;
  margin-bottom: 0.3rem;
}
.battlelog ul li strong {
  color: #ffcc00;
}
.battlelog ul li em {
  color: #ccc;
}
.battlelog ul li small {
  color: #888;
  font-size: 0.8rem;
}

.card-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-top: 20px;
  animation: fadeInCards 0.4s ease-out;
}
.card-list .card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100px;
  padding: 0.5rem;
  gap: 0.3rem;
  background-color: rgba(46, 46, 46, 0.4039215686);
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  animation: fadeInCards 0.4s ease-out forwards;
  opacity: 0;
}
.card-list .card-item:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 20px rgba(235, 250, 27, 0.2);
}
.card-list .card-item img {
  width: 100%;
  border-radius: 4px;
}
.card-list .card-item p {
  color: #ffcc00;
  font-size: 0.7rem;
  margin-top: 0.3rem;
}
.card-list .card-item small {
  color: #ccc;
  font-size: 0.6rem;
}
.card-list .card-item button.add-to-deck {
  background-color: #ffcc00;
  color: #1e1e1e;
  border: none;
  padding: 0.3rem 0.5rem;
  font-size: 0.6rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.card-list .card-item button.add-to-deck:hover {
  background-color: #ffd633;
}

#cardModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeIn 0.3s ease;
}
#cardModal .modal-inner {
  background: linear-gradient(145deg, #2a2a2a, #1d1d1d);
  border-radius: 20px;
  max-width: 640px;
  width: 92%;
  position: relative;
  text-align: center;
  border: 2px solid rgba(255, 204, 0, 0.4);
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.25), inset 0 2px 6px rgba(0, 0, 0, 0.7);
  color: #f5f5f5;
  animation: slideUp 0.4s ease;
}
#cardModal {
  /* 🃏 Imagen de carta */
}
#cardModal .modal-inner img {
  width: 160px;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}
#cardModal .modal-inner img:hover {
  transform: scale(1.05);
}
#cardModal {
  /* 📜 Texto descriptivo */
}
#cardModal .modal-inner p {
  color: #eaeaea;
  margin: 0.6rem 0;
  font-size: 1rem;
  line-height: 1.6;
}
#cardModal {
  /* 🧠 Bloque técnico */
}
#cardModal .modal-inner pre {
  background: #141414;
  color: #bbbbbb;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  text-align: left;
  overflow-x: auto;
  margin-top: 1.2rem;
  border: 1px solid rgba(255, 204, 0, 0.2);
}
#cardModal {
  /* 🏆 Botón principal */
}
#cardModal .modal-inner button {
  margin-top: 1.8rem;
}
#cardModal {
  /* 🔙 Botón volver */
}
#cardModal .modal-inner .back-button {
  position: absolute;
  top: 16px;
  left: 18px;
  background: rgba(255, 204, 0, 0.1);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #ffd94a;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
#cardModal .modal-inner .back-button:hover {
  background: rgba(255, 204, 0, 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

/* 🎬 Animaciones */
@media (min-width: 1000px) {
  #cardModal {
    padding: 80px;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.main-header {
  background: linear-gradient(135deg, #1f1f1f, #2e2e2e);
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  border-bottom: 2px solid #444;
  margin-bottom: 20px;
}
.main-header h1 {
  font-size: 2rem;
  margin: 0;
}
.main-header .subtitle {
  font-size: 1rem;
  color: #ccc;
  margin-top: 0.3rem;
}

.main-footer {
  background-color: #1a1a1a;
  color: #aaa;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  border-top: 1px solid #333;
}

.note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ccc;
}
.note a {
  color: #ffcc00;
  text-decoration: underline;
}
.note a:hover {
  color: #ffd633;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeInCards {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.loading {
  text-align: center;
  color: #ffcc00;
  font-size: 1rem;
  margin: 1rem 0;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}
/* ============================= */
/* 🎮 INPUTS & CONTROLS */
/* ============================= */
input,
select,
options {
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  background: linear-gradient(145deg, #2f2f2f, #242424);
  color: #f5f5f5;
  transition: all 0.25s ease;
  margin-left: 8px;
  box-shadow: inset 0 2px 4px rgba(252, 214, 0, 0.6), 0 0 0 rgba(255, 204, 0, 0);
}
input:focus,
select:focus,
options:focus {
  outline: none;
  border-color: #ffcc00;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 204, 0, 0.6);
  background: linear-gradient(145deg, #383838, #2a2a2a);
}
input:hover,
select:hover,
options:hover {
  background: linear-gradient(145deg, #353535, #292929);
}

select option {
  background-color: #1e1e1e;
  color: #ffffff;
}

/* ============================= */
/* 🏆 BOTONES ESTILO CLASH */
/* ============================= */
button {
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  border: none;
  font-weight: bold;
  font-size: 1rem;
  background: linear-gradient(180deg, #ffd94a 0%, #ffb800 100%);
  color: #1e1e1e;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 0 #cc9500, 0 6px 12px rgba(0, 0, 0, 0.4);
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #cc9500, 0 8px 16px rgba(0, 0, 0, 0.5);
}
button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #cc9500, 0 4px 8px rgba(0, 0, 0, 0.4);
}

body.light {
  background-color: #f9f9f9;
  color: #000;
}

body.light .card,
body.light .card-item,
body.light .modal-inner {
  background-color: #fff;
  color: #000;
  border: 2px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body.light .card h2,
body.light .card p,
body.light .modal-inner p,
body.light .modal-inner pre {
  color: #222;
}

body.light .card-img,
body.light .modal-inner img {
  box-shadow: none;
}

body.light input,
body.light select,
body.light button {
  background-color: #eee;
  color: #222;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

body.light button:hover,
body.light select:hover {
  background-color: #ddd;
  transform: scale(1.03);
}

body.light .main-header {
  background-color: #555;
  color: #fff;
  border-bottom: 2px solid #ccc;
}

body.light .main-footer {
  background-color: #555;
  color: #fff;
  border-bottom: 2px solid #ccc;
}

body.light small {
  color: rgb(88, 88, 88) !important;
}

.theme-toggle-fixed {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: transparent;
  color: #ffd94a;
  border: 1px solid #ffd94a;
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1000;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}
.theme-toggle-fixed:hover {
  background-color: #ffd94a;
  color: #1a1a1a;
  border-color: #ffd94a;
}

body.light .theme-toggle-fixed {
  color: #222;
  border-color: #222;
}
body.light .theme-toggle-fixed:hover {
  background-color: #222;
  color: #fff;
}

body.light .user-area {
  color: #222;
  padding: 4px 10px;
  border-radius: 6px;
}

body.light .username {
  color: white;
}

body.light button.logout-btn {
  all: unset;
  font-size: 0.75rem;
  color: #e74c3c;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
body.light button.logout-btn:hover {
  color: #e74c3c;
  text-decoration: none;
}

#deckSection {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #4e4e4e;
  border: 2px solid #ffcc00;
  border-radius: 8px;
  text-align: center;
}
#deckSection #viewDeckBtn {
  background-color: #ffcc00;
  color: #1e1e1e;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: background 0.3s ease;
}
#deckSection #viewDeckBtn:hover {
  background-color: #ffd633;
}
#deckSection .deck-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
#deckSection .deck-card {
  background-color: rgba(46, 46, 46, 0.4039215686);
  border-radius: 6px;
  padding: 0.5rem;
  width: 100px;
  text-align: center;
}
#deckSection .deck-card img {
  width: 100%;
  border-radius: 4px;
}
#deckSection .deck-card p {
  color: #ffcc00;
  font-size: 0.7rem;
  margin-top: 0.3rem;
}
#deckSection .deck-card button.remove-from-deck {
  background-color: #ff6666;
  color: #fff;
  border: none;
  padding: 0.3rem 0.5rem;
  font-size: 0.6rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.3rem;
  transition: background 0.3s ease;
}
#deckSection .deck-card button.remove-from-deck:hover {
  background-color: #ff4444;
}

.auth-view {
  position: absolute;
  inset: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.85)), url("/assets/images/clash-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #ffffff;
  margin: 0;
  padding: 0;
  z-index: 999;
}

.auth-wrap {
  width: 100%;
  max-width: 960px;
  padding: 0;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  margin: 0 auto;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.auth-card input {
  width: 100%;
  max-width: 360px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
}

.auth-card input::placeholder {
  color: #ccc;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.btn {
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: #ffd94a;
  color: #1a1a1a;
}

.btn-accent {
  background-color: #ffb703;
  color: #1a1a1a;
}

.btn-link {
  background: transparent;
  color: #ffffff;
  text-decoration: underline;
  padding: 6px 8px;
  font-size: 0.9rem;
}

/* ============================= */
/* 👤 USER AREA */
/* ============================= */
.user-area {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid rgba(255, 204, 0, 0.4);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 204, 0, 0.2);
  font-size: 0.8rem;
}

/* 🏷 Username */
.username {
  font-weight: 600;
  color: #ffd94a;
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.5);
}

/* 🚪 Logout Button */
button.logout-btn {
  all: unset;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ff6b6b;
  background: rgba(255, 0, 0, 0.08);
  transition: all 0.2s ease;
}
button.logout-btn:hover {
  background: rgba(255, 0, 0, 0.15);
  color: #ff3b3b;
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.6);
}
button.logout-btn:active {
  transform: scale(0.95);
}

.cr-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 10px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease-in-out;
  text-shadow: 2px 2px 0px #000;
}

.cr-success {
  background: linear-gradient(#f8d446, #d9a400);
  color: #2a1b00;
  border: 3px solid #ffcc00;
  box-shadow: 0 0 12px rgba(255, 200, 0, 0.7);
  text-shadow: 1px 1px 0 #fff;
}

.cr-error {
  background: linear-gradient(#ff6969, #c62828);
  color: #fff;
  border: 3px solid #8b0000;
  box-shadow: 0 0 12px rgba(255, 80, 80, 0.7);
  text-shadow: 1px 1px 0 #000;
}

/* Animación tipo drop */
.cr-show {
  opacity: 1 !important;
  transform: translate(-50%, 0px);
}

@media (max-width: 800px) {
  .auth-card {
    padding: 24px;
    max-width: 100%;
    margin: 0 16px;
  }
  .auth-card input {
    max-width: 100%;
  }
}

/*# sourceMappingURL=main.css.map */
