/*!
 * D&D Oriental Adventures Theme CSS
 * Inspired by the Oriental Adventures setting from D&D 3rd edition
 * Color palette: Traditional Eastern colors - reds, golds, earth tones, and imperial purples
 */

/* Oriental Adventures Color Variables */
:root {
  /* Primary Oriental Colors */
  --oriental-deep-red: #8B0000;
  --oriental-crimson: #DC143C;
  --oriental-gold: #DAA520;
  --oriental-bright-gold: #FFD700;
  --oriental-imperial-purple: #6A0DAD;
  --oriental-deep-purple: #4B0082;
  --oriental-earth-brown: #8B4513;
  --oriental-dark-brown: #654321;
  --oriental-cream: #FFF8DC;
  --oriental-ivory: #FFFFF0;
  --oriental-jade-green: #00A86B;
  --oriental-bamboo-green: #8FBC8F;
  
  /* Background Colors */
  --oriental-dark-bg: #2C1810;
  --oriental-medium-bg: #3D2817;
  --oriental-light-bg: #4A3527;
  --oriental-paper: #F5F5DC;
  
  /* Accent Colors */
  --oriental-bronze: #CD7F32;
  --oriental-copper: #B87333;
  --oriental-silver: #C0C0C0;
  
  /* Gradient Colors */
  --oriental-gradient-primary: linear-gradient(135deg, var(--oriental-deep-red) 0%, var(--oriental-crimson) 100%);
  --oriental-gradient-gold: linear-gradient(135deg, var(--oriental-gold) 0%, var(--oriental-bright-gold) 100%);
  --oriental-gradient-imperial: linear-gradient(135deg, var(--oriental-imperial-purple) 0%, var(--oriental-deep-purple) 100%);
  --oriental-gradient-earth: linear-gradient(180deg, var(--oriental-earth-brown) 0%, var(--oriental-dark-brown) 100%);
  
  /* Box Shadow Effects */
  --oriental-shadow-soft: 0 3px 12px rgba(139, 0, 0, 0.3);
  --oriental-shadow-paper: 0 2px 8px rgba(0, 0, 0, 0.15);
  --oriental-shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  --oriental-glow-gold: 0 0 15px rgba(255, 215, 0, 0.4);
  --oriental-glow-red: 0 0 12px rgba(220, 20, 60, 0.3);
  
  /* Border Effects */
  --oriental-border-gold: 2px solid var(--oriental-gold);
  --oriental-border-red: 2px solid var(--oriental-crimson);
  --oriental-border-decorative: 3px double var(--oriental-gold);
}

/* Base Typography - Chinese/Japanese inspired */
.oriental-theme {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--oriental-dark-bg);
  color: var(--oriental-cream);
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
    linear-gradient(45deg, transparent 49%, rgba(218, 165, 32, 0.02) 50%, transparent 51%);
}

.oriental-theme h1,
.oriental-theme h2,
.oriental-theme h3,
.oriental-theme h4,
.oriental-theme h5,
.oriental-theme h6 {
  font-family: 'Georgia', serif;
  font-weight: bold;
  margin-bottom: 1rem;
  position: relative;
}

.oriental-theme h1 {
  font-size: 2.8rem;
  color: var(--oriental-bright-gold);
  text-shadow: 2px 2px 4px rgba(139, 0, 0, 0.8);
  border-bottom: var(--oriental-border-decorative);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.oriental-theme h1::after {
  content: '龍';
  position: absolute;
  right: 0;
  top: -10px;
  font-size: 1.5rem;
  color: var(--oriental-crimson);
  opacity: 0.7;
}

.oriental-theme h2 {
  font-size: 2rem;
  color: var(--oriental-crimson);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  border-left: 5px solid var(--oriental-gold);
  padding-left: 15px;
}

.oriental-theme h3 {
  font-size: 1.5rem;
  color: var(--oriental-gold);
  border-bottom: 1px solid var(--oriental-copper);
  padding-bottom: 0.3rem;
}

/* Body and Background Enhancement */
.oriental-theme body {
  background: var(--oriental-dark-bg);
  background-image: 
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23DAA520' fill-opacity='0.03'%3E%3Cpath d='M30 30c0-16.569 13.431-30 30-30v60c-16.569 0-30-13.431-30-30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 25% 25%, rgba(218, 165, 32, 0.1) 0%, transparent 70%);
  background-size: 60px 60px, 100% 100%;
}

