/* SPiGAME Landing Page - Jobs-ian Minimalist Theme */
/* Dark background with cyan accents */

:root {
  --primary-dark: #0a0a0a;
  --secondary-dark: #1a1a1a;
  --accent-cyan: #00ffff;
  --accent-cyan-dark: #00bfff;
  --text-light: #ffffff;
  --text-muted: #cccccc;
  --border-color: #333333;
  --shadow: rgba(0, 255, 255, 0.1);
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Main content wrapper */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-light);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4, h5, h6 { color: var(--text-light); }
p { font-size: 1.1rem; color: var(--text-muted); }

/* Navigation */
.navbar {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.25rem 1rem;
  width: 100%;
  z-index: 1000;
  position: relative;
  margin: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  margin: 0 auto;
  padding: 0 20px;
  max-width: 1200px;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent-cyan) !important;
  padding: 0.25rem 0;
}

.navbar-brand img {
  height: 32px;
  display: block;
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 400;
  transition: color 0.3s ease;
  padding: 0.5rem 0.75rem !important;
}

.nav-link:hover {
  color: var(--accent-cyan) !important;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: 100px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, var(--shadow) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-image {
  position: absolute;
  right: 15%;
  top: 50%;
  transform: translateY(-50%) perspective(50rem) rotateY(-40deg);
  z-index: 1;
  max-width: 800px;
  opacity: 0.85;
  box-shadow: -30px 30px 80px rgba(0, 255, 255, 0.4);
  border-radius: 1rem;
  filter: brightness(0.4) contrast(1.1);
}

.hero h1 {
  margin-bottom: 2rem;
  background: linear-gradient(45deg, var(--accent-cyan), var(--accent-cyan-dark));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-button {
  display: inline-block;
  background: var(--accent-cyan);
  color: var(--primary-dark);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 2rem;
}

.cta-button:hover {
  background: var(--accent-cyan-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--shadow);
}

/* Sections */
.section {
  padding: 5rem 0;
  padding-top: 7rem; /* Account for fixed navbar */
  border-bottom: 1px solid var(--border-color);
}

.section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent-cyan);
}

/* Game pages - add top margin for fixed navbar */
.game-container {
  margin-top: 80px !important;
  padding-top: 20px;
}

.classified-doc {
  background: var(--secondary-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}

.classified-doc h2,
.classified-doc h3,
.classified-doc h4,
.classified-doc h5 {
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.classified-doc::before {
  content: 'CLASSIFIED';
  position: absolute;
  top: 10px;
  right: 20px;
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: bold;
  opacity: 0.7;
}

/* Cards */
.card {
  background: var(--secondary-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Forms */
.form-control, 
.form-select,
textarea.form-control,
input.form-control {
  background: var(--secondary-dark) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-light) !important;
  border-radius: 8px;
  padding: 0.75rem;
}

.form-control::placeholder {
  color: #888 !important;
  opacity: 1;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 0 0.2rem var(--shadow) !important;
  background: var(--secondary-dark) !important;
  color: var(--text-light) !important;
}

.form-label {
  color: var(--text-light) !important;
}

.form-check-label {
  color: var(--text-muted) !important;
}

.form-text {
  color: #999 !important;
}

.btn-primary {
  background: var(--accent-cyan);
  border: none;
  color: var(--primary-dark);
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--accent-cyan-dark);
  transform: translateY(-1px);
}

/* Countdown */
.countdown {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent-cyan);
  z-index: 3;
  width: 100%;
}

/* Minigame */
.codebreaker-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap;
  max-width: 480px;
  margin: 2rem auto;
}

