/* =========================
   VARIABLES GLOBALES
========================= */
:root {
  --bulma-family-primary: 'Inter', sans-serif;
  --bulma-block-spacing: 1rem;
  --primary-color: #020617;
  --secondary-color: #090f20;
  --terciary-color: #121825;
  --conecta-color: #F5AF00;
  --standard-border: 0.5px solid rgba(255, 255, 255, 0.2);
  --bulma-table-row-hover-background-color: var(--secondary-color) !important;
}

/* =========================
   TIPOGRAFÍA Y TEXTOS
========================= */
.label {
  font-size: 14px;
  color: rgb(148, 163, 184);
}

.title.is-big {
  font-size: 60px !important;
}

.has-text-conecta {
  color: var(--conecta-color);
}

/* =========================
   LAYOUT GENERAL
========================= */
.is-fullwidth {
  width: 100%;
}

.container {
  max-width: 1240px !important;
  padding: 20px;
}

.container.file {
  max-width: 960px !important;
}

section {
  height: auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding-top: 7rem;
}

footer.footer {
  border-top: var(--standard-border);
  width: 100%;
  background: var(--primary-color);
  padding: 20px;
}

/* =========================
   COLORES DE FONDO
========================= */
.is-primary   { background-color: var(--primary-color) !important; }
.is-secondary { background-color: var(--secondary-color) !important; }
.is-conecta-color { background-color: var(--conecta-color) !important; }

/* =========================
   COMPONENTES
========================= */
.box {
  --bulma-box-shadow: none;
  --bulma-box-background-color: var(--secondary-color);
  --bulma-box-radius: 24px;
  font-size: 16px;
  border: var(--standard-border);
}

.box.markdown {
  border-radius: 0;
  box-shadow: 30px 0 30px -20px rgba(255, 255, 255, 0.6),
            -30px 0 30px -20px rgba(255, 255, 255, 0.6);
  border: none;
}

.box.unbordered {
  border: none;
}

.box.unbordered.animated {
  transition: transform 0.3s;
}


.box.unbordered.animated:hover {
  box-shadow: 4px 8px 16px rgba(0,0,0,0.75);
  transform: translateY(-5px);
}

/* Cards */
.card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--secondary-color);
  transition: background-color 0.3s ease;
}

.card:hover {
  background-color: var(--terciary-color);
}

.card-image-container {
  position: relative;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image-container img {
  left: 50%;
  top: 50%;
  width: 128px;
  height: 128px;
  object-fit: contain;
  padding: 0;
}



.control.is-loading {
  position: relative;
}

.control.is-loading::after {
  position: absolute;
  left: -2rem;
  animation: spinAround 800ms infinite linear;
  border: 4px solid var(--bulma-loading-color, currentColor);
  border-right-color: transparent;
  border-top-color: transparent;
  height: 4rem;
  width: 4rem;
}

.description-container {
  height: 200px;
  overflow-y: auto;
  margin-bottom: 8px;
}

/*dropdown*/
.dropdown-content {
  background-color: var(--primary-color);
  box-shadow: none;
  width: 100%;
}

.dropdown-content.search-filter {
  max-height: 145px;
  overflow-y: auto;
}

.dropdown-trigger {
  width: 100%;
}

.dropdown-menu {
  width: 100%;
  border: var(--standard-border);;
  border-top: 0;
  position: static;
}

.flag-icon.rule {
  transition: transform 0.3;
}

.flag-icon.rule:hover {
  transform: translateY(-3px);
}

.games-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.games-grid > .cell {
  flex: 1 1 18rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.games-grid .cell.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */
.navbar.is-glass {
  background-color: rgba(2, 6, 23, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: var(--standard-border);;
}

.navbar.footer {
  background-color: var(--primary-color);
  border-top: var(--standard-border);
  align-items: center;
}

.navbar-menu.footer {
  display: flex;
  align-items: stretch;
  background-color: var(--primary-color);
}

.navbar-end {
  flex-direction: row !important;
  flex-wrap: wrap;
}

.navbar-dropdown {
  border: var(--standard-border);;
  background-color: rgba(2, 6, 23, 0.25);
  width: 100%;
}

.navbar-dropdown > .navbar-item {
  background-color: rgba(2, 6, 23, 0.25) !important;
}

.navbar-dropdown > .navbar-item:hover {
  background-color: var(--terciary-color) !important;
}

.navbar-item .image img {
  width: auto;
}

.box.search {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  gap: 0.5rem;
}

.box.search > .is-large.modal-close {
  position: relative;
}

.table {
  --bulma-table-row-hover-background-color: var(--secondary-color);
}

.tabs.is-boxed li.is-active a {
  background-color: var(--primary-color);
  color: white !important;
}

.tag {
  background-color: transparent;
  color: white;
  border: 0.5px solid white;
  padding: 0.25rem;
  font-size: 0.75rem;
  margin-right: 0.25rem;
  font-weight: bolder;
}

.tag:hover {
  background-color: var(--conecta-color);
  color: var(--primary-color);
}

.tag.is-active {
  background-color: var(--conecta-color);
  color: var(--primary-color);
}

.tag.is-active:hover {
  background-color: transparent;
  color: white;
}

#tags {
  max-height: 52px;
  overflow: hidden;
}

*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--secondary-color);
}

