/*
Theme Name: MyStarCraft Theme
Theme URI: http://mystarcraft.de
Description: StarCraft Legacy Hub - Die Geschichte des StarCraft-Esports
Version: 1.0
Author: mystarcraft.de
Text Domain: mystarcraft
*/

:root {
  --primary: #1B2D4E;
  --secondary: #2BA5B5;
  --accent: #4FC3D0;
  --bg-dark: #0D1B2A;
  --bg-light: #F0F4F8;
  --text-white: #FFFFFF;
  --text-dark: #1A1A2E;
  --card-bg: #142238;
  --border: #1E3A5F;
  --glow: rgba(43, 165, 181, 0.3);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: linear-gradient(180deg, var(--primary) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo img {
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  height: 45px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: var(--text-white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 50%, var(--bg-dark) 100%);
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-white) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--glow);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-white);
}

.card-body p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--accent);
}

.card-meta span {
  background: rgba(43,165,181,0.15);
  padding: 3px 10px;
  border-radius: 20px;
}

/* Section Titles */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-white);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin-top: 8px;
}

.section-subtitle {
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  font-size: 1rem;
}

section { padding: 60px 0; }

/* Single Post/Page */
.entry-header {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 40px;
}

.entry-header-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
}

.entry-header-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70%;
  background: linear-gradient(transparent, var(--bg-dark));
}

.entry-header-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.entry-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.entry-content p {
  margin-bottom: 16px;
  color: rgba(255,255,255,0.85);
}

.entry-content h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
  color: var(--accent);
}

.entry-content h3 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--text-white);
}

.entry-content ul, .entry-content ol {
  margin: 0 0 16px 24px;
  color: rgba(255,255,255,0.85);
}

.entry-content li { margin-bottom: 6px; }

.entry-content blockquote {
  border-left: 4px solid var(--secondary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--card-bg);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: rgba(255,255,255,0.8);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.entry-content th,
.entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.entry-content th {
  background: var(--primary);
  color: var(--accent);
  font-weight: 600;
}

.entry-content td {
  background: var(--card-bg);
}

/* Player Profile */
.player-info {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: 40px;
}

.player-stats {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.player-stats dt {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.player-stats dd {
  margin-bottom: 16px;
  font-size: 1rem;
}

/* FAQ Section */
.faq-section { margin-top: 48px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  background: var(--card-bg);
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after { content: '+'; color: var(--accent); font-size: 1.3rem; }
.faq-item.open .faq-question::after { content: '−'; }

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item.open .faq-answer {
  padding: 16px 20px;
  max-height: 500px;
}

/* Archive */
.archive-header {
  padding: 60px 0 32px;
  text-align: center;
}

.archive-header h1 { font-size: 2.2rem; }

/* Footer */
.site-footer {
  background: var(--primary);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 40px;
}

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

.footer-col h4 {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* Era Timeline */
.era-timeline {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 40px 0;
  flex-wrap: wrap;
}

.era-item {
  text-align: center;
  padding: 16px 24px;
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.era-item:first-child { border-radius: 8px 0 0 8px; }
.era-item:last-child { border-radius: 0 8px 8px 0; }

.era-item:hover {
  background: var(--primary);
  border-color: var(--secondary);
}

.era-item .era-year {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.era-item .era-name {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}

.pagination a, .pagination span {
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-white);
}

.pagination .current {
  background: var(--secondary);
  border-color: var(--secondary);
}

/* Search */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 24px auto;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 10px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-white);
  font-size: 1rem;
}

.search-form button {
  padding: 10px 20px;
  background: var(--secondary);
  border: none;
  border-radius: 6px;
  color: var(--text-white);
  cursor: pointer;
  font-weight: 600;
}

/* 404 */
.error-404 {
  text-align: center;
  padding: 100px 20px;
}

.error-404 h1 {
  font-size: 6rem;
  color: var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--primary);
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }

  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 8px; }

  .hero h1 { font-size: 1.8rem; }
  .hero { min-height: 350px; }

  .card-grid { grid-template-columns: 1fr; }

  .player-info { grid-template-columns: 1fr; }

  .entry-header h1 { font-size: 1.6rem; }

  .era-timeline { flex-direction: column; }
  .era-item:first-child { border-radius: 8px 8px 0 0; }
  .era-item:last-child { border-radius: 0 0 8px 8px; }

  .footer-grid { grid-template-columns: 1fr; }
}
