/* World page specific styles */

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

.world-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--norse-blue) 0%, var(--greek-blue) 50%, var(--egyptian-gold) 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

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

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

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

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

/* Mythologies Detailed Section */
.mythologies-detailed {
  padding: 5rem 0;
  background: var(--primary-light);
}

.mythology-section {
  margin-bottom: 4rem;
  background: white;
  border-radius: 15px;
  padding: 3rem;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.mythology-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

.mythology-section.norse::before {
  background: var(--gradient-norse);
}

.mythology-section.greek::before {
  background: var(--gradient-greek);
}

.mythology-section.egyptian::before {
  background: var(--gradient-egyptian);
}

.mythology-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.mythology-icon {
  font-size: 4rem;
  padding: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
}

.mythology-section.norse .mythology-icon {
  background: var(--gradient-norse);
  color: white;
}

.mythology-section.greek .mythology-icon {
  background: var(--gradient-greek);
  color: white;
}

.mythology-section.egyptian .mythology-icon {
  background: var(--gradient-egyptian);
  color: white;
}

.mythology-header h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.mythology-description {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.6;
}

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

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

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

.item-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.item-tag {
  background: var(--primary-dark);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.item-tag:hover {
  background: var(--primary-gold);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* World Map Section */
.world-map {
  padding: 5rem 0;
  background: var(--gradient-dark);
  color: white;
}

.world-map .section-title {
  color: white;
}

.map-container {
  max-width: 800px;
  margin: 0 auto;
}

.map-placeholder {
  position: relative;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-region {
  position: absolute;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary-dark);
  min-width: 120px;
}

.map-region:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-heavy);
}

.map-region i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.map-region span {
  font-weight: 600;
  font-size: 0.9rem;
}

.norse-region {
  top: 10%;
  left: 20%;
}

.greek-region {
  top: 40%;
  right: 20%;
}

.egyptian-region {
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.map-note {
  text-align: center;
  margin-top: 1rem;
  opacity: 0.8;
  font-style: italic;
}

/* World Lore Section */
.world-lore {
  padding: 5rem 0;
  background: var(--primary-light);
}

.lore-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

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

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

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

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
  padding-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: left;
  padding-left: 2rem;
}

.timeline-marker {
  width: 20px;
  height: 20px;
  background: var(--primary-gold);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--shadow-medium);
  position: relative;
  z-index: 2;
}

.timeline-content {
  flex: 1;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  max-width: 45%;
}

.timeline-content h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

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

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

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

  .mythology-content {
    grid-template-columns: 1fr;
  }

  .map-placeholder {
    height: 300px;
  }

  .map-region {
    position: relative;
    display: block;
    margin: 1rem;
  }

  .norse-region,
  .greek-region,
  .egyptian-region {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
  }

  .lore-timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: row !important;
    padding-left: 3rem;
  }

  .timeline-item .timeline-content {
    text-align: left !important;
    padding-left: 2rem !important;
    padding-right: 1rem !important;
    max-width: 100%;
  }

  .timeline-marker {
    position: absolute;
    left: 11px;
  }
}