/* Header Styling */
.oriental-theme header {
  background: var(--oriental-gradient-primary) !important;
  border-bottom: var(--oriental-border-gold);
  box-shadow: var(--oriental-shadow-soft);
  position: relative;
}

.oriental-theme header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M0,10 Q25,0 50,10 T100,10 L100,20 L0,20 Z' fill='%23DAA520' opacity='0.3'/%3E%3C/svg%3E");
  background-size: 100px 20px;
  background-repeat: repeat-x;
  background-position: bottom;
}

.oriental-theme header h1 {
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 1;
}

/* Navigation Enhancement */
.oriental-theme .nav-link {
  color: var(--oriental-cream) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 16px !important;
  margin: 0 5px;
  border-radius: 4px;
}

.oriental-theme .nav-link:hover {
  color: var(--oriental-bright-gold) !important;
  background: rgba(218, 165, 32, 0.2);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  transform: translateY(-1px);
}

/* List Group Styling */
.oriental-theme .list-group {
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--oriental-shadow-paper);
}

.oriental-theme .list-group-item {
  background: linear-gradient(135deg, var(--oriental-paper) 0%, var(--oriental-ivory) 100%);
  border: 1px solid var(--oriental-copper);
  color: var(--oriental-dark-brown);
  margin-bottom: 3px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 6px !important;
}

.oriental-theme .list-group-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--oriental-gradient-gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.oriental-theme .list-group-item:hover {
  background: linear-gradient(135deg, var(--oriental-bright-gold) 0%, var(--oriental-gold) 100%);
  color: var(--oriental-dark-bg);
  transform: translateX(8px);
  box-shadow: var(--oriental-glow-gold);
  border-color: var(--oriental-crimson);
}

.oriental-theme .list-group-item:hover::before {
  transform: scaleY(1);
}

.oriental-theme .list-group-item a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 2px 0;
  transition: all 0.3s ease;
  position: relative;
}

.oriental-theme .list-group-item:hover a {
  color: var(--oriental-dark-bg);
  text-shadow: 1px 1px 2px rgba(139, 0, 0, 0.3);
}

.oriental-theme .list-group-item a::after {
  content: '⟩';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) translateX(20px);
  opacity: 0;
  color: var(--oriental-crimson);
  font-weight: bold;
  transition: all 0.3s ease;
}

.oriental-theme .list-group-item:hover a::after {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}

/* Section Styling */
.oriental-theme section {
  margin-bottom: 2.5rem;
  background: rgba(245, 245, 220, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(218, 165, 32, 0.2);
  position: relative;
  overflow: hidden;
}

.oriental-theme section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z' fill='%23DAA520' opacity='0.1'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Footer Styling */
.oriental-theme footer {
  background: var(--oriental-gradient-earth) !important;
  border-top: var(--oriental-border-gold);
  color: var(--oriental-cream) !important;
  position: relative;
  margin-top: 3rem;
}

.oriental-theme footer::before {
  content: '◆ ◆ ◆ 東方冒険 ◆ ◆ ◆';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--oriental-gradient-gold);
  color: var(--oriental-dark-bg);
  font-family: serif;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 3px 15px;
  border-radius: 15px;
  border: 2px solid var(--oriental-crimson);
  box-shadow: var(--oriental-shadow-soft);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .oriental-theme h1 {
    font-size: 2.2rem;
  }
  
  .oriental-theme h1::after {
    font-size: 1.2rem;
  }
  
  .oriental-theme section {
    padding: 1rem;
  }
  
  .oriental-theme .list-group-item:hover {
    transform: translateX(4px);
  }
}

/* Animation for theme elements */
@keyframes orientalGlow {
  0% { 
    box-shadow: 0 0 5px rgba(218, 165, 32, 0.3);
  }
  50% { 
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.6);
  }
  100% { 
    box-shadow: 0 0 5px rgba(218, 165, 32, 0.3);
  }
}

.oriental-theme header {
  animation: orientalGlow 4s ease-in-out infinite;
}

/* Decorative elements */
.oriental-theme .container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--oriental-gradient-gold);
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(218, 165, 32, 0.5);
}