/* SSL Games - Custom Styles */
/* This replaces Tailwind CDN for production use */

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.5;
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
.grid {
  display: grid;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.flex {
  display: flex;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}

/* Display */
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline-flex {
  display: inline-flex;
}

/* Spacing */
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.m-auto {
  margin: auto;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-12 {
  margin-bottom: 3rem;
}
.mb-16 {
  margin-bottom: 4rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mt-12 {
  margin-top: 3rem;
}
.ml-4 {
  margin-left: 1rem;
}
.ml-12 {
  margin-left: 3rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Sizing */
.w-full {
  width: 100%;
}
.w-8 {
  width: 2rem;
}
.h-8 {
  height: 2rem;
}
.min-h-screen {
  min-height: 100vh;
}
.min-h-100 {
  min-height: 100px;
}
.min-h-120 {
  min-height: 120px;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-5xl {
  max-width: 64rem;
}
.max-w-6xl {
  max-width: 72rem;
}

/* Colors - Dark Theme */
.bg-gray-900 {
  background-color: #111827;
}
.bg-slate-700 {
  background-color: #334155;
}
.bg-slate-800 {
  background-color: #1e293b;
}
.bg-slate-900 {
  background-color: #0f172a;
}
.bg-blue-600 {
  background-color: #2563eb;
}
.bg-blue-700 {
  background-color: #1d4ed8;
}
.bg-blue-900\/30 {
  background-color: rgba(30, 58, 138, 0.3);
}
.bg-green-600 {
  background-color: #16a34a;
}
.bg-green-700 {
  background-color: #15803d;
}
.bg-green-900\/30 {
  background-color: rgba(20, 83, 45, 0.3);
}
.bg-red-600 {
  background-color: #dc2626;
}
.bg-red-700 {
  background-color: #b91c1c;
}
.bg-red-900\/30 {
  background-color: rgba(127, 29, 29, 0.3);
}
.bg-purple-600 {
  background-color: #9333ea;
}
.bg-purple-700 {
  background-color: #7e22ce;
}
.bg-indigo-600 {
  background-color: #4f46e5;
}
.bg-indigo-700 {
  background-color: #4338ca;
}
.bg-cyan-600 {
  background-color: #0891b2;
}
.bg-cyan-700 {
  background-color: #0e7490;
}
.bg-yellow-600 {
  background-color: #ca8a04;
}
.bg-yellow-700 {
  background-color: #a16207;
}
.bg-orange-600 {
  background-color: #ea580c;
}
.bg-blue-600\/20 {
  background-color: rgba(37, 99, 235, 0.2);
}

.text-white {
  color: #ffffff;
}
.text-gray-200 {
  color: #e5e7eb;
}
.text-gray-300 {
  color: #d1d5db;
}
.text-gray-400 {
  color: #9ca3af;
}
.text-gray-500 {
  color: #6b7280;
}
.text-blue-200 {
  color: #bfdbfe;
}
.text-blue-300 {
  color: #93c5fd;
}
.text-blue-400 {
  color: #60a5fa;
}
.text-green-200 {
  color: #bbf7d0;
}
.text-green-300 {
  color: #86efac;
}
.text-green-400 {
  color: #4ade80;
}
.text-red-300 {
  color: #fca5a5;
}
.text-red-400 {
  color: #f87171;
}
.text-purple-400 {
  color: #c084fc;
}
.text-yellow-400 {
  color: #facc15;
}

/* Borders */
.border {
  border-width: 1px;
}
.border-2 {
  border-width: 2px;
}
.border-4 {
  border-width: 4px;
}
.border-slate-600 {
  border-color: #475569;
}
.border-slate-700 {
  border-color: #334155;
}
.border-blue-500 {
  border-color: #3b82f6;
}
.border-green-500 {
  border-color: #22c55e;
}
.border-red-500 {
  border-color: #ef4444;
}
.border-dashed {
  border-style: dashed;
}
.border-l-4 {
  border-left-width: 4px;
}

/* Border Radius */
.rounded {
  border-radius: 0.25rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-full {
  border-radius: 9999px;
}

/* Typography */
.text-xs {
  font-size: 0.75rem;
}
.text-sm {
  font-size: 0.875rem;
}
.text-base {
  font-size: 1rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-3xl {
  font-size: 1.875rem;
}
.text-4xl {
  font-size: 2.25rem;
}
.text-5xl {
  font-size: 3rem;
}
.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}
.text-8xl {
  font-size: 6rem;
  line-height: 1;
}
.font-bold {
  font-weight: 700;
}
.font-semibold {
  font-weight: 600;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.italic {
  font-style: italic;
}
.underline {
  text-decoration: underline;
}

/* Cursor */
.cursor-move {
  cursor: move;
}
.cursor-pointer {
  cursor: pointer;
}

/* Transitions */
.transition-all {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.transition-colors {
  transition:
    color 0.15s,
    background-color 0.15s,
    border-color 0.15s;
}

/* Transform */
.hover\:scale-105:hover {
  transform: scale(1.05);
}

/* Shadow */
.shadow-lg {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.3),
    0 4px 6px -2px rgba(0, 0, 0, 0.2);
}
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Hover States */
.hover\:bg-blue-700:hover {
  background-color: #1d4ed8;
}
.hover\:bg-green-700:hover {
  background-color: #15803d;
}
.hover\:bg-red-700:hover {
  background-color: #b91c1c;
}
.hover\:bg-purple-700:hover {
  background-color: #7e22ce;
}
.hover\:bg-indigo-700:hover {
  background-color: #4338ca;
}
.hover\:bg-cyan-700:hover {
  background-color: #0e7490;
}
.hover\:bg-yellow-700:hover {
  background-color: #a16207;
}
.hover\:bg-slate-600:hover {
  background-color: #475569;
}
.hover\:bg-slate-700:hover {
  background-color: #334155;
}
.hover\:border-blue-500:hover {
  border-color: #3b82f6;
}
.hover\:text-blue-300:hover {
  color: #93c5fd;
}

/* Gradients */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-gray-900 {
  --tw-gradient-from: #111827;
  --tw-gradient-stops:
    var(--tw-gradient-from), var(--tw-gradient-to, rgba(17, 24, 39, 0));
}
.via-slate-900 {
  --tw-gradient-stops:
    var(--tw-gradient-from), #0f172a, var(--tw-gradient-to, rgba(15, 23, 42, 0));
}
.to-gray-800 {
  --tw-gradient-to: #1f2937;
}
.from-blue-600 {
  --tw-gradient-from: #2563eb;
  --tw-gradient-stops:
    var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0));
}
.to-indigo-600 {
  --tw-gradient-to: #4f46e5;
}
.from-blue-900\/50 {
  --tw-gradient-from: rgba(30, 58, 138, 0.5);
  --tw-gradient-stops:
    var(--tw-gradient-from), var(--tw-gradient-to, rgba(30, 58, 138, 0));
}
.to-indigo-900\/50 {
  --tw-gradient-to: rgba(49, 46, 129, 0.5);
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.animate-pulse {
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Utilities */
.overflow-hidden {
  overflow: hidden;
}
.space-y-2 > * + * {
  margin-top: 0.5rem;
}
.space-y-3 > * + * {
  margin-top: 0.75rem;
}
.space-y-4 > * + * {
  margin-top: 1rem;
}
.opacity-75 {
  opacity: 0.75;
}
.opacity-90 {
  opacity: 0.9;
}

/* Buttons */
button {
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Navigation Header */
.nav-header {
  background: linear-gradient(to right, #1e293b, #0f172a);
  border-bottom: 2px solid #3b82f6;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.nav-header a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

/* Dragging state */
.dragging {
  opacity: 0.5;
}

/* Cards and Containers */
.game-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  transition: all 0.3s ease;
}

.game-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

/* Button styling */
a.btn,
button.btn {
  display: inline-block;
  text-align: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
}

a.btn-back {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: 2px solid #60a5fa;
}

a.btn-back:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Landing page card hover */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive */
@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .md\:text-lg {
    font-size: 1.125rem;
  }
  .md\:text-xl {
    font-size: 1.25rem;
  }
  .md\:text-2xl {
    font-size: 1.5rem;
  }
  .md\:text-4xl {
    font-size: 2.25rem;
  }
  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }
  .md\:text-8xl {
    font-size: 6rem;
    line-height: 1;
  }
  .md\:p-6 {
    padding: 1.5rem;
  }
  .md\:p-8 {
    padding: 2rem;
  }
  .md\:p-12 {
    padding: 3rem;
  }
  .md\:py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .md\:mb-16 {
    margin-bottom: 4rem;
  }
  .md\:gap-8 {
    gap: 2rem;
  }
  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Additional hub-specific styles */
.from-purple-600 {
  --tw-gradient-from: #9333ea;
  --tw-gradient-stops:
    var(--tw-gradient-from), var(--tw-gradient-to, rgba(147, 51, 234, 0));
}
.to-pink-600 {
  --tw-gradient-to: #db2777;
}
.from-green-600 {
  --tw-gradient-from: #16a34a;
  --tw-gradient-stops:
    var(--tw-gradient-from), var(--tw-gradient-to, rgba(22, 163, 74, 0));
}
.to-emerald-600 {
  --tw-gradient-to: #059669;
}
.from-indigo-600 {
  --tw-gradient-from: #4f46e5;
  --tw-gradient-stops:
    var(--tw-gradient-from), var(--tw-gradient-to, rgba(79, 70, 229, 0));
}
.from-cyan-600 {
  --tw-gradient-from: #0891b2;
  --tw-gradient-stops:
    var(--tw-gradient-from), var(--tw-gradient-to, rgba(8, 145, 178, 0));
}
.from-red-600 {
  --tw-gradient-from: #dc2626;
  --tw-gradient-stops:
    var(--tw-gradient-from), var(--tw-gradient-to, rgba(220, 38, 38, 0));
}
.to-orange-600 {
  --tw-gradient-to: #ea580c;
}
.from-yellow-600 {
  --tw-gradient-from: #ca8a04;
  --tw-gradient-stops:
    var(--tw-gradient-from), var(--tw-gradient-to, rgba(202, 138, 4, 0));
}

/* Additional hover colors */
.hover\:bg-purple-700:hover {
  background-color: #7e22ce;
}
.hover\:bg-red-700:hover {
  background-color: #b91c1c;
}
.hover\:bg-indigo-700:hover {
  background-color: #4338ca;
}
.hover\:bg-cyan-700:hover {
  background-color: #0e7490;
}
.hover\:bg-yellow-700:hover {
  background-color: #a16207;
}

/* Additional responsive */
@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .md\:text-xl {
    font-size: 1.25rem;
  }
  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }
  .md\:text-8xl {
    font-size: 6rem;
    line-height: 1;
  }
  .md\:p-12 {
    padding: 3rem;
  }
  .md\:py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .md\:mb-16 {
    margin-bottom: 4rem;
  }
  .md\:gap-8 {
    gap: 2rem;
  }
}

/* Display utilities */
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline-flex {
  display: inline-flex;
}

/* Flex utilities */
.flex-1 {
  flex: 1 1 0%;
}
.flex-col {
  flex-direction: column;
}

/* Landing page animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Additional background colors */
.bg-blue-600\/20 {
  background-color: rgba(37, 99, 235, 0.2);
}

/* Additional gradient combinations for CTA */
.from-blue-900\/50 {
  --tw-gradient-from: rgba(30, 58, 138, 0.5);
  --tw-gradient-stops:
    var(--tw-gradient-from), var(--tw-gradient-to, rgba(30, 58, 138, 0));
}
.to-indigo-900\/50 {
  --tw-gradient-to: rgba(49, 46, 129, 0.5);
}
