/* CraftAttack.me - Home Page (Hybrid) */

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
  padding: 100px 20px 60px; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255,152,0,0.06) 0%, transparent 55%),
    var(--color-bg);
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(to top, var(--color-bg), transparent);
  pointer-events: none;
}
.hero-border {
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px; z-index: 2;
  background: repeating-linear-gradient(90deg,
    var(--mc-border-dark) 0px, var(--mc-border-dark) 4px,
    var(--mc-border-light) 4px, var(--mc-border-light) 8px,
    var(--mc-highlight) 8px, var(--mc-highlight) 12px,
    var(--mc-border-light) 12px, var(--mc-border-light) 16px);
}
.hero-content {
  position: relative; z-index: 2; max-width: 700px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.hero-logo {
  width: 180px; height: 180px;
  filter: drop-shadow(0 8px 32px rgba(255,152,0,0.25));
  animation: heroFloat 5s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.hero-text h1 { font-size: clamp(2rem,5vw,3rem); color: var(--color-primary); text-shadow: 0 2px 8px rgba(255,152,0,0.15); }
.hero-text p { font-size: 1rem; color: var(--color-text-muted); margin-top: 4px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* Hero 3D Skins */
.hero-skins {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
  opacity: 0.6;
}
.hero-skins-left { left: 5%; }
.hero-skins-right { right: 5%; }
.hero-skin {
  width: 100px; height: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
  animation: heroFloat 5s ease-in-out infinite;
  image-rendering: pixelated;
}
.hero-skins-left .hero-skin:nth-child(2) { animation-delay: -1.5s; margin-left: 20px; }
.hero-skins-right .hero-skin:nth-child(1) { animation-delay: -2.5s; }
.hero-skins-right .hero-skin:nth-child(2) { animation-delay: -4s; margin-left: -20px; }

/* News Card Image */
.news-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 14px;
  border: 2px solid var(--mc-border-dark);
}

/* ---- Aktuelles ---- */
.news-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-bottom: 16px;
}
.news-card {
  background: var(--color-bg-card);
  border: 2px solid var(--mc-border-light);
  border-top-color: var(--mc-highlight); border-left-color: var(--mc-highlight);
  border-bottom-color: var(--mc-border-dark); border-right-color: var(--mc-border-dark);
  padding: 28px;
}
.news-card-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--color-text-muted); margin-bottom: 10px;
}
.news-card h3 { color: var(--color-primary); margin-bottom: 8px; font-size: 1.15rem; }
.news-card p { font-size: 0.9rem; margin-bottom: 14px; }

/* ---- Bekannte Teilnehmer Preview ---- */
.creators-preview {
  margin-bottom: 16px;
}
.creators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 2px; background: var(--mc-border-dark); border: 2px solid var(--mc-border-dark);
  margin-bottom: 16px;
}
.creator-card {
  background: var(--color-bg-card); padding: 16px 10px;
  text-align: center; transition: background var(--transition);
  cursor: pointer; text-decoration: none; color: inherit; display: block;
}
.creator-card:hover { background: var(--color-bg-lighter); color: inherit; }
.creator-avatar {
  width: 56px; height: 56px; margin: 0 auto 8px;
  border: 2px solid var(--mc-border-light); overflow: hidden;
  background: var(--mc-border-dark); border-radius: 50%;
}
.creator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-name { font-size: 0.78rem; font-weight: 600; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Community Server Box ---- */
.server-box {
  background: var(--color-bg-card);
  border: 2px solid var(--mc-border-light);
  border-top-color: var(--mc-highlight); border-left-color: var(--mc-highlight);
  border-bottom-color: var(--mc-border-dark); border-right-color: var(--mc-border-dark);
  padding: 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.server-box-text h3 { color: var(--color-primary); margin-bottom: 6px; font-size: 1.1rem; }
.server-box-text p { font-size: 0.9rem; max-width: 500px; }
.server-box-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }

/* ---- Staffeln Overview ---- */
.staffeln-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 2px; background: var(--mc-border-dark); border: 2px solid var(--mc-border-dark);
}
.staffel-mini {
  background: var(--color-bg-card); padding: 14px 12px;
  text-decoration: none; color: var(--color-text);
  transition: background var(--transition);
  display: flex; flex-direction: column; gap: 2px;
}
.staffel-mini:hover { background: var(--color-bg-lighter); color: var(--color-text); }
.staffel-mini-num { font-size: 1.1rem; font-weight: 800; color: var(--color-primary); }
.staffel-mini-year { font-size: 0.72rem; color: var(--color-text-muted); }
.staffel-mini-players { font-size: 0.72rem; color: var(--color-text-muted); }
.staffel-mini.current { border-left: 3px solid var(--color-success); }

@media (max-width: 1100px) {
  .hero-skins { opacity: 0.3; }
  .hero-skin { width: 70px; }
}
@media (max-width: 768px) {
  .hero-skins { display: none; }
  .hero { min-height: auto; padding: 100px 16px 40px; }
  .hero-logo { width: 130px; height: 130px; }
  .news-grid { grid-template-columns: 1fr; }
  .server-box { flex-direction: column; text-align: center; }
  .server-box-right { align-items: center; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .staffeln-compact { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}
