/* Main CSS - Base Layout, Typography, Navigation, Footer */
/* 1990s Early Web meets Travel Guide aesthetic */

:root {
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  
  --primary: #667eea;
  --secondary: #764ba2;
  --accent: #f093fb;
  --text: #2d3748;
  --light: #f7fafc;
  --border: #e2e8f0;
  --focus: #4facfe;
}

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

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

body {
  font-family: 'Courier New', monospace;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.03) 2px,
      rgba(0,0,0,0.03) 4px
    );
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  font-weight: bold;
  margin-bottom: 1rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  padding: 1rem;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
  border-bottom: 3px solid;
  border-image: var(--gradient-2) 1;
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: underline;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary);
  background: linear-gradient(90deg, transparent 0%, rgba(102,126,234,0.1) 50%, transparent 100%);
}

a:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background: var(--gradient-1);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid var(--secondary);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  display: inline-block;
}

.logo:hover {
  background: rgba(0,0,0,0.3);
  color: white;
}

.logo:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  display: inline-block;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

nav a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

nav a:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Main Content */
main {
  min-height: calc(100vh - 300px);
  padding: 2rem 0;
  animation: fadeIn 0.5s ease-in;
}

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

/* Section Styling */
section {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-3);
}

/* Footer */
footer {
  background: var(--gradient-5);
  color: var(--text);
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 4px solid var(--accent);
}

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

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  background: none;
  -webkit-text-fill-color: var(--text);
}

.footer-links {
  list-style: none;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  padding: 0.25rem 0;
  display: inline-block;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-links a:focus {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  nav ul {
    justify-content: center;
    margin-top: 1rem;
  }
  
  section {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  
  nav ul {
    flex-direction: column;
    width: 100%;
  }
  
  nav a {
    width: 100%;
    justify-content: center;
  }
}

/* Print Styles */
@media print {
  header, footer {
    display: none;
  }
  
  main {
    padding: 0;
  }
  
  section {
    box-shadow: none;
    border: 1px solid #000;
    page-break-inside: avoid;
  }
}