/* 
 * Machina Lore Website - Main Styles
 * Core styling for the entire website inspired by The Smashing Pumpkins' Machina albums
 */

/* ===== Base Styles ===== */
:root {
  /* Color Palette - Inspired by Machina album artwork */
  --color-dark: #0a0a0f;
  --color-darker: #050508;
  --color-medium: #1a1a24;
  --color-light: #e0e0e6;
  --color-accent: #7b68ee; /* Ethereal purple */
  --color-accent-alt: #c0362c; /* Deep red accent */
  --color-muted: #4a4a5a;
  --color-gold: #d4af37; /* Alchemical gold accent */
  
  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Raleway', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-dark);
  color: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: linear-gradient(to bottom, var(--color-darker), var(--color-dark));
  min-height: 100vh;
  position: relative;
}

/* Add subtle texture overlay to body */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 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='%237b68ee' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md) 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-light);
  letter-spacing: 0.05em;
}

h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
}

h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--color-light);
}

ul, ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-md);
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.caption {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: var(--spacing-xs);
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--spacing-sm);
  margin: var(--spacing-md) 0;
  font-style: italic;
  color: var(--color-light);
}

/* ===== Header & Navigation ===== */
header {
  background-color: var(--color-darker);
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.logo-container {
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.logo-container h1 {
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(123, 104, 238, 0.3);
}

.subtitle {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  font-weight: 400;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin: 0 var(--spacing-sm);
}

nav a {
  color: var(--color-light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--spacing-xs) 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a.active {
  color: var(--color-accent);
}

/* ===== Hero Section ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) 0;
  text-align: center;
  background-color: var(--color-darker);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(123, 104, 238, 0.1) 0%, rgba(10, 10, 15, 0) 70%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: var(--spacing-md);
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 0 15px rgba(123, 104, 238, 0.5);
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.hero-image {
  position: relative;
  z-index: 2;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(123, 104, 238, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(123, 104, 238, 0.2);
}

.hero-image:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(123, 104, 238, 0.4);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Page Hero ===== */
.page-hero {
  background-color: var(--color-darker);
  padding: var(--spacing-lg) 0;
  text-align: center;
  margin-bottom: var(--spacing-md);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(5, 5, 8, 0.7), rgba(10, 10, 15, 0.9));
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 0 15px rgba(123, 104, 238, 0.5);
}

/* ===== Sections ===== */
section {
  padding: var(--spacing-md) 0;
  position: relative;
}

section:nth-child(odd) {
  background-color: rgba(26, 26, 36, 0.3);
}

/* Two Column Layout */
.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.column {
  flex: 1;
  min-width: 300px;
}

/* Featured Image */
.featured-image {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(123, 104, 238, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(123, 104, 238, 0.1);
}

.featured-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(123, 104, 238, 0.3);
}

/* ===== Album Showcase ===== */
.albums-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
}

.album {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: var(--color-medium);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(123, 104, 238, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(123, 104, 238, 0.1);
}

.album:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(123, 104, 238, 0.3);
}

.album img {
  width: 100%;
  height: auto;
  display: block;
}

.album-info {
  padding: var(--spacing-sm);
}

.album-info h3 {
  margin-bottom: var(--spacing-xs);
  color: var(--color-accent);
}

.album-info p {
  margin-bottom: var(--spacing-xs);
  font-size: 0.9rem;
}

/* ===== Character Cards ===== */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.character-card {
  background-color: var(--color-medium);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(123, 104, 238, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(123, 104, 238, 0.1);
}

.character-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(123, 104, 238, 0.3);
}

.character-image {
  height: 200px;
  background-color: var(--color-darker);
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-info {
  padding: var(--spacing-sm);
}

.character-info h4 {
  color: var(--color-accent);
  margin-bottom: var(--spacing-xs);
}

/* ===== Footer ===== */
footer {
  background-color: var(--color-darker);
  padding: var(--spacing-md) 0;
  margin-top: var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top center, rgba(123, 104, 238, 0.05) 0%, rgba(10, 10, 15, 0) 70%);
  z-index: 1;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 2;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: var(--spacing-xs);
}

.copyright {
  text-align: center;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--color-muted);
  color: var(--color-muted);
  font-size: 0.875rem;
  position: relative;
  z-index: 2;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-dark);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 10px rgba(123, 104, 238, 0.2);
}

.btn:hover {
  background-color: var(--color-light);
  color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15), 0 0 15px rgba(123, 104, 238, 0.3);
}

.btn-alt {
  background-color: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-alt:hover {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

/* ===== Note Box ===== */
.note-box {
  background-color: rgba(123, 104, 238, 0.1);
  border-left: 4px solid var(--color-accent);
  padding: var(--spacing-sm);
  margin: var(--spacing-md) 0;
  position: relative;
}

.note-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, rgba(123, 104, 238, 0.1) 0%, rgba(10, 10, 15, 0) 70%);
  pointer-events: none;
}

.note-box h4 {
  color: var(--color-accent);
  margin-bottom: var(--spacing-xs);
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.gallery-item {
  background-color: var(--color-medium);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(123, 104, 238, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(123, 104, 238, 0.1);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(123, 104, 238, 0.3);
}

.gallery-image img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-caption {
  padding: var(--spacing-sm);
}

.gallery-caption h4 {
  margin-bottom: var(--spacing-xs);
  color: var(--color-accent);
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding: var(--spacing-md) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, 
    var(--color-accent) 0%, 
    var(--color-accent-alt) 50%, 
    var(--color-accent) 100%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-md);
}

.timeline-marker {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background-color: var(--color-accent);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--color-dark), 0 0 0 8px rgba(123, 104, 238, 0.3);
}

.timeline-content {
  width: 45%;
  padding: var(--spacing-sm);
  background-color: var(--color-medium);
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(123, 104, 238, 0.2);
  border: 1px solid rgba(123, 104, 238, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

/* ===== Alchemical Symbols ===== */
.alchemical-symbol {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 0 5px;
  vertical-align: middle;
  opacity: 0.8;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-darker);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}