/* ==========================================
   KODACHI MODERN DESIGN SYSTEM
   Shared styles for all pages
   Version: 1.0.0
   Last Updated: 2025-11-28
   ========================================== */

/* Design Tokens - Vibrant Neon Palette */
:root {
  /* Colors - Bright Neon Kodachi Colors */
  --cyan-300: #00ffff;
  --cyan-400: #00e6e6;
  --cyan-500: #00cccc;
  --green-400: #00ff00;
  --green-500: #00e600;
  --teal-400: #1abc9c;

  /* Neutrals - Dark Mode */
  --gray-950: #000000;
  --gray-900: #050505;
  --gray-800: #0a0a0a;
  --gray-700: #151515;
  --gray-600: #2a2a2a;
  --gray-400: #999999;
  --gray-300: #e0e0e0;
  --gray-100: #f5f5f5;

  /* Status Colors */
  --success: #00ff00;
  --warning: #ffcc00;
  --error: #ff3333;

  /* Spacing System (8px base) */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);

  /* Typography */
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   GLOBAL STYLES
   ========================================== */

/* Body Defaults */
body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #f0f0f0;
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links - cyan color, visited links keep same color */
a {
  color: #00ffff;
}

a:visited {
  color: #00ffff;
}

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */

/* Container - Modern Style */
.container {
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(0, 10, 10, 0.95);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}

/* Logo - Enhanced Glow */
.kodachi-logo {
  border: 2px solid var(--green-400);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
  background-color: rgba(0, 0, 0, 0.8);
  animation: logoGlow 3s infinite alternate;
}

@keyframes logoGlow {
  from {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    border-color: #00ff00;
  }
  to {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.7), 0 0 40px rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
  }
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

/* Headings - Vibrant Style */
h1 {
  color: var(--cyan-300);
  font-family: var(--font-display);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

h2 {
  color: rgba(0, 255, 255, 0.7);
  font-family: var(--font-display);
}

h3 {
  color: rgba(0, 255, 255, 0.7);
  font-family: var(--font-display);
}

/* Paragraphs */
p {
  font-size: 1.2rem;
  margin: 0.8rem 0;
  color: #f0f0f0;
}

/* ==========================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================== */

/* Buttons - Modern Style */
.back-btn,
.advance-btn,
button[class*="btn"]:not(.top-btn):not(.rss-action-btn):not(.map-action-btn):not(.ip-action-btn) {
  background: rgba(0, 255, 255, 0.1);
  color: var(--cyan-300);
  border: 1px solid var(--cyan-300);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  transition: all var(--transition-base);
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
  cursor: pointer;
  font-family: var(--font-display);
  margin: 0.5rem;
}

.back-btn:hover,
.advance-btn:hover,
button[class*="btn"]:not(.top-btn):not(.rss-action-btn):not(.map-action-btn):not(.ip-action-btn):hover {
  background: rgba(0, 255, 0, 0.1);
  border-color: var(--green-400);
  color: var(--green-400);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

/* Go to Top Button */
.top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(26, 188, 156, 0.1);
  color: var(--teal-400);
  border: 1px solid var(--teal-400);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 1000;
}

.top-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  color: var(--cyan-300);
  border-color: var(--cyan-300);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  transform: translateY(-2px);
}

.top-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

/* Focus States */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--cyan-300);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan-300);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.1);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

/* Version Info */
.version-info {
  color: var(--green-400);
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.4);
}

/* Links */
a {
  color: var(--cyan-300);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: #1abc9c;
  text-shadow: 0 0 5px rgba(26, 188, 156, 0.5);
}

/* Footer */
.footer {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 1rem;
  text-align: center;
  color: #cccccc;
}

/* Tables */
.table-container {
  margin: 20px 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  background: rgba(0, 10, 10, 0.3);
  border-radius: 10px;
  padding: 15px;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 0.9rem;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  word-break: break-word;
  overflow-wrap: break-word;
}

th {
  background-color: rgba(26, 188, 156, 0.1);
  color: #00ffff;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

tr:hover td {
  background-color: rgba(0, 70, 70, 0.5);
  border-color: rgba(0, 255, 255, 0.7);
}
