/*
 * PwnedCR 0x9 2026 - Custom Theme (Base: Core - Sin Flicker)
 * Solo colores, fuentes y estilos - SIN ANIMACIONES
 */

/* Importar fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Noto+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Special+Elite&family=Stardos+Stencil:wght@400;700&display=swap');

:root {
  /* Paleta de colores PwnedCR */
  --pwnedcr-dark-bg: #150E06;
  --pwnedcr-dark-secondary: #0e0a05;
  --pwnedcr-dark-tertiary: #080603;
  --pwnedcr-brown-dark: #3b2a1a;
  --pwnedcr-brown-medium: #785a32;
  --pwnedcr-brown-light: #8b6b3e;
  --pwnedcr-gold-dark: #d4a94e;
  --pwnedcr-gold-medium: #e8be62;
  --pwnedcr-gold-light: #c8a870;
  --pwnedcr-cream-dark: #ede0c6;
  --pwnedcr-cream-medium: #f5ebda;
  --pwnedcr-cream-light: #fff7e0;
  --pwnedcr-cream-lighter: #fffcf4;
  --pwnedcr-red: #eb6a60;
  --pwnedcr-red-dark: #c23030;
  --pwnedcr-blue: #7fa7ff;
  --pwnedcr-blue-dark: #3a5fa0;
  --pwnedcr-blue-light: #a8c6fa;
  --pwnedcr-green: #00dc46;
  --pwnedcr-gray: #6a6560;

  /* Redefinir variables de Bootstrap */
  --primary: #e8be62;
  --secondary: #785a32;
  --success: #00dc46;
  --info: #7fa7ff;
  --warning: #d4a94e;
  --danger: #eb6a60;
  --light: #f5ebda;
  --dark: #150E06;
}

/* Fondo general */
body {
  background-color: var(--pwnedcr-dark-bg) !important;
  color: var(--pwnedcr-cream-light) !important;
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Navbar */
.navbar {
  background-color: var(--pwnedcr-dark-secondary) !important;
  border-bottom: 2px solid var(--pwnedcr-gold-medium);
}

.navbar-brand {
  font-family: 'Stardos Stencil', serif !important;
  font-size: 1.8rem !important;
  color: var(--pwnedcr-gold-medium) !important;
  font-weight: 700 !important;
}

.navbar-brand:hover {
  color: var(--pwnedcr-gold-dark) !important;
}

.nav-link {
  color: var(--pwnedcr-cream-dark) !important;
  font-weight: 500 !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--pwnedcr-gold-medium) !important;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Stardos Stencil', serif !important;
  color: var(--pwnedcr-gold-medium) !important;
}

h1 {
  font-size: 2.2rem !important;
}

h2 {
  font-size: 1.8rem !important;
}

/* Jumbotron / Hero */
.jumbotron {
  background: linear-gradient(135deg, var(--pwnedcr-dark-bg) 0%, var(--pwnedcr-brown-dark) 100%) !important;
  border: 2px solid var(--pwnedcr-gold-medium) !important;
  color: var(--pwnedcr-cream-light) !important;
}

.jumbotron h1 {
  font-size: 2.5rem !important;
  color: var(--pwnedcr-gold-medium) !important;
}

.jumbotron p {
  font-size: 1.1rem !important;
}

/* Botones */
.btn-primary {
  background-color: var(--pwnedcr-gold-medium) !important;
  border-color: var(--pwnedcr-gold-dark) !important;
  color: var(--pwnedcr-dark-bg) !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--pwnedcr-gold-dark) !important;
  border-color: var(--pwnedcr-brown-light) !important;
  transform: translateY(-1px);
}

.btn-success {
  background-color: var(--pwnedcr-green) !important;
  border-color: var(--pwnedcr-green) !important;
  color: var(--pwnedcr-dark-bg) !important;
  font-weight: 600 !important;
}

.btn-danger {
  background-color: var(--pwnedcr-red) !important;
  border-color: var(--pwnedcr-red-dark) !important;
  color: var(--pwnedcr-cream-lighter) !important;
  font-weight: 600 !important;
}

