@import './scrollbar.css';

:root {
  /* --- Glassmorphism Design System --- */
  --bg-gradient: linear-gradient(135deg, #43C6AC 0%, #191654 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --text-color: #ffffff;
  --text-strong: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.7);
  --accent-cyan: #00f2fe;
  --accent-purple: #4facfe;
  --primary-accent: #00f2fe;
  --cell-empty: rgba(255, 255, 255, 0.05);
  --cell-hover: rgba(255, 255, 255, 0.2);
  --cell-filled-gradient: linear-gradient(45deg, #00f2fe, #4facfe);
  --cell-x-color: rgba(255, 255, 255, 0.4);
  --title-glow: rgba(0, 255, 255, 0.2);
  --toggle-bg: rgba(255, 255, 255, 0.08);
  --toggle-border: rgba(255, 255, 255, 0.2);
  --toggle-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  --toggle-btn-border: rgba(255, 255, 255, 0.2);
  --toggle-hover-border: #ffffff;
  --toggle-active-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
  --banner-bg: rgba(0, 0, 0, 0.35);
  --banner-border: rgba(0, 242, 254, 0.35);
  --banner-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  --panel-bg: rgba(255, 255, 255, 0.1);
  --panel-border: rgba(255, 255, 255, 0.1);
  --panel-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  --panel-bg-strong: rgba(0, 0, 0, 0.3);
  --modal-overlay: rgba(0, 0, 0, 0.7);
  --fixed-bar-bg: rgba(0, 0, 0, 0.85);
  --fixed-bar-border: rgba(255, 255, 255, 0.1);
  --fixed-bar-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --progress-track-bg: rgba(255, 255, 255, 0.1);
  --hint-bg: rgba(255, 255, 255, 0.05);
  --hint-border: rgba(255, 255, 255, 0.1);
  --hint-hover-bg: rgba(255, 255, 255, 0.1);
  --button-bg: rgba(255, 255, 255, 0.1);
  --button-border: rgba(255, 255, 255, 0.2);
  --button-text: #ffffff;
  --button-hover-bg: rgba(255, 255, 255, 0.25);
  --button-hover-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  --button-active-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
  --button-secondary-bg: rgba(0, 0, 0, 0.2);
  --button-secondary-border: rgba(255, 255, 255, 0.1);
  --button-secondary-text: rgba(255, 255, 255, 0.8);
  --button-secondary-hover-bg: rgba(255, 255, 255, 0.1);
  --button-secondary-hover-border: #ffffff;
  --button-secondary-hover-text: #ffffff;
  --scroll-track: rgba(0, 0, 0, 0.1);
  --scroll-thumb: rgba(255, 255, 255, 0.2);
  --scroll-thumb-hover: var(--accent-cyan);
  --fixed-bar-bg: rgba(0, 0, 0, 0.85);
  --fixed-bar-thumb: rgba(0, 242, 255, 0.5);
  --fixed-bar-thumb-hover: rgba(0, 242, 255, 0.8);
  
  /* Rozmiary */
  --cell-size: 30px;
  --gap-size: 2px;
  --hint-row-width: 100px;
  --grid-padding: 5px;
}

:root[data-theme="light"] {
  --bg-gradient: linear-gradient(135deg, #f7fbff 0%, #dde7ff 100%);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.12);
  --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.12);
  --text-color: #0f172a;
  --text-strong: #0f172a;
  --text-secondary: rgba(15, 23, 42, 0.7);
  --text-muted: rgba(15, 23, 42, 0.6);
  --accent-cyan: #0ea5e9;
  --accent-purple: #6366f1;
  --primary-accent: #0ea5e9;
  --cell-empty: rgba(15, 23, 42, 0.05);
  --cell-hover: rgba(15, 23, 42, 0.12);
  --cell-filled-gradient: linear-gradient(45deg, #0ea5e9, #6366f1);
  --cell-x-color: rgba(15, 23, 42, 0.35);
  --title-glow: rgba(14, 165, 233, 0.35);
  --toggle-bg: rgba(255, 255, 255, 0.85);
  --toggle-border: rgba(15, 23, 42, 0.12);
  --toggle-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  --toggle-btn-border: rgba(15, 23, 42, 0.18);
  --toggle-hover-border: rgba(15, 23, 42, 0.5);
  --toggle-active-shadow: 0 0 12px rgba(14, 165, 233, 0.25);
  --banner-bg: rgba(255, 255, 255, 0.8);
  --banner-border: rgba(14, 165, 233, 0.35);
  --banner-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  --panel-bg: rgba(255, 255, 255, 0.7);
  --panel-border: rgba(15, 23, 42, 0.12);
  --panel-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  --panel-bg-strong: rgba(15, 23, 42, 0.08);
  --modal-overlay: rgba(15, 23, 42, 0.45);
  --fixed-bar-bg: rgba(248, 250, 255, 0.95);
  --fixed-bar-border: rgba(15, 23, 42, 0.12);
  --fixed-bar-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  --progress-track-bg: rgba(15, 23, 42, 0.08);
  --hint-bg: rgba(255, 255, 255, 0.7);
  --hint-border: rgba(15, 23, 42, 0.12);
  --hint-hover-bg: rgba(15, 23, 42, 0.06);
  --button-bg: rgba(255, 255, 255, 0.85);
  --button-border: rgba(15, 23, 42, 0.16);
  --button-text: #0f172a;
  --button-hover-bg: rgba(255, 255, 255, 1);
  --button-hover-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  --button-active-shadow: 0 0 18px rgba(14, 165, 233, 0.25);
  --button-secondary-bg: rgba(15, 23, 42, 0.06);
  --button-secondary-border: rgba(15, 23, 42, 0.2);
  --button-secondary-text: rgba(15, 23, 42, 0.8);
  --button-secondary-hover-bg: rgba(15, 23, 42, 0.12);
  --button-secondary-hover-border: rgba(15, 23, 42, 0.5);
  --button-secondary-hover-text: #0f172a;
  --scroll-track: rgba(15, 23, 42, 0.08);
  --scroll-thumb: rgba(15, 23, 42, 0.2);
  --scroll-thumb-hover: #0ea5e9;
  --fixed-bar-bg: rgba(248, 250, 255, 0.95);
  --fixed-bar-thumb: rgba(14, 165, 233, 0.5);
  --fixed-bar-thumb-hover: rgba(14, 165, 233, 0.8);
}

* {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

html {
  width: 100%;
}

body {
  margin: 0;
  padding: 20px;
  font-family: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ensure no other content is visible */
#app {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Glass Panel Utility */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Button Styles */
button.btn-neon {
  background: var(--button-bg);
  border: 1px solid var(--button-border);
  color: var(--button-text);
  padding: 12px 24px;
  font-size: 0.95rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button.btn-neon:hover {
  background: var(--button-hover-bg);
  transform: translateY(-2px);
  box-shadow: var(--button-hover-shadow);
}

button.btn-neon.active {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-color: transparent;
  box-shadow: var(--button-active-shadow);
  font-weight: 700;
}

button.btn-neon.secondary {
  border-color: var(--button-secondary-border);
  background: var(--button-secondary-bg);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--scroll-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover);
}

/* Animations */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.5s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

@media (max-width: 768px) {
  :root {
    --gap-size: 1px;
    --hint-row-width: 72px;
  }
  body {
    padding: 12px;
  }
  button.btn-neon {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  :root {
    --hint-row-width: 60px;
  }
  body {
    padding: 8px;
  }
  button.btn-neon {
    padding: 9px 16px;
    font-size: 0.85rem;
  }
}