.code-input {
  width: 60px;
  height: 60px;
  background: var(--secondary-dark);
  border: 2px solid var(--border-color);
  color: var(--text-light);
  font-size: 2rem;
  text-align: center;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.code-input:focus {
  border-color: var(--accent-cyan);
  outline: none;
}

/* Admin Dashboard */
.admin-nav {
  background: var(--secondary-dark);
  min-height: 100vh;
  padding: 2rem;
}

.admin-content {
  background: var(--primary-dark);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .hero { padding: 2rem 0; }
  .section { padding: 3rem 0; }
}

/* Utilities */
.text-cyan { color: var(--accent-cyan) !important; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.feature-list li {
  padding: 0.75rem 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
  border-bottom: none;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, var(--secondary-dark) 0%, #0a0a0a 100%);
  border-top: 2px solid var(--accent-cyan);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.5;
}

.footer-heading {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-description {
  color: #b0b0b0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(5px);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.social-icon:hover {
  background: var(--accent-cyan);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.footer-divider {
  border-color: rgba(0, 255, 255, 0.2);
  margin: 2rem 0 1.5rem;
  opacity: 0.5;
}

.footer-copyright {
  color: #808080;
  font-size: 0.9rem;
  margin: 0;
  padding: 0.5rem 0;
}

/* Intel Cards */
.intel-card {
  border-left: 3px solid var(--accent-cyan);
}

.intel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge.bg-cyan {
  background: var(--accent-cyan) !important;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 0.35rem 0.65rem;
}

.intel-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.intel-placeholder p {
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.intel-placeholder p:last-child {
  border-bottom: none;
}

/* Intel Post Content */
.intel-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e0e0e0 !important;
}

.intel-content p {
  margin-bottom: 1.5rem;
  color: #e0e0e0 !important;
}

.intel-content h1,
.intel-content h2,
.intel-content h3,
.intel-content h4,
.intel-content h5,
.intel-content h6 {
  color: var(--accent-cyan) !important;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.intel-content a {
  color: var(--accent-cyan) !important;
  text-decoration: underline;
}

.intel-content strong,
.intel-content b {
  color: var(--text-light) !important;
}

.intel-content ul,
.intel-content ol {
  color: #e0e0e0 !important;
  margin-bottom: 1.5rem;
}

.intel-content li {
  color: #e0e0e0 !important;
}

/* Navbar toggler visibility on dark background */
.navbar.navbar-dark .navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}
.navbar.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Accessibility improvements */
*:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-cyan);
  color: var(--primary-dark);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  font-weight: 600;
}

.skip-to-content:focus {
  top: 0;
}

/* Improved text contrast */
p, .card-text {
  color: #e0e0e0;
}

/* Better mobile responsive breakpoints */
@media (max-width: 576px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding-top: 80px; }
  .countdown { font-size: 1.2rem; bottom: 40px; }
  .codebreaker-grid { gap: 0.5rem; }
  .code-input { width: 50px; height: 50px; font-size: 1.5rem; flex-shrink: 0; }
}

/* Loading states */
.loading-skeleton {
  background: linear-gradient(90deg, var(--secondary-dark) 25%, var(--border-color) 50%, var(--secondary-dark) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

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

/* Error states */
.error-state {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.error-state .retry-btn {
  margin-top: 1rem;
  background: var(--accent-cyan);
  color: var(--primary-dark);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.error-state .retry-btn:hover {
  background: var(--accent-cyan-dark);
}

/* Tables */
.table {
  color: var(--text-light) !important;
}

.table-dark {
  background-color: var(--secondary-dark) !important;
  color: var(--text-light) !important;
}

.table-dark th,
.table-dark td {
  border-color: var(--border-color) !important;
  color: var(--text-light) !important;
}

.table-dark thead th {
  background-color: var(--primary-dark) !important;
  color: var(--accent-cyan) !important;
  border-color: var(--border-color) !important;
}

/* Admin specific styles */
.admin-nav {
  background: var(--secondary-dark);
  border-right: 1px solid var(--border-color);
}

.admin-nav .nav-link {
  color: var(--text-muted) !important;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
  transition: all 0.2s;
}

.admin-nav .nav-link:hover {
  background: rgba(0, 255, 255, 0.1);
  color: var(--accent-cyan) !important;
}

.admin-nav .nav-link.active {
  background: rgba(0, 255, 255, 0.15);
  color: var(--accent-cyan) !important;
}

/* Alert overrides */
.alert {
  border-radius: 8px;
}

.alert-info {
  background: rgba(0, 255, 255, 0.1) !important;
  border: 1px solid var(--accent-cyan) !important;
  color: var(--accent-cyan) !important;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1) !important;
  border: 1px solid #28a745 !important;
  color: #4ade80 !important;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1) !important;
  border: 1px solid #dc3545 !important;
  color: #f87171 !important;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1) !important;
  border: 1px solid #ffc107 !important;
  color: #fbbf24 !important;
}

/* Google Translate Widget Styling */
#google_translate_element {
  display: inline-block;
}

/* Hide Google Translate branding */
.goog-te-gadget {
  font-family: inherit !important;
  font-size: 0 !important;
}

.goog-te-gadget-simple {
  background-color: var(--secondary-dark) !important;
  border: 1px solid var(--accent-cyan) !important;
  border-radius: 4px !important;
  padding: 6px 12px !important;
  font-size: 14px !important;
  color: var(--text-light) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.goog-te-gadget-simple:hover {
  background-color: rgba(0, 255, 255, 0.1) !important;
  border-color: var(--accent-cyan) !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
  color: var(--text-light) !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
  color: var(--text-light) !important;
  border-left-color: var(--accent-cyan) !important;
}

.goog-te-gadget-icon {
  display: none !important;
}

/* Google Translate banner at top */
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

/* Dropdown menu styling */
.goog-te-menu2 {
  background-color: var(--secondary-dark) !important;
  border: 1px solid var(--accent-cyan) !important;
  max-width: 100% !important;
}

.goog-te-menu2-item div,
.goog-te-menu2-item:link div,
.goog-te-menu2-item:visited div,
.goog-te-menu2-item:active div {
  color: var(--text-light) !important;
  background-color: var(--secondary-dark) !important;
}

.goog-te-menu2-item:hover div {
  background-color: rgba(0, 255, 255, 0.1) !important;
  color: var(--accent-cyan) !important;
}

.goog-te-menu2-item-selected div {
  background-color: rgba(0, 255, 255, 0.2) !important;
  color: var(--accent-cyan) !important;
}
