/* styles.css - Contains shared styles */
:root {
  --primary-dark: #0b1120;
  --secondary-dark: #1e293b;
  --accent-gold: #d4af37;
  --accent-rust: #b7410e;
  --accent-teal: #2dd4bf;
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --parchment: #f5e6ca;
  --parchment-dark: #e6d8b5;
  --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--primary-dark);
  color: var(--text-light);
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(30, 41, 59, 0.4) 0%, transparent 20%),
    radial-gradient(circle at 85% 30%, rgba(45, 212, 191, 0.1) 0%, transparent 20%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%231e293b' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* HERO SECTION */
.hero {
  position: relative;
  background: 
    linear-gradient(rgba(11, 17, 32, 0.85), rgba(11, 17, 32, 0.9)),
    url('/images/MapChart_Map.png') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 120px 20px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(45, 212, 191, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
  background: linear-gradient(to right, #f5e6ca, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
  color: var(--text-light);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--accent-teal);
  font-weight: 600;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-rust));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(183, 65, 14, 0.4);
  margin: 10px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(183, 65, 14, 0.6);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* MAIN CONTENT */
.section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .section {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* CARDS */
.card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-heavy);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.4);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-rust));
}

.feature-card h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card p {
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.card ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.card li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

/* FEATURED TOWN */
.town-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin: 15px 0;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.town-name {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  margin: 10px 0 8px;
  color: var(--accent-gold);
}

.town-desc {
  margin: 8px 0 18px;
  line-height: 1.6;
  color: var(--text-light);
}

.town-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.town-meta span {
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent-teal);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.3);
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.delayed-1 { animation-delay: 0.2s; opacity: 0; }
.delayed-2 { animation-delay: 0.4s; opacity: 0; }
.delayed-3 { animation-delay: 0.6s; opacity: 0; }

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 5px;
}

/* FOOTER */
footer {
  background: var(--secondary-dark);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 20px;
}

/* COMPASS */
.compass {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-gold);
  border: 2px solid rgba(212, 175, 55, 0.5);
  z-index: 100;
  cursor: pointer;
  transition: all 0.3s ease;
}

.compass:hover {
  transform: rotate(30deg);
  background: rgba(30, 41, 59, 1);
}
