/* Chicki Trek Custom Theme - Based on game visuals */

/* Color palette from game visuals */
:root {
  /* Primary colors */
  --chicki-yellow: #ffdb58;
  --chicki-red: #ff5a5a;
  --sky-blue: #5dc9f1;
  --forest-green: #43c59e;
  --puzzle-blue: #4db6c9;
  --puzzle-pink: #ff7eb6;
  --puzzle-green: #7be495;
  --puzzle-orange: #ffa047;
  
  /* Secondary colors */
  --purple-accent: #9370db;
  --pink-accent: #ff8fce;
  --forest-blue: #007bba;
  
  /* Background gradients */
  --gradient-bg-1: linear-gradient(to bottom, #1a1e35, #293552);
  --gradient-bg-2: linear-gradient(to right, #293552, #462669);
  
  /* UI component colors */
  --header-bg: var(--gradient-bg-1);
  --footer-bg: var(--gradient-bg-1);
  --section-bg-dark: rgba(41, 53, 82, 0.9);
  --section-bg-light: rgba(55, 65, 100, 0.8);
  --card-bg: rgba(55, 65, 100, 0.7);
  --card-hover: rgba(67, 79, 115, 0.9);
  
  /* Text colors */
  --text-light: #ffffff;
  --text-muted: #b0b7c9;
  --text-accent: var(--chicki-yellow);
  --text-highlight: var(--chicki-red);

  /* Border colors */
  --border-accent: var(--chicki-red);
  --border-light: rgba(255, 255, 255, 0.2);
}

/* Base styling */
body {
  font-family: 'Mitr', 'Fira Sans', sans-serif;
  background: var(--gradient-bg-1);
  color: var(--text-light);
}

/* Hero section */
#Held {
  position: relative;
}

#Held::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(26, 30, 53, 0.2), rgba(41, 53, 82, 0.9));
  z-index: 5;
}

#Held img {
  filter: saturate(1.2);
  opacity: 0.85;
}

#Held h1 {
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  color: var(--chicki-yellow);
}

/* Sections */
section {
  padding: 3rem 1rem;
}

section h2 {
  color: var(--chicki-yellow);
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--chicki-red), var(--puzzle-pink));
  border-radius: 3px;
}

/* About section */
#Über {
  background-color: var(--section-bg-dark);
  position: relative;
  overflow: hidden;
}

#Über::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--puzzle-pink) 0%, transparent 70%);
  opacity: 0.3;
  z-index: 1;
  border-radius: 50%;
}

#Über p {
  color: var(--text-light);
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

/* Statistics section */
#Statistiken {
  background-color: var(--section-bg-light);
}

#Statistiken .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.statistic-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 4px solid var(--chicki-yellow);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.statistic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background-color: var(--card-hover);
}

/* News section */
#Nachrichten {
  background-color: var(--section-bg-dark);
}

.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 3px solid var(--chicki-red);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.news-date {
  color: var(--puzzle-blue);
  font-size: 0.9rem;
  font-weight: 500;
}

.news-title {
  color: var(--chicki-yellow);
  font-size: 1.4rem;
  margin: 0.5rem 0;
}

.news-content {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Gallery section */
#Galerie {
  background-color: var(--section-bg-light);
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.gallery-item:hover img {
  filter: brightness(1.1);
}

/* FAQ section */
#FAQ {
  background-color: var(--section-bg-dark);
}

.faq-item {
  background-color: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--forest-green);
}

.faq-question {
  padding: 1.5rem;
  font-weight: 600;
  color: var(--chicki-yellow);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  padding: 3rem 1rem;
}

footer a {
  color: var(--text-muted);
  transition: color 0.2s ease;
  text-decoration: none;
}

footer a:hover {
  color: var(--chicki-yellow);
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  background: linear-gradient(to right, var(--chicki-red), var(--puzzle-pink));
  color: white;
  box-shadow: 0 4px 15px rgba(255, 90, 90, 0.3);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 90, 90, 0.4);
}

.btn-secondary {
  background: linear-gradient(to right, var(--forest-blue), var(--puzzle-blue));
  box-shadow: 0 4px 15px rgba(77, 182, 201, 0.3);
}

.btn-secondary:hover {
  box-shadow: 0 8px 20px rgba(77, 182, 201, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .gallery-container,
  .news-container {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animated-float {
  animation: float 6s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
  background: rgba(26, 30, 53, 0.9);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--chicki-red), var(--puzzle-pink));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--puzzle-pink), var(--chicki-red));
}