/**
 * @file theme.css
 * Vexed Reflections: Minimalist MyOshi Edition (Animated Nav & Shadow)
 */

:root, .dark {
  /* Body background set to #1a1a1a to allow black elements to pop */
  --background: #1a1a1a; 
  --foreground: #ffffff;
  
  /* Card colors matching the MyOshi card-body */
  --card: #111111; 
  --card-foreground: #ffffff;
  
  --primary: #ffcc00; /* Vexar Yellow */
  --primary-foreground: #000000;
  
  --secondary: #000000;
  --muted: #222222;
  --muted-foreground: #aaaaaa;
  
  /* Pulling the MyOshi red in for alerts and asterisks */
  --accent: #df2935; 
  --border: #000000;
  --input: #111111;
  
  --font-sans: "Roboto Flex", "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Fira Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  --radius: 4px;
  --spacing: 0.25rem;
  
  /* Navbar height calibration */
  --navbar-height: calc(var(--spacing) * 12); 
}

/* --- Body Aesthetic (Inspired by MyOshi GIF background) --- */
body {
    background-color: var(--background) !important;
    color: var(--foreground) !important;
    background-image: url('https://vexedreflections.com/img/VexScrollingText.gif') !important;
    background-repeat: repeat !important;
    background-attachment: fixed !important;
}

/* --- Layout & Header --- */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  
  /* VexarMyOshi Header Gradient */
  background: linear-gradient(to bottom, #ffc000, #ffcc00) !important;
  border-bottom: 1px solid #000000 !important;
  
  /* Inset yellow glow + 30px black drop shadow */
  box-shadow: inset 0 0 0 1px #ffdb00, 0 10px 30px rgba(0, 0, 0, 1.0) !important;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 !important; /* Removed padding to let nav links fill height */
}

/* --- Navigation & Swipe Animation --- */
#block-mercury-main-menu nav ul {
  display: flex;
  gap: 0; /* Links will sit flush for a cleaner swipe box */
  list-style: none;
  margin: 0;
  padding: 0;
  background: none !important; 
  margin-left: 25px !important; /* Shifting interior 25px right */
}

#block-mercury-main-menu nav ul li {
  background: transparent !important; 
  box-shadow: none !important;
  display: flex;
  align-items: center;
}

#block-mercury-main-menu nav ul li a {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden; /* Clips the background swipe */
  background: transparent !important; 
  color: #000000 !important; /* Black text on yellow bar */
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-size: 1rem; 
  font-weight: 700 !important; /* Unbold as requested */
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 1rem 1.5rem !important; /* Larger hit area for the black box */
  transition: color 0.3s ease;
}

/* The Swipe Background Element */
#block-mercury-main-menu nav ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0; /* Starts at zero width */
  height: 100%;
  background: #000000; /* Black swipe background */
  z-index: -1;
  transition: width 0.3s ease-in-out; /* Swipe animation */
}

/* Hover States */
#block-mercury-main-menu nav ul li a:hover {
  color: #ffcc00 !important; /* Turn text yellow on hover */
}

#block-mercury-main-menu nav ul li a:hover::before {
  width: 100%; /* Swipe expands from left to right */
}

/* --- Forms & Login Styling --- */
.form-item label {
  color: #ffffff !important;
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

input[type="text"], input[type="password"], input[type="email"], input[type="search"] {
  background: var(--input) !important;
  border: 1px solid var(--primary) !important;
  color: #fff !important;
  padding: 0.75rem !important;
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="search"]:focus {
  border-color: #ffffff !important;
  outline: none;
}

.form-submit {
  background: var(--primary) !important;
  color: #000 !important;
  text-transform: uppercase;
  font-weight: 900;
  border: none !important;
  padding: 0.75rem 2rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.form-submit:hover {
  background: #000 !important;
  color: var(--primary) !important;
  box-shadow: inset 0 0 0 2px var(--primary) !important;
}

/* --- Global List Cleaning --- */
ul.links, .item-list ul {
  list-style: none !important;
  padding: 0 !important;
  margin-top: 1rem !important;
}

ul.links li a, .item-list ul li a {
  color: var(--muted-foreground);
  font-size: 0.8rem;
  text-decoration: none;
}

ul.links li a:hover {
  color: #ffffff;
}

.form-required::after {
  color: var(--accent) !important;
  content: " *";
}