/* ========================================
   Trollfjell Website - Main Stylesheet
   ======================================== */

/* === Reset & Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Header / Toppfelt === */
header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

header h1 {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Placeholder for future header image */
header.with-image {
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

/* === Main Container (Sidebar + Content) === */
.container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  flex: 1;
  width: 100%;
  gap: 0;
}

/* === Sidebar / Sidefelt === */
.sidebar {
  width: 250px;
  background: white;
  box-shadow: 2px 0 10px rgba(0,0,0,0.05);
  padding: 30px 0;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin: 0;
}

.sidebar a {
  display: block;
  padding: 15px 30px;
  color: #555;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.sidebar a:hover {
  background: #f8f9fa;
  color: #667eea;
  border-left-color: #667eea;
}

.sidebar a.active {
  background: #f0f3ff;
  color: #667eea;
  border-left-color: #667eea;
  font-weight: 600;
}

/* === Main Content === */
.content {
  flex: 1;
  background: white;
  padding: 40px 60px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.content h2 {
  font-size: 2.2rem;
  color: #667eea;
  margin-bottom: 20px;
}

.content h3 {
  font-size: 1.6rem;
  color: #555;
  margin-top: 30px;
  margin-bottom: 15px;
}

.content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 15px;
}

.content section {
  margin-bottom: 40px;
}

.content ul {
  margin-left: 25px;
  margin-bottom: 15px;
}

.content li {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 10px;
}

.content a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.content a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* === Footer / Bunnfelt === */
footer {
  background: #2c3e50;
  color: white;
  padding: 30px 20px;
  margin-top: auto;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  margin: 10px 0;
  font-size: 0.95rem;
}

.footer-content a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  transition: opacity 0.3s ease;
}

.footer-content a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    padding: 20px 0;
  }
  
  .sidebar ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .sidebar li {
    margin: 5px;
  }
  
  .sidebar a {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 10px 20px;
  }
  
  .sidebar a:hover,
  .sidebar a.active {
    border-left: none;
    border-bottom-color: #667eea;
  }
  
  .content {
    padding: 30px 20px;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  .header-content {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .content h2 {
    font-size: 1.8rem;
  }
  
  .content h3 {
    font-size: 1.4rem;
  }
  
  .content p,
  .content li {
    font-size: 1rem;
  }
}