*::-webkit-scrollbar-thumb {
  background-color: #555; 
  border-radius: 5px;
  border: 1px solid var(--secondary-color);
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #888;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #555 var(--secondary-color);
}

/* =========================
   EFECTOS Y DECORACIONES
========================= */
.selectable {
  user-select: text !important;        /* Estándar moderno */
  -webkit-user-select: text !important; /* Safari/Chrome */
  -moz-user-select: text !important;    /* Firefox */
  -ms-user-select: text !important;     /* Internet Explorer/Edge */
}

.carousel-container {
  position: relative;
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.box.gradient-shadow {
  position: relative;
  isolation: isolate;
}

.box.gradient-shadow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 90deg, yellow, red, yellow, dodgerblue);
  z-index: -1;
  filter: blur(50px);
  opacity: 0.2;
  transform: scale(1.1);
}

/* Flechas */
.box.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(10%, 75px);
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.box.arrow::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 30px solid white;
  transition: background-color 0.3s ease;
}

.box.arrow:hover {
  background-color: var(--terciary-color);
}

.box.arrow.right::before {
  border-right: 0;
  border-left: 30px solid white;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

input[type="checkbox"]:checked {
  background: var(--conecta-color);
  border-color: white;
}

/* =========================
   RESPONSIVIDAD
========================= */
@container bulma-fixed-grid (max-width: 450px) {
  .fixed-grid.has-2-cols-narrow > .grid {
    --bulma-grid-column-count: 2;
  }
}

@container bulma-fixed-grid (min-width: 450px) {
  .fixed-grid.has-3-cols-wide > .grid {
    --bulma-grid-column-count: 3;
  }
}

@media screen and (max-width: 768px) {
  .navbar.footer .navbar-brand {
    flex: 1;
    justify-content: center;
  }

  .navbar.navbar.footer .navbar-end {
    justify-content: center;
  }

  .fixed-grid.has-1-cols-mobile-b > .grid {
    --bulma-grid-column-count: 1 !important;
  }

  .fixed-grid.has-2-cols-mobile-b > .grid {
    --bulma-grid-column-count: 2;
  }

  .carousel-container {
    display: block;
  }

  .box.arrow {
    display: none;
  }

  .columns.is-tablet > .column {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }

  .image.is-48x48-mobile {
    height: 48px !important;
    width: 48px !important;
  }

  .image.is-80x80-mobile {
    height: 80px;
    width: 80px;
  }
}

@media screen and (min-width: 769px) {
  .fixed.grid.has-2-cols-tablet-b > .grid {
    --bulma-grid-column-count: 2 !important;
  }
}

@media screen and (max-width: 1023px) {
  .navbar-menu.is-active .navbar-item {
    border-bottom: var(--standard-border);;
    background-color: rgba(2, 6, 23, 0) !important;
  }

  .navbar-menu.is-active {
    background-color: rgba(2, 6, 23, 0) !important;
  }

  .columns.is-desktop > .column {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
}

@media screen and (max-width: 1240px) {
  .columns {
    margin: 0 !important;
  }

  .navbar-dropdown {
    border-left: 0;
    border-right: 0;
    padding-bottom: 0;
    padding-top: 0;
  }
}