/* How to Play page specific styles */

.howto-hero {
  position: relative;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
  overflow: hidden;
}

.howto-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4a148c 0%, #1a237e 50%, #004d40 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

.howto-hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.howto-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.howto-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.howto-hero-content p {
  font-size: 1.3rem;
  opacity: 0.9;
}

/* Main Content */
.howto-main {
  padding: 5rem 0;
  background: var(--primary-light);
}

.intro-text {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
}

/* Guide Steps */
.guide-steps {
  margin-bottom: 5rem;
}

.steps-timeline {
  max-width: 1000px;
  margin: 2rem auto;
  position: relative;
}

.steps-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-gold);
  transform: translateX(-50%);
}

.step-item {
  display: flex;
  margin-bottom: 3rem;
  align-items: center;
  position: relative;
}

.step-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.step-number {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--primary-gold);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  z-index: 2;
  box-shadow: 0 0 0 4px white;
}

.step-content {
  width: 45%;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.step-item:nth-child(odd) .step-content {
  margin-right: auto;
}

.step-item:nth-child(even) .step-content {
  margin-left: auto;
}

.step-icon {
  font-size: 2.5rem;
  color: var(--primary-gold);
  flex-shrink: 0;
}

.step-content h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: #666;
  line-height: 1.6;
}

/* Commands Section */
.commands-section {
  margin-bottom: 5rem;
}

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

.command-category {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
}

.command-category h3 {
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.command-category i {
  color: var(--primary-gold);
}

.command-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.command-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: var(--primary-light);
  border-radius: 5px;
  font-size: 0.9rem;
}

.command-item code {
  background: var(--primary-dark);
  color: #00ff00;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-family: monospace;
  font-weight: 600;
}

.command-item span {
  color: #666;
  font-size: 0.85rem;
}

/* Tips Section */
.tips-section {
  margin-bottom: 5rem;
}

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

.tip-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: all 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.tip-icon {
  font-size: 2.5rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

.tip-card h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.tip-card p {
  color: #666;
  line-height: 1.6;
}

.tip-card code {
  background: #f0f0f0;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.9rem;
}

/* Advanced Section */
.advanced-section {
  margin-bottom: 5rem;
}

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

.advanced-item {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--primary-gold);
}

.advanced-item h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.advanced-item i {
  color: var(--primary-gold);
}

.advanced-item p {
  color: #666;
  line-height: 1.6;
}

/* Roleplay Section */
.roleplay-section {
  margin-bottom: 5rem;
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
}

.rp-content {
  margin-top: 2rem;
}

.rp-block {
  margin-bottom: 2rem;
}

.rp-block h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rp-block i {
  color: var(--primary-gold);
}

.rp-block p {
  color: #666;
  line-height: 1.8;
}

.rp-rules {
  margin-bottom: 2rem;
}

.rp-rules h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rp-rules i {
  color: var(--primary-gold);
}

.rp-rules ul {
  list-style: none;
  padding: 0;
}

.rp-rules li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
  color: #666;
  line-height: 1.6;
}

.rp-rules li:last-child {
  border-bottom: none;
}

.rp-rules strong {
  color: var(--primary-dark);
}

.rp-examples h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rp-examples i {
  color: var(--primary-gold);
}

.example-good,
.example-bad {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.example-good {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
}

.example-bad {
  background: #ffebee;
  border-left: 4px solid #f44336;
}

.example-good p,
.example-bad p {
  margin: 0;
  color: #333;
}

/* Help Section */
.help-section {
  margin-bottom: 5rem;
}

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

.help-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: block;
}

.help-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
}

.help-card i {
  font-size: 3rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

.help-card h3 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.help-card p {
  color: #666;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .howto-hero-content h1 {
    font-size: 2rem;
  }

  .steps-timeline::before {
    left: 30px;
  }

  .step-item {
    flex-direction: column !important;
    padding-left: 60px;
  }

  .step-number {
    left: 30px;
    transform: translateX(-50%);
  }

  .step-content {
    width: 100%;
    margin: 0 !important;
  }

  .commands-categories {
    grid-template-columns: 1fr;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .advanced-grid {
    grid-template-columns: 1fr;
  }

  .help-options {
    grid-template-columns: 1fr;
  }

  .roleplay-section {
    padding: 2rem;
  }
}
