/* ===== ARC RAIDERS VIBRANT THEME ===== */
/* Color Palette:
   - Red: #ff2d55 (hot/vibrant red-pink)
   - Cyan: #00e5ff (electric cyan)
   - Yellow: #ffe600 (vivid yellow)
   - Blue: #2979ff (electric blue)
   - Background: Deep navy #0a0e27
*/

:root {
  --arc-black: #0a0e27;
  --arc-dark-gray: #111640;
  --arc-gray: #1a2152;
  --arc-light-gray: #263070;
  --arc-red: #ff2d55;
  --arc-red-hover: #e0224a;
  --arc-yellow: #ffe600;
  --arc-yellow-hover: #e6cf00;
  --arc-green: #00e676;
  --arc-green-hover: #00c864;
  --arc-cyan: #00e5ff;
  --arc-cyan-hover: #00bcd4;
  --arc-blue: #2979ff;
  --arc-blue-hover: #1565c0;
  --arc-magenta: #d500f9;
  --arc-orange: #ff9100;
  --arc-text: #eef0ff;
  --arc-text-muted: #8e94c0;
}

html {
  font-size: 14px;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--arc-black) !important;
  background-image: url('/images/arc-raiders-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--arc-text) !important;
}

/* Vibrant overlay with color tints */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 14, 39, 0.92) 0%,
    rgba(17, 22, 64, 0.88) 30%,
    rgba(26, 33, 82, 0.85) 50%,
    rgba(41, 121, 255, 0.15) 70%,
    rgba(10, 14, 39, 0.92) 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* Ensure content is above the overlay */
.container,
header {
  position: relative;
  z-index: 1;
}

/* Main content area should grow to push footer down */
main {
  flex: 1 0 auto;
  padding-bottom: 2rem;
}

.container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* ===== NAVBAR ===== */
header {
  flex-shrink: 0;
}

.navbar {
  background: linear-gradient(90deg, rgba(10, 14, 39, 0.97), rgba(26, 33, 82, 0.95), rgba(10, 14, 39, 0.97)) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 3px solid transparent !important;
  border-image: linear-gradient(90deg, var(--arc-red), var(--arc-yellow), var(--arc-cyan), var(--arc-blue)) 1 !important;
}




.nav-link {
  color: var(--arc-text) !important;
  transition: color 0.3s, border-bottom 0.3s, text-shadow 0.3s;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--arc-cyan) !important;
  border-bottom: 2px solid var(--arc-cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

/* ===== CARDS ===== */
.card {
  background: linear-gradient(135deg, rgba(17, 22, 64, 0.95), rgba(26, 33, 82, 0.9)) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(41, 121, 255, 0.3) !important;
  box-shadow: 0 4px 20px rgba(41, 121, 255, 0.15), 0 0 0 1px rgba(0, 229, 255, 0.05);
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  color: var(--arc-text) !important;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 12px 30px rgba(0, 229, 255, 0.2),
    0 0 25px rgba(255, 45, 85, 0.15),
    0 0 50px rgba(41, 121, 255, 0.1);
  border-color: var(--arc-cyan) !important;
}

.card-header {
  background: linear-gradient(135deg, rgba(26, 33, 82, 0.9), rgba(38, 48, 112, 0.8)) !important;
  border-bottom: 2px solid transparent !important;
  border-image: linear-gradient(90deg, var(--arc-cyan), var(--arc-blue)) 1 !important;
  color: var(--arc-text) !important;
}

.card-body {
  background-color: rgba(17, 22, 64, 0.6) !important;
}

.card-footer {
  background: rgba(26, 33, 82, 0.7) !important;
  border-top: 1px solid rgba(41, 121, 255, 0.2) !important;
  color: var(--arc-text-muted) !important;
}

.card-title {
  color: var(--arc-cyan) !important;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.card-text {
  color: var(--arc-text) !important;
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--arc-blue), var(--arc-cyan)) !important;
  color: #fff !important;
  border-color: var(--arc-blue) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--arc-cyan), var(--arc-blue)) !important;
  box-shadow: 0 0 20px rgba(41, 121, 255, 0.6), 0 0 40px rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, var(--arc-green), var(--arc-cyan)) !important;
  color: var(--arc-black) !important;
  border-color: var(--arc-green) !important;
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--arc-cyan), var(--arc-green)) !important;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.5), 0 0 40px rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--arc-red), var(--arc-orange)) !important;
  color: white !important;
  border-color: var(--arc-red) !important;
}

