/* Main Menu CSS - copied and adapted from index.html and assets/game/game.css */

html, body {
  height: 100%;
  font-family: 'Blinker', Arial, sans-serif;
}
body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0d0d0d;
  color: #fff;
}

.special-gothic-expanded-one-regular {
  font-family: "Special Gothic Expanded One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.main-menu-panel {
  max-width: 400px;
  width: 100%;
}

.btn-light {
  color: #23272a;
  background: #fff;
  border: none;
}

.btn-light:hover, .btn-light:focus {
  background: #e0e0e0;
  color: #111;
}

/* Slot List and Load Slot Styles (from game.css) */
.slot-list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Add extra space below the autosave slot (first .load-slot) */
.slot-list .load-slot:first-child {
  margin-bottom: 2.5rem;
}

.load-slot {
  display: block;
  width: 100%;
  min-height: 60px;
  padding: 1rem 1.25rem;
  margin: 0;
  background: rgba(13, 13, 13, 0.7);
  border: 2px solid rgba(0, 240, 255, 0.3);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.load-slot .slot-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.load-slot .delete-save {
  color: #00f0ff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.load-slot .delete-save:hover {
  color: #00f0ff;
  background: #00f0ff22;
  border-radius: 0.25rem;
}

.load-slot sub {
  display: block;
  width: 100%;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  font-family: 'Segoe UI', sans-serif;
  text-align: left;
  transition: color 0.2s;
}

.load-slot:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.load-slot:hover sub {
  color: #fff;
}

.load-slot.empty {
  color: rgba(0, 240, 255, 0.4);
}

.load-slot.empty sub {
  color: rgba(255, 255, 255, 0.4);
}

/* Utility classes for icons and spacing */
.me-2 { margin-right: 0.5rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.w-100 { width: 100% !important; }
.text-center { text-align: center !important; }

/* --- Modal Glow and Border Styles (from game.css) --- */
.load-modal .modal-dialog {
  max-width: 500px;
  margin: 1.75rem auto;
  width: calc(100% - 2rem);
}

.load-modal .modal-content {
  background: rgba(13, 13, 13, 0.95);
  border: 2px solid #00f0ff;
  box-shadow: 0 0 18px 2px rgba(0, 240, 255, 0.18), 0 0 24px 2px rgba(0, 240, 255, 0.12);
  backdrop-filter: blur(8px);
  width: 100%;
}

.load-modal .modal-header {
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding: 1rem 1.5rem;
  background: rgba(13, 13, 13, 0.4);
}

.load-modal .modal-title {
  color: #00f0ff;
  font-family: "Special Gothic Expanded One", sans-serif;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.load-modal .btn-close {
  background-color: transparent;
  border: none;
  color: #00f0ff;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.load-modal .btn-close:hover {
  opacity: 1;
  text-shadow: 0 0 8px #00f0ff;
}

.load-modal .modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(13, 13, 13, 0.4);
  width: 100%;
}

.load-slot {
  box-shadow: none;
  border: 2px solid rgba(0, 240, 255, 0.3);
  background: rgba(13, 13, 13, 0.7);
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.load-slot:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: #00f0ff;
  box-shadow: 0 0 15px #00f0ff, 0 0 24px #00f0ff;
}

.import-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  background: rgba(13, 13, 13, 0.7);
  border: 2px solid #00f0ff;
  border-radius: 0.5rem;
  color: #00f0ff;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
}
.import-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: #00f0ff;
  color: #fff;
  box-shadow: 0 0 10px #00f0ff;
}
.import-btn:hover i {
  color: #fff;
}

:root {
  --base-font-size: 16px;
  --ui-scale: 1;
}

body, html {
  font-size: var(--base-font-size);
}

.main-menu-panel, .modal-content, .modal-header, .modal-body, .modal-title, .slot-list, .load-slot, .import-btn {
  font-size: 1rem;
  transition: font-size 0.2s, transform 0.2s;
}

.main-menu-panel, .load-modal .modal-dialog {
  transform: scale(var(--ui-scale));
  transition: transform 0.2s;
}

/* Settings modal button consistency */
#settingsModal .btn {
  min-width: 2.5rem;
  font-size: 1.1rem;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
#settingsModal .btn-outline-info:hover, #settingsModal .btn-outline-info:focus {
  background: rgba(0,240,255,0.1);
  color: #fff;
  border-color: #00f0ff;
}
#settingsModal .btn-outline-secondary:hover, #settingsModal .btn-outline-secondary:focus {
  background: #444;
  color: #fff;
  border-color: #888;
}

