/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #ffffff;
  --text-color: #0a0a0a;
  --card-bg: #ffffff;
  --border-color: #e5e5e5;
  --secondary-bg: #f5f5f5;
  --primary-color: #0a0a0a;
  --muted-text: #737373;
  --hover-bg: #f0f0f0;
  --input-bg: #ffffff;
}

.dark {
  --bg-color: #0a0a0a;
  --text-color: #fafafa;
  --card-bg: #0a0a0a;
  --border-color: #262626;
  --secondary-bg: #171717;
  --primary-color: #fafafa;
  --muted-text: #a3a3a3;
  --hover-bg: #1a1a1a;
  --input-bg: #171717;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
  color: var(--text-color);
  line-height: 1.6;
  transition: all 0.3s;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 50% 50%,
      transparent 8%,
      rgba(255, 138, 0, 0.08) 8%,
      rgba(255, 138, 0, 0.08) 8.5%,
      transparent 8.5%
    ),
    radial-gradient(
      circle at 50% 100%,
      transparent 25%,
      rgba(255, 138, 0, 0.06) 25%,
      rgba(255, 138, 0, 0.06) 25.5%,
      transparent 25.5%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(139, 69, 19, 0.03) 0px,
      transparent 1px,
      transparent 40px,
      rgba(139, 69, 19, 0.03) 41px
    ), repeating-linear-gradient(0deg, rgba(160, 82, 45, 0.02) 0px, transparent 2px, transparent 4px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

.dark body {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
}

.dark body::before {
  background-image: radial-gradient(
      circle at 50% 50%,
      transparent 10%,
      rgba(255, 255, 255, 0.03) 10%,
      rgba(255, 255, 255, 0.03) 10.5%,
      transparent 10.5%
    ),
    linear-gradient(
      90deg,
      transparent 5%,
      rgba(255, 255, 255, 0.05) 5%,
      rgba(255, 255, 255, 0.05) 5.5%,
      transparent 5.5%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.02) 0px,
      transparent 1px,
      transparent 2px,
      rgba(255, 255, 255, 0.02) 3px
    );
  opacity: 0.4;
}

.header,
.banner,
.game-section,
.content-section,
.footer {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.game-container {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid var(--border-color);
  background: #000;
}

.game-play-overlay {
 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.95) 0%, rgb(54 77 244 / 95%) 100%);
  backdrop-filter: blur(10px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.game-play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-overlay-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.play-icon {
  font-size: 5rem;
  animation: basketball-spin 2s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes basketball-spin {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
}

.game-play-now-btn {
  padding: 1.25rem 3.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #3835ff 0%, #721616 50%, #3545ff 100%);
  
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(244, 67, 54, 0.6);
  transition: all 0.3s ease;
  animation: glow-pulse 2s ease-in-out infinite;
  
 
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 10px 30px rgb(255 255 255 / 60%);
    background-position: 0% 50%;
  }
  50% {
    box-shadow: 0 15px 40px #fff, 0 0 20px #3545ff;
    background-position: 100% 50%;
  }
}

.game-play-now-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 50px rgba(244, 67, 54, 0.9), 0 0 30px rgba(255, 107, 53, 1);
  border-color: rgba(255, 255, 255, 0.6);
}