.btn-secondary {
  background-color: var(--pwnedcr-brown-medium) !important;
  border-color: var(--pwnedcr-brown-dark) !important;
  color: var(--pwnedcr-cream-light) !important;
}

.btn-info {
  background-color: var(--pwnedcr-blue) !important;
  border-color: var(--pwnedcr-blue-dark) !important;
  color: var(--pwnedcr-dark-bg) !important;
}

/* Cards */
.card {
  background-color: var(--pwnedcr-dark-secondary) !important;
  border: 1px solid var(--pwnedcr-brown-dark) !important;
  border-radius: 8px;
  color: var(--pwnedcr-cream-light) !important;
  transition: transform 0.2s ease;
}

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

.card-header {
  background-color: var(--pwnedcr-brown-dark) !important;
  color: var(--pwnedcr-gold-medium) !important;
  border-bottom: 2px solid var(--pwnedcr-gold-dark) !important;
  font-family: 'Stardos Stencil', serif !important;
  font-weight: 600 !important;
}

.card-body {
  color: var(--pwnedcr-cream-dark) !important;
}

.card-footer {
  background-color: var(--pwnedcr-dark-tertiary) !important;
  border-top: 1px solid var(--pwnedcr-brown-dark) !important;
}

/* Forms */
.form-control {
  background-color: var(--pwnedcr-dark-tertiary) !important;
  border: 1px solid var(--pwnedcr-brown-dark) !important;
  color: var(--pwnedcr-cream-light) !important;
}

.form-control:focus {
  background-color: var(--pwnedcr-dark-secondary) !important;
  border-color: var(--pwnedcr-gold-medium) !important;
  color: var(--pwnedcr-cream-light) !important;
  box-shadow: 0 0 0 0.2rem rgba(232, 190, 98, 0.25) !important;
}

.form-control::placeholder {
  color: var(--pwnedcr-gray) !important;
}

/* Tables */
.table {
  color: var(--pwnedcr-cream-dark) !important;
  background-color: var(--pwnedcr-dark-secondary) !important;
}

.table thead th {
  background-color: var(--pwnedcr-brown-dark) !important;
  color: var(--pwnedcr-gold-medium) !important;
  border-color: var(--pwnedcr-brown-medium) !important;
  font-family: 'Stardos Stencil', serif !important;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(59, 42, 26, 0.3) !important;
}

.table-hover tbody tr:hover {
  background-color: rgba(120, 90, 50, 0.2) !important;
}

/* Modals */
.modal-content {
  background-color: var(--pwnedcr-dark-secondary) !important;
  border: 2px solid var(--pwnedcr-brown-dark) !important;
  color: var(--pwnedcr-cream-light) !important;
}

.modal-header {
  background-color: var(--pwnedcr-brown-dark) !important;
  border-bottom: 2px solid var(--pwnedcr-gold-medium) !important;
}

.modal-title {
  color: var(--pwnedcr-gold-medium) !important;
  font-family: 'Stardos Stencil', serif !important;
}

.modal-footer {
  background-color: var(--pwnedcr-dark-tertiary) !important;
  border-top: 1px solid var(--pwnedcr-brown-dark) !important;
}

.close {
  color: var(--pwnedcr-cream-light) !important;
  opacity: 0.8;
}

.close:hover {
  color: var(--pwnedcr-red) !important;
  opacity: 1;
}

/* Links */
a {
  color: var(--pwnedcr-gold-medium) !important;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--pwnedcr-gold-dark) !important;
}

/* Badges */
.badge-primary {
  background-color: var(--pwnedcr-gold-medium) !important;
  color: var(--pwnedcr-dark-bg) !important;
}

.badge-success {
  background-color: var(--pwnedcr-green) !important;
  color: var(--pwnedcr-dark-bg) !important;
}

.badge-danger {
  background-color: var(--pwnedcr-red) !important;
  color: var(--pwnedcr-cream-lighter) !important;
}

.badge-info {
  background-color: var(--pwnedcr-blue) !important;
  color: var(--pwnedcr-dark-bg) !important;
}