/* Credits/About section styling */
#settingsModal .credits-section {
  background: #1b1d1f;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Toast Styles */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 220px;
    max-width: 360px;
    padding: 12px 20px;
    margin-bottom: 10px;
    background: rgba(30, 30, 30, 0.8);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;
    z-index: 9999;
}
.toast.show {
    opacity: 1;
    transform: translateX(0);
}
.toast-success {
    background: rgba(0, 255, 255, 0.1);
    border-left: 4px solid #00f0ff;
    color: #00f0ff;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.7);
}
.toast-error {
    background: rgba(255, 50, 100, 0.1);
    border-left: 4px solid #ff3270;
    color: #ff3270;
    box-shadow: 0 0 12px rgba(255, 50, 100, 0.7);
}
.toast-warning {
    background: rgba(255, 200, 0, 0.1);
    border-left: 4px solid #ffc800;
    color: #ffc800;
    box-shadow: 0 0 12px rgba(255, 200, 0, 0.7);
} 

.blinker-thin {
  font-family: "Blinker", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.blinker-extralight {
  font-family: "Blinker", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.blinker-light {
  font-family: "Blinker", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.blinker-regular {
  font-family: "Blinker", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.blinker-semibold {
  font-family: "Blinker", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.blinker-bold {
  font-family: "Blinker", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.blinker-extrabold {
  font-family: "Blinker", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.blinker-black {
  font-family: "Blinker", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.blinker-thin {
  font-family: "Blinker", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.blinker-extralight {
  font-family: "Blinker", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.blinker-light {
  font-family: "Blinker", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.blinker-regular {
  font-family: "Blinker", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.blinker-semibold {
  font-family: "Blinker", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.blinker-bold {
  font-family: "Blinker", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.blinker-extrabold {
  font-family: "Blinker", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.blinker-black {
  font-family: "Blinker", sans-serif;
  font-weight: 900;
  font-style: normal;
}

/* --- Cyberpunk Glitch/Chromatic Aberration Effect --- */
.glitch-cyber {
  position: relative;
  color: #fff;
  display: inline-block;
  z-index: 2;
  text-shadow: none;
  overflow: visible;
}
.glitch-cyber::before, .glitch-cyber::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0.7;
  z-index: 1;
  color: #00f0ff;
  mix-blend-mode: lighten;
  animation: glitch-cyber 2.2s infinite linear alternate-reverse;
}
.glitch-cyber::after {
  color: #ff3270;
  left: 2px;
  top: 1px;
  opacity: 0.5;
  animation: glitch-cyber2 2.2s infinite linear alternate-reverse;
}
@keyframes glitch-cyber {
  0% { transform: translate(0,0) scaleX(1); opacity: 0.7; }
  10% { transform: translate(-2px,1px) scaleX(1.01); opacity: 0.8; }
  20% { transform: translate(2px,-1px) scaleX(0.99); opacity: 0.7; }
  30% { transform: translate(-1px,2px) scaleX(1.01); opacity: 0.8; }
  40% { transform: translate(1px,-2px) scaleX(0.99); opacity: 0.7; }
  50% { transform: translate(-2px,1px) scaleX(1.01); opacity: 0.8; }
  60% { transform: translate(2px,-1px) scaleX(0.99); opacity: 0.7; }
  70% { transform: translate(-1px,2px) scaleX(1.01); opacity: 0.8; }
  80% { transform: translate(1px,-2px) scaleX(0.99); opacity: 0.7; }
  90% { transform: translate(-2px,1px) scaleX(1.01); opacity: 0.8; }
  100% { transform: translate(0,0) scaleX(1); opacity: 0.7; }
}
@keyframes glitch-cyber2 {
  0% { transform: translate(0,0) scaleX(1); opacity: 0.5; }
  10% { transform: translate(2px,-1px) scaleX(1.01); opacity: 0.6; }
  20% { transform: translate(-2px,1px) scaleX(0.99); opacity: 0.5; }
  30% { transform: translate(1px,-2px) scaleX(1.01); opacity: 0.6; }
  40% { transform: translate(-1px,2px) scaleX(0.99); opacity: 0.5; }
  50% { transform: translate(2px,-1px) scaleX(1.01); opacity: 0.6; }
  60% { transform: translate(-2px,1px) scaleX(0.99); opacity: 0.5; }
  70% { transform: translate(1px,-2px) scaleX(1.01); opacity: 0.6; }
  80% { transform: translate(-1px,2px) scaleX(0.99); opacity: 0.5; }
  90% { transform: translate(2px,-1px) scaleX(1.01); opacity: 0.6; }
  100% { transform: translate(0,0) scaleX(1); opacity: 0.5; }
}