.game-play-now-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .header {
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(71, 85, 105, 0.3);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

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

/* Added header actions container and install button styles */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.install-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(79, 172, 254, 0.5);
  background: linear-gradient(135deg, #667eea 0%, #4facfe 100%);
  color: white;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

.install-btn svg {
  width: 20px;
  height: 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.theme-toggle {
  background: #c5c5c5;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.theme-toggle:hover {
  background: #fff;
}

.dark .sun-icon {
  display: none;
}
.moon-icon {
  display: none;
}
.dark .moon-icon {
  display: block;
}
.sun-icon {
  display: block;
}


/* icon color fix */
.theme-toggle svg {
  color: var(--icon-color);
}

/* light mode */
:root {
  --icon-color: #1f2937;
}

/* dark mode */
.dark {
  --icon-color: #f9fafb;
}

.banner {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1rem 0;
  text-align: center;
}

.dark .banner {
  background: rgba(51, 65, 85, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.banner-text {
  font-size: 1rem;
  color: var(--muted-text);
  max-width: 48rem;
  margin: 0 auto;
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

.game-section {
  padding: 2rem 0;
}

.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.game-info-bar {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-top: -2px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.dark .game-info-bar {
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(71, 85, 105, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.game-info-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.game-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #667eea 0%, #4facfe 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.game-details {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.game-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1.2;
}

.game-developer {
  font-size: 0.875rem;
  color: var(--muted-text);
  margin: 0;
}

.game-info-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.info-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--secondary-bg);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 70px;
}

.info-action-btn:hover {
  background: var(--hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-action-btn svg {
  width: 24px;
  height: 24px;
}

.btn-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-color);
}

.info-action-btn.active {
  background: #4facfe;
  color: white;
  border-color: #4facfe;
}

.info-action-btn.active .count {
  color: white;
}

.like-btn.active {
  background: #4facfe;
  border-color: #4facfe;
}

.dislike-btn.active {
  background: #ef4444;
  border-color: #ef4444;
}

.open-window-container {
  max-width: 64rem;
  margin: 1rem auto 0;
  display: flex;
  justify-content: center;
}

.open-window-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(79, 172, 254, 0.5);
  background: linear-gradient(135deg, #667eea 0%, #4facfe 100%);
  color: white;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.open-window-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 172, 254, 0.4);
}

.open-window-btn svg {
  width: 20px;
  height: 20px;
}

.content-section {
  padding: 2rem 0;
  background: transparent;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dark .card {
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(71, 85, 105, 0.4);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--muted-text);
  line-height: 1.6;
}

.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted-text);
}

.tips-list li::before {
  content: "🏀 ";
  margin-right: 0.5rem;
}

.controls-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.controls-subtitle {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.controls-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-text);
}

kbd {
  background: var(--secondary-bg);
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-family: monospace;
  margin-right: 0.5rem;
  border: 1px solid var(--border-color);
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.comment-form input,
.comment-form textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--input-bg);
  color: var(--text-color);
  font-family: inherit;
  font-size: 0.875rem;
}

.submit-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--primary-color);
  color: var(--bg-color);
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  opacity: 0.9;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: 600;
  color: var(--primary-color);
}

.comment-time {
  font-size: 0.75rem;
  color: var(--muted-text);
}

.comment-text {
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.comment-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.comment-action-btn {
  background: none;
  border: none;
  color: var(--muted-text);
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
}

.comment-action-btn:hover {
  color: var(--primary-color);
}

.comment-action-btn.active {
  color: var(--primary-color);
  font-weight: 600;
}

.replies {
  margin-top: 1rem;
  margin-left: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reply-form {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.reply-form input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--input-bg);
  color: var(--text-color);
  font-size: 0.875rem;
}

.reply-form button {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--primary-color);
  color: var(--bg-color);
  cursor: pointer;
  font-size: 0.875rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.75rem;
  color: var(--muted-text);
  text-transform: uppercase;
}

.info-value {
  font-weight: 600;
}

.status-online {
  color: #22c55e;
}

.rating-widget {
  text-align: center;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.star {
  cursor: pointer;
  color: var(--border-color);
  transition: color 0.2s;
}

.star:hover,
.star.active {
  color: #fbbf24;
}

.rating-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rating-score {
  font-size: 2rem;
  font-weight: bold;
}

.rating-count {
  font-size: 0.875rem;
  color: var(--muted-text);
}

.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-text);
}

.dark .footer {
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(71, 85, 105, 0.3);
}

.footer p {
  margin: 0.25rem 0;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 0.75rem;
  width: 90%;
  max-width: 500px;
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .modal-content {
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(71, 85, 105, 0.4);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: bold;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-text);
}

.close-btn:hover {
  color: var(--text-color);
}

#bugForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#bugForm input,
#bugForm textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--input-bg);
  color: var(--text-color);
  font-family: inherit;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .play-icon {
    font-size: 4rem;
  }
  .game-play-now-btn {
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
  }
  .game-info-bar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .game-info-left {
    width: 100%;
  }
  .game-info-right {
    width: 100%;
    justify-content: space-around;
  }
  .info-action-btn {
    flex: 1;
    min-width: auto;
  }
  .controls-grid {
    grid-template-columns: 1fr;
  }

  /* Make install button more compact on mobile */
  .install-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .install-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .play-icon {
    font-size: 3rem;
  }
  .game-play-now-btn {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    letter-spacing: 1px;
  }

  /* Stack header items on very small screens */
  .header .container {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .install-btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.875rem;
  }
}

@media (min-width: 768px) {
  .controls-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 2fr 1fr;
  }
}