/* Footer */
.footer {
  background-color: var(--pwnedcr-dark-tertiary) !important;
  border-top: 2px solid var(--pwnedcr-gold-medium) !important;
  color: var(--pwnedcr-gray) !important;
  padding: 2.5rem 0 !important;
}

.footer small {
  font-size: 0.95rem !important;
}

/* Alerts */
.alert-success {
  background-color: var(--pwnedcr-green) !important;
  border-color: var(--pwnedcr-green) !important;
  color: var(--pwnedcr-dark-bg) !important;
}

.alert-danger {
  background-color: var(--pwnedcr-red-dark) !important;
  border-color: var(--pwnedcr-red) !important;
  color: var(--pwnedcr-cream-lighter) !important;
}

.alert-warning {
  background-color: var(--pwnedcr-gold-dark) !important;
  border-color: var(--pwnedcr-gold-medium) !important;
  color: var(--pwnedcr-dark-bg) !important;
}

.alert-info {
  background-color: var(--pwnedcr-blue-dark) !important;
  border-color: var(--pwnedcr-blue) !important;
  color: var(--pwnedcr-cream-lighter) !important;
}

/* Pagination */
.page-item.active .page-link {
  background-color: var(--pwnedcr-gold-medium) !important;
  border-color: var(--pwnedcr-gold-dark) !important;
  color: var(--pwnedcr-dark-bg) !important;
}

.page-link {
  background-color: var(--pwnedcr-dark-secondary) !important;
  border-color: var(--pwnedcr-brown-dark) !important;
  color: var(--pwnedcr-cream-light) !important;
}

.page-link:hover {
  background-color: var(--pwnedcr-brown-medium) !important;
  border-color: var(--pwnedcr-gold-dark) !important;
  color: var(--pwnedcr-cream-light) !important;
}

/* Dropdown */
.dropdown-menu {
  background-color: var(--pwnedcr-dark-secondary) !important;
  border: 1px solid var(--pwnedcr-brown-dark) !important;
}

.dropdown-item {
  color: var(--pwnedcr-cream-light) !important;
}

.dropdown-item:hover {
  background-color: var(--pwnedcr-brown-medium) !important;
  color: var(--pwnedcr-gold-medium) !important;
}

/* Code blocks */
code, pre {
  font-family: 'Special Elite', monospace !important;
  background-color: var(--pwnedcr-dark-tertiary) !important;
  color: var(--pwnedcr-cream-light) !important;
}

pre {
  padding: 1rem;
  border: 1px solid var(--pwnedcr-brown-dark);
  border-radius: 6px;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--pwnedcr-dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--pwnedcr-brown-medium);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--pwnedcr-gold-dark);
}

/* Progress bars */
.progress {
  background-color: var(--pwnedcr-dark-tertiary) !important;
}

.progress-bar {
  background-color: var(--pwnedcr-gold-medium) !important;
}

/* Challenges */
.challenge-button {
  background-color: var(--pwnedcr-brown-medium) !important;
  border: 2px solid var(--pwnedcr-gold-dark) !important;
  color: var(--pwnedcr-cream-light) !important;
  transition: all 0.2s ease;
}

.challenge-button:hover {
  background-color: var(--pwnedcr-gold-medium) !important;
  color: var(--pwnedcr-dark-bg) !important;
  border-color: var(--pwnedcr-gold-medium) !important;
}

.challenge-solved {
  background-color: var(--pwnedcr-green) !important;
  border-color: var(--pwnedcr-green) !important;
  color: var(--pwnedcr-dark-bg) !important;
}

/* ========================================
   EFECTO SCANLINE - Línea dorada que baja
   ======================================== */

/* Línea de escaneo dorada que baja lentamente */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  z-index: 9999;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(232, 190, 98, 0.3) 50%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(232, 190, 98, 0.5);
  animation: scan-down 8s linear infinite;
}

@keyframes scan-down {
  0% {
    top: -3px;
  }
  100% {
    top: 100%;
  }
}
