/* Game Page Specific Styles */

/* Aspect ratio for game container */
.aspect-w-16 {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.aspect-h-9 {
  height: 0;
}

/* Prose styling for content */
.prose {
  max-width: 65ch;
  color: #374151;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose h2 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: 700;
  font-size: 1.5em;
  line-height: 1.3333333;
}

.prose ul {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  list-style-type: disc;
  padding-left: 1.625em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.dark .prose {
  color: #e5e7eb;
}

/* Game Tag */
.game-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
}

/* Card styles with Apple-inspired design */
.card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Fullscreen mode */
.fullscreen-iframe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  border: none;
}

/* Breadcrumb styles */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Game header with Apple-inspired gradient */
.game-header {
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.game-header:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button styles with Apple-inspired design */
.btn-primary {
  transition: all 0.2s ease;
  font-weight: 500;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Related games hover effect */
.card a:hover {
  transform: translateX(2px);
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .prose {
    color: #e5e7eb;
  }
  
  .prose strong {
    color: #f9fafb;
  }
  
  .card {
    background-color: var(--apple-dark-accent);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .game-header {
    padding: 1.5rem !important;
  }
  
  .game-header h1 {
    font-size: 1.875rem !important;
  }
  
  .game-header p {
    font-size: 1rem !important;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  /* 改进导航和操作按钮布局 */
  .game-card-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .breadcrumb-wrapper {
    width: 100%;
    overflow-x: auto;
  }
  
  .action-buttons {
    width: 100%;
    justify-content: space-between;
  }
  
  .btn-fullscreen, .btn-share {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  /* 优化游戏容器高度 */
  .game-container {
    padding-bottom: 56.25% !important;
  }
  
  /* 确保封面图片正确显示 */
  .game-cover {
    object-position: center;
  }
  
  /* 增大游戏播放按钮的尺寸以方便触摸 */
  .play-button-large {
    padding: 1rem 1.5rem;
    border-radius: 50px;
  }
}

/* 小屏幕手机设备的额外调整 */
@media (max-width: 480px) {
  .game-title {
    font-size: 1.5rem !important;
  }
  
  .game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .game-tag {
    margin-bottom: 0;
    white-space: nowrap;
  }
  
  .similar-game {
    padding: 0.5rem;
  }
  
  .similar-game-img {
    width: 3rem;
    height: 3rem;
  }
  
  .similar-game-title {
    font-size: 0.9rem;
  }
  
  .similar-game-description {
    font-size: 0.8rem;
    -webkit-line-clamp: 1;
  }
  
  /* 改进游戏信息区域布局 */
  .prose p {
    font-size: 0.95rem;
  }
  
  .feature-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }
  
  /* 减小页面内边距 */
  .card {
    padding: 1rem !important;
  }
}

/* Additional Apple-inspired styles */
.transition {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Focus styles for accessibility */
a:focus, button:focus {
  outline: 2px solid var(--apple-blue);
  outline-offset: 2px;
} 