/* ============================================
   DELRAF — base.css
   Paleta: fondo oscuro carbón, acento verde lima,
   tipografía Syne (display) + Space Mono (código/detalles)
   ============================================ */

   :root {
  --clr-bg:        #1B2412;
  --clr-surface:   rgba(27, 36, 18, 0.6);
  /* ---------- Variables ---------- */
  --clr-border:    #304020;
  --clr-accent:    #FF6700;
  --clr-accent-dk: #cc5200;
  --clr-text:      #F9F6EE;
  --clr-muted:     #a0ad99;
  --clr-white:     #ffffff;
  --clr-btn:       #C2B280;
  --clr-string:    #39ff14;

  --font-display: 'Syne', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 4px 24px rgba(0,0,0,.45);
  --transition: .2s ease;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  font-size: 1rem;
  transition: font-size 0.3s ease;
}

/* Accessibility */
body.font-large {
  font-size: 1.15rem;
}
body.font-xlarge {
  font-size: 1.3rem;
}

/* ---------- Accesibilidad: Skip links ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--clr-accent);
  color: var(--clr-bg);
  padding: .5rem 1rem;
  font-weight: 700;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ---------- Navbar ---------- */
#mainNav {
  background: rgba(15, 17, 23, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: .75rem 0;
  transition: background var(--transition);
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--clr-white) !important;
  letter-spacing: -0.5px;
}

.brand-accent {
  color: var(--clr-accent);
}

.nav-link {
  color: var(--clr-muted) !important;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .3px;
  padding: .4rem .75rem !important;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-accent) !important;
  background: rgba(163, 230, 53, .08);
}

/* ---------- Site Header / Hero ---------- */
.site-header {
  background: linear-gradient(135deg, #181c27 0%, #0f1117 60%, #141a10 100%);
  border-bottom: 1px solid var(--clr-border);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

/* decoración de fondo */
.site-header::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163,230,53,.12) 0%, transparent 70%);
  pointer-events: none;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.greeting-badge {
  display: inline-block;
  background: rgba(163,230,53,.12);
  color: var(--clr-accent);
  font-family: var(--font-mono);
  font-size: .8rem;
  padding: .3rem .8rem;
  border-radius: 100px;
  border: 1px solid rgba(163,230,53,.25);
  width: fit-content;
}

.site-logo {
  width: 80px;
  height: auto;
  border-radius: var(--radius-md);
  border: 2px solid var(--clr-border);
  box-shadow: var(--shadow-card);
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--clr-white);
  margin: 0;
  letter-spacing: -1px;
  line-height: 1.1;
}

.site-subtitle {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--clr-accent);
  margin: .4rem 0 0;
  letter-spacing: 1px;
}

/* ---------- Console Subtitle ---------- */
.console-subtitle-container {
  background: rgba(15, 17, 23, 0.6); /* Gris carbón profundo */
  padding: 1rem 1.4rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.5rem;
  border: 1px solid rgba(255,103,0,0.2);
}
.symbol-accent {
  color: var(--clr-accent);
}
.string-accent {
  color: var(--clr-string);
}

/* ---------- Main content ---------- */
.main-content {
  padding: 3rem 0 4rem;
  min-height: 60vh;
}

/* ---------- Tipografía ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--clr-white);
  margin-top: 2rem;
  margin-bottom: .75rem;
  line-height: 1.2;
}

h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; color: var(--clr-accent); }

p { margin-bottom: 1.2rem; color: var(--clr-text); }

a {
  color: var(--clr-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--clr-accent-dk); text-decoration: underline; }

hr {
  border-color: var(--clr-border);
  opacity: 1;
  margin: 2rem 0;
}

/* ---------- Listas ---------- */
ul, ol {
  padding-left: 1.4rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: .5rem;
  color: var(--clr-text);
}

ul:not(.feature-list):not(.navbar-nav):not(.dropdown-menu) {
  list-style-type: none;
}
ul:not(.feature-list):not(.navbar-nav):not(.dropdown-menu) li::before {
  content: '•';
  color: var(--clr-accent);
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  font-weight: bold;
}

/* ---------- Cards ---------- */
.card-delraf {
  background: rgba(27, 36, 18, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.card-delraf:hover {
  border-color: rgba(255, 103, 0, 0.4); /* subtle orange glow border */
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 103, 0, 0.15);
}

/* ---------- Badges / Tags ---------- */
.tag {
  display: inline-block;
  background: rgba(255, 103, 0, 0.1);
  color: var(--clr-accent);
  border: 1px solid rgba(255, 103, 0, 0.25);
  border-radius: 100px;
  padding: .3rem .85rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .5px;
  transition: all 0.3s ease;
  cursor: default;
}
.tag:hover {
  background: rgba(255, 103, 0, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 103, 0, 0.2);
}

/* ---------- Botones ---------- */
.btn-delraf {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--clr-btn);
  color: #111;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  padding: .7rem 1.6rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(194, 178, 128, 0.2);
}
.btn-delraf:hover {
  background: #d4c599; /* slightly lighter arena */
  color: #000;
  transform: translateY(-2px) scale(1.02);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(194, 178, 128, 0.4);
}

