/* 
 * Ancient styling for 7 Wonders webpage
 * This ensures ancient theme styles work correctly when deployed to nginx
 */

/* Base styles and reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ancient gradient and parchment texture */
body {
  font-family: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  line-height: 1.6;
  color: #f0e6d2;
  background: linear-gradient(to bottom, #271d10, #3b2b19, #5a442c, #3b2b19, #271d10);
  background-attachment: fixed;
  background-size: 100% 400%;
  background-position: 0% 0%;
  animation: ancientShift 120s ease infinite alternate;
  overflow-x: hidden;
  position: relative;
}

/* Subtle papyrus texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIiB2aWV3Qm94PSIwIDAgMzAwIDMwMCI+CiAgPGZpbHRlciBpZD0ibm9pc2UiPgogICAgPGZlVHVyYnVsZW5jZSBiYXNlRnJlcXVlbmN5PSIwLjcgMC43IiBudW1PY3RhdmVzPSIyIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIiB0eXBlPSJmcmFjdGFsTm9pc2UiLz4KICAgIDxmZUNvbG9yTWF0cml4IHR5cGU9InNhdHVyYXRlIiB2YWx1ZXM9IjAiLz4KICAgIDxmZUNvbXBvbmVudFRyYW5zZmVyPgogICAgICA8ZmVGdW5jUiBzbG9wZT0iMC44IiBpbnRlcmNlcHQ9IjAuMiIgdHlwZT0ibGluZWFyIi8+CiAgICAgIDxmZUZ1bmNHIHNsb3BlPSIwLjgiIGludGVyY2VwdD0iMC4yIiB0eXBlPSJsaW5lYXIiLz4KICAgICAgPGZlRnVuY0Igc2xvcGU9IjAuOCIgaW50ZXJjZXB0PSIwLjIiIHR5cGU9ImxpbmVhciIvPgogICAgPC9mZUNvbXBvbmVudFRyYW5zZmVyPgogIDwvZmlsdGVyPgogIDxyZWN0IHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIiBmaWxsPSIjZjBlNmQyIiBmaWx0ZXI9InVybCgjbm9pc2UpIiBvcGFjaXR5PSIwLjAzIi8+Cjwvc3ZnPg==');
  background-repeat: repeat;
  opacity: 0.5;
  z-index: -1;
}

/* Animation for ancient parchment shift */
@keyframes ancientShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 100%; }
}

/* Heading styles */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', 'Trajan Pro', serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #e0c088;
  text-shadow: 0 0 10px rgba(224, 192, 136, 0.4);
  letter-spacing: 1px;
}

/* Header styles */
header {
  background-color: rgba(39, 29, 16, 0.9);
  color: white;
  padding: 12px 0;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(224, 192, 136, 0.3);
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3), 0 0 8px rgba(224, 192, 136, 0.2);
  transition: all 0.3s ease;
}

.logo {
  font-family: 'Cinzel', 'Trajan Pro', serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #e0c088;
  text-shadow: 0 0 10px rgba(224, 192, 136, 0.4);
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 5px 0;
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #e0c088;
  box-shadow: 0 0 8px #e0c088;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: #e0c088;
  text-shadow: 0 0 10px rgba(224, 192, 136, 0.6);
}

nav ul li a:hover::after {
  width: 100%;
}

/* AI notice */
.ai-notice {
  background-color: rgba(59, 43, 25, 0.9);
  border-top: 1px solid rgba(224, 192, 136, 0.3);
  border-bottom: 1px solid rgba(224, 192, 136, 0.3);
  color: #f0e6d2;
}

.ai-notice .phone {
  color: #e0c088;
  text-shadow: 0 0 8px rgba(224, 192, 136, 0.5);
}

/* Hero section with animation */
.hero {
  position: relative;
  background-color: transparent !important;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(39, 29, 16, 0.2) 0%, rgba(59, 43, 25, 0.3) 100%) !important;
  z-index: 1;
  animation: ancientLight 10s ease-in-out infinite alternate;
}

@keyframes ancientLight {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.2; }
}

/* Section styles */
.section {
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  border: 1px solid rgba(224, 192, 136, 0.2) !important;
  border-radius: 12px !important;
  margin: 60px 0 !important;
}

.section:nth-child(odd) {
  background-color: rgba(59, 43, 25, 0.6) !important;
}

.section:nth-child(even) {
  background-color: rgba(39, 29, 16, 0.6) !important;
}

/* Text styles */
.text-block p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f0e6d2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Image styles */
.image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(224, 192, 136, 0.3), 0 0 15px rgba(224, 192, 136, 0.2);
  transition: all 0.4s ease;
  filter: brightness(1.05) contrast(1.05) sepia(0.2);
  border: 1px solid rgba(224, 192, 136, 0.2);
}

.image-block img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(224, 192, 136, 0.6), 0 0 20px rgba(224, 192, 136, 0.4);
  filter: brightness(1.1) contrast(1.1) sepia(0.1);
  border: 1px solid rgba(224, 192, 136, 0.6);
}

/* Ancient icon styles */
.ancient-icon {
  color: #e0c088;
  margin-right: 10px;
  text-shadow: 0 0 10px rgba(224, 192, 136, 0.5);
  animation: glow 2s infinite ease-in-out;
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(224, 192, 136, 0.3);
  }
  50% {
    text-shadow: 0 0 15px rgba(224, 192, 136, 0.6), 0 0 20px rgba(224, 192, 136, 0.3);
  }
}

/* Highlight box */
.highlight-box {
  background-color: rgba(59, 43, 25, 0.8);
  border-left: 5px solid rgba(224, 192, 136, 0.7);
  padding: 25px;
  margin: 30px 0;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 5px 15px rgba(224, 192, 136, 0.15), inset 0 0 30px rgba(39, 29, 16, 0.7);
  position: relative;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.highlight-box p {
  color: #f0e6d2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.highlight-box p em {
  color: #e0c088;
  text-shadow: 0 0 8px rgba(224, 192, 136, 0.5);
}

/* Ancient hieroglyph decorations */
.section::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSI+PHBhdGggZD0iTTEwLDMwIEw1MCwzMCBNMzAsMTAgTDMwLDUwIE0xNSwxNSBMNDUsNDUgTTQ1LDE1IEwxNSw0NSBNMTAsMjAgTDUwLDIwIE0xMCw0MCBMNTAsNDAgTTIwLDEwIEwyMCw1MCBNNDAsMTAgTDQwLDUwIiBzdHJva2U9InJnYmEoMjI0LCAxOTIsIDEzNiwgMC4yKSIgc3Ryb2tlLXdpZHRoPSIxLjUiPjwvcGF0aD48L3N2Zz4=');
  background-size: contain;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}