/* WorldGamePL Game Guides Page – Custom Styles */
.section-game-guides {
  margin-top: var(--space-12);
  margin-bottom: var(--space-11);
}
.page-header {
  margin-bottom: var(--space-7);
  text-align: center;
}
.page-header h1 {
  letter-spacing: -0.5px;
  color: var(--color-primary);
}
.page-header .intro {
  font-size: 1.25rem;
  color: var(--color-neutral-700);
  margin-left: auto;
  margin-right: auto;
  max-width: 650px;
  margin-bottom: var(--space-6);
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8) var(--space-6);
  margin-bottom: var(--space-10);
}
.guide-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6) var(--space-6) var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 272px;
  position: relative;
  transition: box-shadow 0.18s;
}
.guide-card:hover, .guide-card:focus-within {
  box-shadow: var(--shadow-lg);
}
.guide-card h2 {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-3);
  color: var(--color-primary);
  font-family: var(--font-sans);
}
.guide-card p {
  font-size: 1.06rem;
  color: var(--color-neutral-700);
  margin-bottom: var(--space-7);
  flex: 1;
}
.guide-card .button {
  align-self: flex-start;
  margin-top: auto;
}
.call-to-action {
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-8) var(--space-6);
}
.call-to-action h2 {
  color: #fff;
}
.call-to-action p {
  color: #e5eaff;
  font-size: 1.15rem;
  margin-bottom: var(--space-5);
}
.call-to-action .button {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid #fff;
  font-weight: 700;
}
.call-to-action .button:hover,
.call-to-action .button:focus-visible {
  background: var(--color-surface);
  color: var(--color-primary-hover);
  border-color: var(--color-surface);
}
/* New Interactive Sections Styles */

/* Section 1: Difficulty Analyzer */
.difficulty-analyzer .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.analyzer-widget input[type="text"]:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(232,162,92,0.5);
}

.analyzer-widget button:hover {
  background: rgba(232,162,92,0.9) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232,162,92,0.3);
}

.progress-fill {
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section 2: Tier List */
.tier-list .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.tier-filter:hover {
  background: rgba(46,74,58,0.4) !important;
  transform: translateY(-1px);
}

.tier-filter.active {
  box-shadow: 0 2px 10px rgba(46,74,58,0.3);
}

.game-tile:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 4px 15px rgba(46,74,58,0.2);
}

.tier-row {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Section 3: Walkthrough Timeline */
.walkthrough-timeline .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.timeline-selector select:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(232,162,92,0.5);
}

.timeline-btn:hover {
  background: rgba(232,162,92,1) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232,162,92,0.3);
}

.timeline-step {
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-marker {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.1);
  }
}

