/*
 * Global styling for Bücherklub.de travel blog
 * Color palette inspired by the trap aesthetic: dark base with neon highlights.
 */

/* CSS reset and basic styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #0a0a0a;
  color: #f5f5f5;
  line-height: 1.6;
}

/* Container to center content and set max width */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.8);
  z-index: 100;
  backdrop-filter: blur(4px);
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ff5f9e;
}

/* Hero section */
header {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}

/* Hero background using generated image */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

/* Gradient overlay for better contrast */
header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.9) 100%);
  z-index: -1;
}

.hero-content h1 {
  font-size: 3rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #dcdcdc;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.primary-btn {
  background-color: #ff5f9e;
  color: #ffffff;
}

.primary-btn:hover {
  background-color: #d44b82;
}

.instagram-btn {
  background-color: #833ab4;
  color: #ffffff;
}

.instagram-btn:hover {
  background-color: #962fbf;
}

/* Section base styles */
.section {
  padding: 5rem 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #ff5f9e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* About section layout */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.about-text {
  flex: 1 1 400px;
  min-width: 300px;
}

.about-text h2 {
  margin-bottom: 1rem;
  text-align: left;
}

.about-text p {
  color: #dcdcdc;
  font-size: 1rem;
}

.about-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Gallery section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Blog posts */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.post {
  background-color: #151515;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.post:hover {
  transform: translateY(-5px);
}

.post img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-text {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-text h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #ff5f9e;
}

.post-text p {
  flex-grow: 1;
  color: #dcdcdc;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.read-more {
  align-self: flex-start;
  color: #00d4ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #66e0ff;
}

/* Contact section */
.contact-content {
  text-align: center;
}

.contact .email {
  margin-top: 1rem;
  color: #dcdcdc;
}

.contact .email a {
  color: #00d4ff;
  text-decoration: none;
}

.contact .email a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #050505;
  padding: 1.5rem 0;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  .about-image img {
    max-width: 90%;
    margin-top: 1rem;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    margin-top: 0.5rem;
  }
}