.btn-danger:hover {
  background: linear-gradient(135deg, var(--arc-orange), var(--arc-red)) !important;
  box-shadow: 0 0 20px rgba(255, 45, 85, 0.6), 0 0 40px rgba(255, 145, 0, 0.3);
  transform: translateY(-2px);
}

.btn-warning {
  background: linear-gradient(135deg, var(--arc-yellow), var(--arc-orange)) !important;
  color: var(--arc-black) !important;
  border-color: var(--arc-yellow) !important;
}

.btn-warning:hover {
  background: linear-gradient(135deg, var(--arc-orange), var(--arc-yellow)) !important;
  box-shadow: 0 0 20px rgba(255, 230, 0, 0.5), 0 0 40px rgba(255, 145, 0, 0.3);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 2px solid var(--arc-blue) !important;
  color: var(--arc-cyan) !important;
  background-color: transparent !important;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--arc-blue), var(--arc-cyan)) !important;
  color: #fff !important;
  border-color: var(--arc-cyan) !important;
}

.btn-outline-secondary {
  border: 2px solid var(--arc-text-muted) !important;
  color: var(--arc-text) !important;
  background-color: transparent !important;
}

.btn-outline-secondary:hover {
  background: linear-gradient(135deg, var(--arc-gray), var(--arc-light-gray)) !important;
  color: var(--arc-cyan) !important;
}

.btn-link {
  color: var(--arc-cyan) !important;
}

.btn-link:hover {
  color: var(--arc-yellow) !important;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(255, 230, 0, 0.4);
}

/* ===== BADGES ===== */
.badge {
  font-weight: 600;
  padding: 0.5em 0.8em;
  border-radius: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.badge.bg-warning {
  background: linear-gradient(135deg, var(--arc-yellow), var(--arc-orange)) !important;
  color: var(--arc-black) !important;
}

.badge.bg-info {
  background: linear-gradient(135deg, var(--arc-cyan), var(--arc-blue)) !important;
  color: #fff !important;
}

.badge.bg-success {
  background: linear-gradient(135deg, var(--arc-green), var(--arc-cyan)) !important;
  color: var(--arc-black) !important;
}

.badge.bg-danger {
  background: linear-gradient(135deg, var(--arc-red), var(--arc-magenta)) !important;
  color: white !important;
}

.badge.bg-secondary {
  background: linear-gradient(135deg, var(--arc-gray), var(--arc-light-gray)) !important;
  color: var(--arc-text) !important;
  border: 1px solid rgba(41, 121, 255, 0.3);
}

.badge.bg-primary {
  background: linear-gradient(135deg, var(--arc-blue), var(--arc-cyan)) !important;
  color: #fff !important;
}

/* ===== TABLES ===== */
.table {
  background-color: rgba(17, 22, 64, 0.8) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--arc-text) !important;
  border: 1px solid rgba(41, 121, 255, 0.2);
}

.table thead th {
  background: linear-gradient(135deg, rgba(26, 33, 82, 0.95), rgba(38, 48, 112, 0.9)) !important;
  color: var(--arc-cyan) !important;
  border-color: rgba(41, 121, 255, 0.3) !important;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.3);
}

.table tbody tr {
  border-color: rgba(41, 121, 255, 0.15) !important;
  background-color: rgba(17, 22, 64, 0.5) !important;
}

.table tbody tr:hover {
  background: linear-gradient(135deg, rgba(41, 121, 255, 0.1), rgba(0, 229, 255, 0.05)) !important;
}

.table td, .table th {
  border-color: rgba(41, 121, 255, 0.15) !important;
}

/* ===== FORMS ===== */
.form-control {
  background-color: rgba(17, 22, 64, 0.8) !important;
  border: 2px solid rgba(41, 121, 255, 0.25) !important;
  color: var(--arc-text) !important;
  border-radius: 8px;
}

.form-control:focus {
  background-color: rgba(26, 33, 82, 0.9) !important;
  border-color: var(--arc-cyan) !important;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2), 0 0 15px rgba(0, 229, 255, 0.15) !important;
  color: var(--arc-text) !important;
}