/* Section 4: Achievement Showcase */
.achievement-showcase .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.achievement-card {
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.achievement-card:hover::before {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.achievement-card.legendary:hover {
  box-shadow: 0 10px 30px rgba(255,215,0,0.4);
}

.achievement-card.epic:hover {
  box-shadow: 0 10px 30px rgba(156,39,176,0.4);
}

.achievement-card.rare:hover {
  box-shadow: 0 10px 30px rgba(33,150,243,0.4);
}

.achievement-modal {
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section 5: Game Comparison */
.game-comparison .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.game-selectors select:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(232,162,92,0.5);
}

.vs-badge {
  animation: rotate 4s linear infinite;
  font-size: 1.2rem;
  min-width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.comparison-grid {
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comparison-table table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.comparison-table th:first-child {
  border-top-left-radius: var(--radius-sm);
}

.comparison-table th:last-child {
  border-top-right-radius: var(--radius-sm);
}

.comparison-table tbody tr:hover {
  background: rgba(232,162,92,0.1);
}

.comparison-verdict {
  position: relative;
  overflow: hidden;
}

.comparison-verdict::before {
  content: '💡';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: 1.5rem;
  opacity: 0.5;
}

/* Enhanced responsive behavior for new sections */
@media (max-width: 768px) {
  .difficulty-analyzer .analyzer-widget {
    padding: var(--space-4);
  }
  
  .game-selectors {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  
  .vs-badge {
    grid-row: 2;
    margin: var(--space-2) auto;
  }
  
  .tier-games {
    justify-content: center;
  }
  
  .achievement-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .timeline-step .step-content {
    width: 90% !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }
  
  .timeline-line {
    display: none;
  }
  
  .step-marker {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    margin: var(--space-2) auto;
  }
}

@media (max-width: 480px) {
  .difficulty-analyzer,
  .tier-list,
  .walkthrough-timeline,
  .achievement-showcase,
  .game-comparison {
    padding: var(--space-6) var(--space-4);
  }
  
  .section-title {
    font-size: 2rem !important;
  }
  
  .tier-controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
  }
  
  .tier-filter {
    font-size: 0.9rem;
    padding: var(--space-2) var(--space-3);
  }
  
  .game-tile {
    font-size: 0.8rem;
    padding: var(--space-1) var(--space-2);
  }
  
  .modal-content {
    width: 95%;
    padding: var(--space-4);
  }
  
  .comparison-table {
    font-size: 0.9rem;
  }
}

/* New Sections 6-8 Styles */

/* Section 6: Learning Path Generator */
.learning-path .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.skill-option:hover {
  background: rgba(232,162,92,0.2) !important;
  border: 2px solid rgba(232,162,92,0.5) !important;
  transform: translateY(-2px);
}

.skill-option input:checked + div strong {
  color: #E8A25C !important;
}

.path-step {
  animation: slideInUp 0.6s ease-out;
  border-left: 4px solid #E8A25C;
  position: relative;
  overflow: hidden;
}

.path-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, #E8A25C, rgba(232,162,92,0.3));
  animation: fillBar 1s ease-out 0.3s forwards;
}

@keyframes fillBar {
  to { height: 100%; }
}

.step-btn:hover {
  background: rgba(232,162,92,0.4) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(232,162,92,0.3);
}

/* Section 7: Rules Quiz */
.rules-quiz .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.quiz-game-btn:hover {
  background: #E8A25C !important;
  color: #2D4A3A !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232,162,92,0.3);
}

.quiz-answer:hover {
  background: rgba(46,74,58,0.2) !important;
  border-color: rgba(46,74,58,0.5) !important;
  transform: translateX(5px);
}

.question-card {
  animation: fadeInUp 0.5s ease-out;
  position: relative;
}

.question-card::before {
  content: '?';
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 30px;
  height: 30px;
  background: #E8A25C;
  color: #2D4A3A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.quiz-completion {
  animation: bounceIn 0.6s ease-out;
}

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

/* Section 8: Strategy Voting */
.strategy-voting .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.strategy-card {
  position: relative;
  overflow: hidden;
}

.strategy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.strategy-card:hover::before {
  left: 100%;
}

.strategy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(232,162,92,0.2);
}

.vote-bar {
  position: relative;
  overflow: hidden;
}

.vote-fill {
  position: relative;
}

.vote-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmerVote 2s infinite;
}

@keyframes shimmerVote {
  0% { left: -100%; }
  100% { left: 100%; }
}

.voting-stats {
  animation: pulse 3s infinite;
}

.history-item {
  transition: all 0.3s ease;
}

.history-item:hover {
  background: rgba(255,255,255,0.2) !important;
  transform: translateY(-2px);
}

.debate-topic {
  position: relative;
}

.debate-topic::before {
  content: '💭';
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  font-size: 1.5rem;
  opacity: 0.7;
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Enhanced responsive design for new sections */
@media (max-width: 768px) {
  .skill-levels {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  
  .game-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .quiz-game-btn {
    width: 200px;
  }
  
  .strategy-options {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  
  .history-grid {
    grid-template-columns: 1fr;
  }
  
  .path-actions {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .step-actions {
    flex-direction: column;
    gap: var(--space-2);
  }
}

@media (max-width: 480px) {
  .learning-path,
  .rules-quiz,
  .strategy-voting {
    padding: var(--space-6) var(--space-4);
  }
  
  .quiz-answer {
    font-size: 0.9rem;
    padding: var(--space-2);
  }
  
  .strategy-card {
    padding: var(--space-3);
  }
  
  .vote-count {
    font-size: 0.8rem;
    padding: var(--space-1);
  }
  
  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .progress-fill,
  .timeline-btn,
  .game-tile,
  .achievement-card,
  .vs-badge,
  .step-marker,
  .path-step,
  .strategy-card,
  .quiz-answer,
  .skill-option {
    transition: none;
    animation: none;
  }
  
  .vote-fill::after,
  .strategy-card::before {
    animation: none;
  }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .guides-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
  .section-game-guides {
    margin-top: var(--space-8);
    margin-bottom: var(--space-9);
  }
}
@media (max-width: 650px) {
  .page-header .intro {
    font-size: 1rem;
    margin-bottom: var(--space-5);
    padding-left: var(--space-1);
    padding-right: var(--space-1);
  }
  .section-game-guides {
    margin-top: var(--space-7);
    margin-bottom: var(--space-8);
  }
  .guide-card {
    min-height: 0;
    padding: var(--space-5);
  }
  .call-to-action {
    padding: var(--space-6) var(--space-3);
  }
}