.btn-delraf-outline {
  background: transparent;
  color: var(--clr-accent);
  border: 1.5px solid var(--clr-accent);
}
.btn-delraf-outline:hover {
  background: rgba(163,230,53,.1);
  color: var(--clr-accent);
}

/* ---------- Lista de features ---------- */
.feature-list {
  list-style: none;
  padding: 0;
}
.feature-list li {
  padding: .6rem 0;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.feature-list li::before {
  content: '→';
  color: var(--clr-accent);
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}
.feature-list li:last-child { border-bottom: none; }

/* ---------- Sección divider ---------- */
.section-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--clr-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

/* ---------- Imágenes ---------- */
img { max-width: 100%; height: auto; }

.border-image {
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 4px;
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 2.5rem 0;
  color: var(--clr-muted);
  font-size: .9rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--clr-white);
}

.footer-location {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--clr-muted);
  margin-bottom: 0;
}

.footer-link {
  color: var(--clr-accent);
  font-size: .85rem;
}
.footer-link:hover { color: var(--clr-accent-dk); }

/* ---------- Alertas Bootstrap override ---------- */
.alert {
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text);
}

/* ---------- Utilidades extras ---------- */
.text-accent   { color: var(--clr-accent) !important; }
.text-muted-d  { color: var(--clr-muted)  !important; }
.bg-surface    { background: var(--clr-surface); }
.font-mono     { font-family: var(--font-mono); }
.radius-md     { border-radius: var(--radius-md); }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 576px) {
  .site-header { padding: 2rem 0 1.5rem; }
  .site-title  { font-size: 2rem; }
  .site-logo   { width: 60px; }
}

.auth-wrapper {
  display: flex;
  justify-content: center;
  padding: 2rem 0 4rem;
}

.auth-card {
  background: rgba(27, 36, 18, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon {
  font-size: 2.5rem;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
}

.auth-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--clr-white);
  margin-bottom: 0.3rem;
}

.auth-subtitle {
  color: var(--clr-muted);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

.auth-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
  display: block;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
}

.auth-input {
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--clr-white) !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem 1rem 0.75rem 2.75rem !important;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  width: 100%;
}

.auth-input:focus {
  border-color: var(--clr-accent) !important;
  box-shadow: 0 0 0 3px rgba(255, 103, 0, 0.15) !important;
  outline: none;
  background: rgba(0, 0, 0, 0.3) !important;
}

.auth-input.is-invalid {
  border-color: #e74c3c !important;
}

.auth-input::placeholder {
  color: rgba(255,255,255,0.2);
}

.auth-help {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--clr-muted);
  margin-top: 0.4rem;
  line-height: 1.5;
}

.auth-btn {
  background: var(--clr-btn);
  color: #111 !important;
  border: none;
  border-radius: 0.5rem;
  padding: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(194, 178, 128, 0.2);
}

.auth-btn:hover {
  background: #d4c599;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(194, 178, 128, 0.4);
}

.auth-footer {
  text-align: center;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: var(--clr-muted);
  font-size: 0.9rem;
}

.auth-link {
  color: var(--clr-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-link:hover {
  text-decoration: underline;
  color: var(--clr-accent-dk);
}

.auth-link-small {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  text-decoration: none;
  transition: color 0.3s ease;
}

.auth-link-small:hover {
  color: var(--clr-accent);
}

.invalid-feedback {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: block;
  margin-top: 0.3rem;
  color: #e74c3c;
}

/* ---------- Profile Layout ---------- */
.profile-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--clr-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: #111;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(194, 178, 128, 0.2);
}

.profile-meta {
  flex: 1;
}

.profile-username {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--clr-white);
  margin-bottom: 0.3rem;
}

.profile-bio {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.profile-bio.empty {
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

.profile-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
}

.badge-staff {
  background: rgba(255, 103, 0, 0.15);
  color: var(--clr-accent);
  border: 1px solid rgba(255, 103, 0, 0.3);
}

.badge-joined {
  background: rgba(255, 255, 255, 0.05);
  color: var(--clr-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-left: auto;
}

.btn-edit {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.5rem 0.9rem;
  transition: all 0.3s ease;
}

.btn-edit:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.btn-logout {
  background: transparent;
  color: rgba(255, 100, 80, 0.8);
  border: 1px solid rgba(255, 100, 80, 0.25);
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.5rem 0.9rem;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: rgba(255, 100, 80, 0.1);
  color: #ff6450;
  transform: translateY(-2px);
}

/* ─── Info grid ─── */
.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.info-card {
  background: rgba(27, 36, 18, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  transition: border-color 0.3s ease;
}

.info-card:hover { border-color: rgba(255, 103, 0, 0.3); }

.info-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.4rem;
}

.info-value {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.info-value.muted {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.active { background: #2ecc71; }
.status-dot.inactive { background: #e74c3c; }

/* ─── Modal ─── */
.edit-modal-content {
  background: var(--clr-surface);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  color: var(--clr-text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.edit-modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-weight: 700;
}

.edit-modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-secondary-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
