/* CHROMA BURST - Shared Page Styles */

:root {
  --bg-primary: #1A1A2E;
  --bg-secondary: #16213E;
  --bg-card: #0F3460;
  --accent: #E94560;
  --accent-glow: rgba(233, 69, 96, 0.3);
  --text-primary: #FFFFFF;
  --text-secondary: #B4B4B4;
  --text-muted: #6B6B6B;
  --border: rgba(255, 255, 255, 0.1);
  --gradient-1: linear-gradient(135deg, #E94560 0%, #0F3460 100%);
  --gradient-2: linear-gradient(180deg, #1A1A2E 0%, #16213E 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gradient-2);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-animation::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 80%, var(--accent-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(15, 52, 96, 0.5) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(233, 69, 96, 0.1) 0%, transparent 30%);
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2%, 2%) rotate(1deg); }
  50% { transform: translate(0, 4%) rotate(0deg); }
  75% { transform: translate(-2%, 2%) rotate(-1deg); }
}

/* Header */
.page-header {
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  text-shadow:
    -1px -1px 0 #FF6B9D,
    1px -1px 0 #FF6B9D,
    -1px 1px 0 #FF6B9D,
    1px 1px 0 #FF6B9D,
    0 0 8px rgba(255, 107, 157, 0.6);
}

.logo-text span {
  color: #FFFFFF;
  text-shadow:
    -1px -1px 0 #4DD0E1,
    1px -1px 0 #4DD0E1,
    -1px 1px 0 #4DD0E1,
    1px 1px 0 #4DD0E1,
    0 0 8px rgba(77, 208, 225, 0.6);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.play-btn {
  background: var(--accent);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* Main Content */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.last-updated {
  display: inline-block;
  background: var(--bg-card);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Content Sections */
.content-section {
  background: rgba(15, 52, 96, 0.3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.content-section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section ul {
  color: var(--text-secondary);
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-section li {
  margin-bottom: 0.5rem;
}

.content-section a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.content-section a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Contact Card */
.contact-card {
  background: var(--gradient-1);
  text-align: center;
  padding: 2.5rem;
}

.contact-card .section-title {
  color: white;
  margin-bottom: 1rem;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.9);
}

.contact-email {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  margin-top: 1rem;
  color: white !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.3s ease;
}

.contact-email:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Footer */
.page-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Help Page Specific Styles */
.game-preview {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  max-width: 300px;
  margin: 1rem auto;
}

.color-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  animation: pulse 2s ease-in-out infinite;
}

.color-cell:nth-child(1) { background: #E94560; animation-delay: 0s; }
.color-cell:nth-child(2) { background: #4ECDC4; animation-delay: 0.1s; }
.color-cell:nth-child(3) { background: #FFD93D; animation-delay: 0.2s; }
.color-cell:nth-child(4) { background: #6C5CE7; animation-delay: 0.3s; }
.color-cell:nth-child(5) { background: #A8E6CF; animation-delay: 0.4s; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.95); opacity: 0.8; }
}

.tip-box {
  background: rgba(233, 69, 96, 0.1);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
}

.tip-box strong {
  color: var(--accent);
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.control-item {
  background: var(--bg-primary);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
}

.control-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.control-label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.control-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
  }

  .nav-links {
    display: none;
  }

  .page-content {
    padding: 2rem 1rem 3rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .content-section {
    padding: 1.5rem;
  }

  .section-header {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
