/* ============================================
   NezQuest - Main Stylesheet
   ============================================ */

/* Base Styles */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #011627;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 80px;
}

/* CRT scanline effect */
.scanlines::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      transparent 50%,
      rgba(0, 0, 0, 0.1) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 5;
    /* Set this lower than your images */
    pointer-events: none;
  }

/* Grid pattern background */
.bg-grid {
  background-image:
    linear-gradient(rgba(46, 196, 182, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 196, 182, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -190%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 0%;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Glitter Progress Bars */
.glitter-bar {
    background: linear-gradient(90deg, 
        #e71d36 0%, 
        #ff9f1c 25%, 
        #2ec4b6 50%, 
        #ff9f1c 75%, 
        #e71d36 100%);
    background-size: 200% 100%;
    animation: glitter 2s linear infinite;
    position: relative;
    overflow: hidden;
}

.glitter-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes glitter {
    0% { background-position: 200% 0; }
    100% { background-position: 0 0; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Game item styling */
.game-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #333;
  transition: all 0.3s;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.game-item:hover {
  border-color: #ff9f1c;
  background: rgba(255, 159, 28, 0.1);
  transform: translateX(4px);
}

.game-item.owned {
  border-color: #2ec4b6;
  background: rgba(46, 196, 182, 0.1);
}

.game-item.missing {
  border-color: #e71d36;
  background: rgba(231, 29, 54, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #011627;
  border-left: 2px solid #2ec4b6;
}

::-webkit-scrollbar-thumb {
  background: #ff9f1c;
  border: 2px solid #011627;
}

::-webkit-scrollbar-thumb:hover {
  background: #e71d36;
}

/* Modal styling */
#login-modal {
  transition: opacity 0.3s;
}

#login-modal:not(.hidden) {
  display: flex !important;
}

/* Input styling */
input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.3);
}

/* Button hover effects */
button {
  cursor: pointer;
  transition: all 0.2s;
}

button:active {
  transform: translateY(2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .font-press-start {
    font-size: 0.7rem;
  }

  .game-item {
    padding: 0.5rem;
  }
}