/* 
 * TRL Design System - Base Styles 
 * Base styling for the entire TRL application
 */

:root {
  --trl-primary: #00a4e4;
  --trl-secondary: #9900ff;
  --trl-accent: #ffdd00;
  --trl-pink: #ff0078;
  --trl-black: #111111;
  --trl-white: #ffffff;
  --trl-max-width: 800px;
  --trl-space-xs: 4px;
  --trl-space-sm: 8px;
  --trl-space-md: 16px;
  --trl-space-lg: 24px;
  --trl-space-xl: 32px;
  --trl-space-xxl: 48px;
  --trl-border-radius: 15px;
  --trl-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  --z-index-tooltip: 100;
  --trl-menu-background: #504b4b;
}

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-size: 16px;
  margin: 0;
  padding: 0;
  font-family: "Rubik", sans-serif;
  background-color: #000000;
  color: var(--trl-white);
  line-height: 1.5;
  min-height: 100vh;
}

/* Content container */
main {
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, #00a4e4, #9900ff);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.screen__container {
  padding: var(--trl-space-lg);
}

.screen--scrollable {
  /* overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  max-height: 100vh; */
}

/* .games-list {
  width: 100%;
  max-width: 600px;
  background: linear-gradient(135deg, #00a4e4, #9900ff);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  font-family: 'Rubik', sans-serif;
  color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 90vh;
  max-height: 700px;
  user-select: text;
}

.games-list::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
} */

/* .page-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--trl-primary), var(--trl-secondary));
  border-radius: 15px;
  overflow: scroll;
} */

/* Common utility classes */
/* .trl-container {
  width: 100%;
  max-width: var(--trl-max-width);
  margin: 0 auto;
  padding: 0 var(--trl-space-md);
  box-sizing: border-box;
} */

.trl-hidden {
  display: none !important;
}

.trl-screen-center {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  flex: 1;
}

/* Pattern background utility */
.trl-pattern-bg {
  position: relative;
}

.trl-pattern-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

/* Scanlines effect */
.trl-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 1px,
    rgba(0, 0, 0, 0.05) 1px,
    rgba(0, 0, 0, 0.05) 2px
  );
  pointer-events: none;
  z-index: 10;
  opacity: 0.3;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--trl-space-md) 0;
  font-weight: 900;
  line-height: 1.2;
}

h1.trl-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--trl-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

p {
  margin: 0 0 var(--trl-space-md) 0;
}

a {
  color: var(--trl-primary);
  text-decoration: none;
  transition: all 0.2s;
}

a:hover {
  text-decoration: underline;
}

/* Form elements */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Screen reader only - hide visually but maintain accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only-focusable:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  :root {
    --trl-space-md: 12px;
    --trl-space-lg: 20px;
    --trl-space-xl: 28px;
  }

  h1.trl-title {
    font-size: 24px;
  }
}