.form-control::placeholder {
  color: var(--arc-text-muted) !important;
}

.form-select {
  background-color: rgba(17, 22, 64, 0.8) !important;
  border: 2px solid rgba(41, 121, 255, 0.25) !important;
  color: var(--arc-text) !important;
}

.form-select:focus {
  border-color: var(--arc-cyan) !important;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2), 0 0 15px rgba(0, 229, 255, 0.15) !important;
}

.form-label {
  color: var(--arc-cyan) !important;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.2);
}

.form-check-input {
  background-color: rgba(17, 22, 64, 0.8) !important;
  border: 2px solid rgba(41, 121, 255, 0.4) !important;
}

.form-check-input:checked {
  background: linear-gradient(135deg, var(--arc-cyan), var(--arc-blue)) !important;
  border-color: var(--arc-cyan) !important;
}

.form-check-label {
  color: var(--arc-text) !important;
}

.form-text {
  color: var(--arc-text-muted) !important;
}

textarea.form-control {
  background-color: rgba(17, 22, 64, 0.8) !important;
  color: var(--arc-text) !important;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: 8px;
  border: 2px solid;
  backdrop-filter: blur(8px);
}

.alert-success {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.12), rgba(0, 229, 255, 0.08)) !important;
  border-color: var(--arc-green) !important;
  color: var(--arc-green) !important;
}

.alert-danger {
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.12), rgba(255, 145, 0, 0.08)) !important;
  border-color: var(--arc-red) !important;
  color: var(--arc-red) !important;
}

.alert-warning {
  background: linear-gradient(135deg, rgba(255, 230, 0, 0.12), rgba(255, 145, 0, 0.08)) !important;
  border-color: var(--arc-yellow) !important;
  color: var(--arc-yellow) !important;
}

.alert-info {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(41, 121, 255, 0.08)) !important;
  border-color: var(--arc-cyan) !important;
  color: var(--arc-cyan) !important;
}

/* ===== TABS ===== */
.nav-tabs {
  border-bottom: 2px solid rgba(41, 121, 255, 0.3) !important;
}

.nav-tabs .nav-link {
  color: var(--arc-text-muted) !important;
  background-color: transparent !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
}

.nav-tabs .nav-link:hover {
  color: var(--arc-cyan) !important;
  border-bottom: 3px solid var(--arc-cyan) !important;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.nav-tabs .nav-link.active {
  color: var(--arc-yellow) !important;
  background-color: transparent !important;
  border-bottom: 3px solid var(--arc-yellow) !important;
  text-shadow: 0 0 8px rgba(255, 230, 0, 0.4);
}

.tab-content {
  background-color: transparent;
  padding-top: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  flex-shrink: 0;
  width: 100%;
  line-height: 60px;
  background: linear-gradient(90deg, rgba(10, 14, 39, 0.97), rgba(26, 33, 82, 0.95), rgba(10, 14, 39, 0.97)) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--arc-blue), var(--arc-cyan), var(--arc-yellow), var(--arc-red)) 1;
  color: var(--arc-text-muted) !important;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--arc-cyan) !important;
}

.footer a:hover {
  color: var(--arc-yellow) !important;
  text-shadow: 0 0 8px rgba(255, 230, 0, 0.4);
}

/* ===== TEXT COLORS ===== */
.text-muted {
  color: var(--arc-text-muted) !important;
}

.text-warning {
  color: var(--arc-yellow) !important;
}

.text-danger {
  color: var(--arc-red) !important;
}

.text-success {
  color: var(--arc-green) !important;
}

.text-info {
  color: var(--arc-cyan) !important;
}

.text-light {
  color: var(--arc-text) !important;
}

/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--arc-text) !important;
}

h1 {
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--arc-red), var(--arc-yellow), var(--arc-cyan)) 1;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.lead {
  color: var(--arc-text-muted) !important;
}

/* ===== LINKS ===== */
a {
  color: var(--arc-cyan) !important;
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}

a:hover {
  color: var(--arc-yellow) !important;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(255, 230, 0, 0.4);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--arc-black);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--arc-blue), var(--arc-cyan));
  border-radius: 6px;
  border: 2px solid var(--arc-black);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--arc-cyan), var(--arc-yellow));
  box-shadow: 0 0 8px var(--arc-cyan);
}

