/* Games Shared Stylesheet
   Common styles for all game pages in the iivanovxyz games section.
   Designed to match the dark theme of skeleton_black.css. */

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: #111111;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* === Common Links === */
a {
  color: #64b5f6;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #90caf9;
  text-decoration: underline;
}

/* === Common Buttons === */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  color: #ffffff;
  background-color: #1e88e5;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: #42a5f5;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.35);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: #37474f;
}

.btn-secondary:hover {
  background-color: #546e7a;
  box-shadow: 0 4px 12px rgba(84, 110, 122, 0.35);
}

/* === Layout Container === */
.games-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

/* === Common Header === */
.games-header {
  text-align: center;
  padding: 60px 20px 40px 20px;
  border-bottom: 1px solid #2a2a2a;
}

.games-header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.games-header .subtitle {
  font-size: 1.15rem;
  color: #999999;
  margin: 0;
  font-weight: 400;
}

/* Bar-style header for individual game pages */
.game-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background-color: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.game-page-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #90a4ae;
  transition: color 0.2s ease;
}

.game-page-header .back-link:hover {
  color: #64b5f6;
  text-decoration: none;
}

.game-page-header .back-link .arrow {
  font-size: 1.2rem;
}

.game-page-header .game-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
}

.game-page-header .game-icon {
  font-size: 1.6rem;
}

/* === Game Container Layout === */
.game-content {
  padding: 30px 20px 60px 20px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-content-inner {
  width: 100%;
  max-width: 700px;
}

/* === Game Card Grid (for hub page) === */
.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 40px 0;
}

/* === Individual Game Card === */
.game-card {
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: #3a3a3a;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.game-card .card-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.game-card h3 {
  font-size: 1.4rem;
  margin: 0 0 12px 0;
  color: #ffffff;
  font-weight: 600;
}

.game-card p {
  font-size: 0.95rem;
  color: #aaaaaa;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.game-card .btn {
  width: 100%;
}

/* === Footer === */
.games-footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid #2a2a2a;
  margin-top: auto;
}

.games-footer p {
  font-size: 0.85rem;
  color: #666666;
  margin: 0;
}

.games-footer a {
  color: #666666;
}

.games-footer a:hover {
  color: #90caf9;
}

/* === Animations === */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 8px rgba(0, 117, 235, 0.2);
  }
  50% {
    box-shadow: 0 0 16px rgba(108, 60, 225, 0.35);
  }
  100% {
    box-shadow: 0 0 8px rgba(0, 117, 235, 0.2);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-down {
  animation: slideDown 0.5s ease-out forwards;
}

.animate-glow {
  animation: glowPulse 3s ease-in-out infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Staggered entrance for cards */
.game-card:nth-child(1) { animation-delay: 0.05s; }
.game-card:nth-child(2) { animation-delay: 0.15s; }
.game-card:nth-child(3) { animation-delay: 0.25s; }
.game-card:nth-child(4) { animation-delay: 0.35s; }
.game-card:nth-child(5) { animation-delay: 0.45s; }

/* === Placeholder for empty game board area === */
.game-board {
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 40px;
  margin: 20px 0;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  font-size: 1rem;
}

/* === Responsive Design ===================================== */

/* Tablets */
@media screen and (max-width: 768px) {
  .game-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .games-header h1 {
    font-size: 2.2rem;
  }

  .games-header .subtitle {
    font-size: 1.05rem;
  }

  .game-card {
    padding: 24px 20px;
  }

  .game-page-header .game-title {
    font-size: 1.15rem;
  }

  .game-content {
    padding: 20px 16px 40px 16px;
  }

  .games-container {
    padding: 12px;
  }
}

/* Small mobile */
@media screen and (max-width: 480px) {
  .games-header {
    padding: 40px 16px 28px 16px;
  }

  .games-header h1 {
    font-size: 1.8rem;
  }

  .game-cards {
    gap: 12px;
    padding: 20px 0;
  }

  .game-card {
    padding: 20px 16px;
  }

  .game-card .card-icon {
    font-size: 2.4rem;
  }

  .game-card h3 {
    font-size: 1.2rem;
  }

  .game-page-header {
    padding: 12px 16px;
  }

  .game-page-header .back-link span.label {
    display: none;
  }

  .game-content {
    padding: 16px 12px 32px 12px;
  }

  .btn {
    padding: 8px 18px;
    font-size: 0.88rem;
  }

  .games-footer p {
    font-size: 0.78rem;
  }
}

/* Desktop wide - pull cards a bit wider via container */
@media screen and (min-width: 1200px) {
  .games-container {
    max-width: 1080px;
  }
}

/* === Utility ============================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/usr/bin/bash: line 5: /tmp/hermes-snap-7283dc2e64c6.sh: Read-only file system
/usr/bin/bash: line 6: /tmp/hermes-cwd-7283dc2e64c6.txt: Read-only file system