/* ===== RESPONSIVE TABLES ===== */
@media (max-width: 768px) {
  .table-responsive {
    overflow-x: auto;
  }
}

/* ===== LOADING STATE ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ===== GLOW EFFECTS ===== */
.btn:active,
.btn:focus {
  box-shadow: 0 0 25px currentColor, 0 0 50px rgba(41, 121, 255, 0.3) !important;
}

.card-hover-glow:hover {
  box-shadow:
    0 0 30px var(--arc-cyan),
    0 0 60px rgba(41, 121, 255, 0.2) !important;
}

/* ===== LIST GROUPS ===== */
.list-group-item {
  background-color: rgba(17, 22, 64, 0.8) !important;
  border: 1px solid rgba(41, 121, 255, 0.2) !important;
  color: var(--arc-text) !important;
}

.list-group-item:hover {
  background: linear-gradient(135deg, rgba(26, 33, 82, 0.9), rgba(41, 121, 255, 0.1)) !important;
}

/* ===== MODALS ===== */
.modal-content {
  background: linear-gradient(135deg, rgba(17, 22, 64, 0.98), rgba(26, 33, 82, 0.95)) !important;
  border: 2px solid var(--arc-blue) !important;
  color: var(--arc-text) !important;
  box-shadow: 0 0 40px rgba(41, 121, 255, 0.3), 0 0 80px rgba(0, 229, 255, 0.15);
}

.modal-header {
  border-bottom: 1px solid rgba(41, 121, 255, 0.3) !important;
}

.modal-footer {
  border-top: 1px solid rgba(41, 121, 255, 0.3) !important;
}

.modal-title {
  color: var(--arc-cyan) !important;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.btn-close {
  filter: invert(1);
}

/* ===== CUSTOM UTILITY CLASSES ===== */
.bg-arc-dark {
  background-color: var(--arc-dark-gray) !important;
}

.bg-arc-black {
  background-color: var(--arc-black) !important;
}

.border-arc-red {
  border-color: var(--arc-red) !important;
}

.border-arc-cyan {
  border-color: var(--arc-cyan) !important;
}

/* ===== HOVER ANIMATIONS ===== */
.btn, .card, .nav-link {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* ===== COOKIE CONSENT POPUP ===== */
.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 14, 39, 0.85);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-overlay.show {
  opacity: 1;
  visibility: visible;
}

.cookie-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 9999;
  background: linear-gradient(135deg, rgba(17, 22, 64, 0.98), rgba(26, 33, 82, 0.95));
  border: 2px solid var(--arc-cyan);
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  box-shadow:
    0 0 40px rgba(0, 229, 255, 0.3),
    0 0 80px rgba(41, 121, 255, 0.2),
    0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.cookie-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.cookie-popup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cookie-popup-icon {
  font-size: 2rem;
}

.cookie-popup-title {
  color: var(--arc-cyan) !important;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.cookie-popup-text {
  color: var(--arc-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cookie-popup-text a {
  color: var(--arc-cyan) !important;
  text-decoration: underline;
}

.cookie-popup-text a:hover {
  color: var(--arc-yellow) !important;
}

.cookie-popup-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cookie-popup .btn-accept {
  background: linear-gradient(135deg, var(--arc-green), var(--arc-cyan)) !important;
  color: var(--arc-black) !important;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 120px;
}

.cookie-popup .btn-accept:hover {
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.5), 0 0 50px rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
}

.cookie-popup .btn-decline {
  background-color: transparent !important;
  color: var(--arc-text-muted) !important;
  border: 2px solid rgba(41, 121, 255, 0.3) !important;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 120px;
}

.cookie-popup .btn-decline:hover {
  background: rgba(41, 121, 255, 0.1) !important;
  color: var(--arc-text) !important;
  border-color: var(--arc-blue) !important;
}

@media (max-width: 576px) {
  .cookie-popup {
    padding: 1.5rem;
    width: 95%;
  }

  .cookie-popup-buttons {
    flex-direction: column;
  }

  .cookie-popup .btn-accept,
  .cookie-popup .btn-decline {
    width: 100%;
  }
}
