/*
Theme Name: Wolfini Software
Theme URI: https://wolfinisoftware.de
Description: Professional SIEM/SOC section meets playful Pinball & Gaming content
Version: 1.0.0
Author: Harald Weiss
Author URI: https://wolfinisoftware.de
Text Domain: wolfini
Domain Path: /languages
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ===============================
   GLOBAL STYLES & RESET
   =============================== */

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

:root {
  --primary-dark: #1a1a2e;
  --primary-light: #f8f9fa;
  --soc-accent: #0f3460;
  --soc-text: #e0e0e0;
  --pinball-vibrant: #ff6b35;
  --pinball-accent: #f7931e;
  --gaming-neon: #00d9ff;
  --gaming-purple: #b537f2;
  --gaming-pink: #ff006e;
  --white: #ffffff;
  --gray-dark: #2d2d2d;
  --gray-light: #f5f5f5;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--primary-light);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ===============================
   HEADER & NAVIGATION
   =============================== */

header {
  background: var(--white);
  border-bottom: 2px solid var(--gray-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--primary-dark);
  text-decoration: none;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.site-nav a:hover {
  border-bottom-color: var(--gaming-neon);
}

/* ===============================
   HERO SECTION (HOME)
   =============================== */

.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2d3561 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.section-tags {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tag-soc {
  background: var(--soc-accent);
  color: var(--soc-text);
}

.tag-pinball {
  background: var(--pinball-vibrant);
  color: var(--white);
}

.tag-gaming {
  background: var(--gaming-neon);
  color: var(--primary-dark);
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===============================
   MAIN SECTIONS LAYOUT
   =============================== */

.sections-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

/* SOC SECTION */
.section-soc {
  background: var(--soc-accent);
  color: var(--soc-text);
  padding: 2.5rem;
  border-radius: 8px;
  border-left: 5px solid var(--pinball-vibrant);
}

.section-soc h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-soc h2::before {
  content: "🔒";
  font-size: 1.5rem;
}

.posts-list {
  list-style: none;
}

.posts-list li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.posts-list li:last-child {
  border-bottom: none;
}

.posts-list a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.posts-list a:hover {
  color: var(--pinball-accent);
}

.post-date {
  font-size: 0.85rem;
  opacity: 0.7;
  display: block;
  margin-top: 0.3rem;
}

/* PINBALL SECTION */
.section-pinball {
  background: linear-gradient(135deg, #ffe66d 0%, var(--pinball-vibrant) 100%);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  border-left: 5px solid var(--gaming-purple);
}

.section-pinball h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.section-pinball h2::before {
  content: "📍";
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.section-pinball .posts-list a {
  color: var(--white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.section-pinball .posts-list a:hover {
  color: var(--primary-dark);
  text-shadow: none;
}

/* GAMING SECTION */
.section-gaming {
  background: linear-gradient(135deg, var(--gaming-purple) 0%, var(--gaming-pink) 100%);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  border-left: 5px solid var(--gaming-neon);
}

.section-gaming h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-gaming h2::before {
  content: "🎮";
  font-size: 1.5rem;
}

.section-gaming .posts-list a {
  color: var(--white);
}

.section-gaming .posts-list a:hover {
  color: var(--gaming-neon);
  text-shadow: 0 0 10px var(--gaming-neon);
}

/* ===============================
   SINGLE POST PAGE
   =============================== */

.single-post {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--gray-light);
}

.post-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.post-content {
  line-height: 1.8;
  font-size: 1.05rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.post-content code {
  background: var(--gray-light);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.post-content pre {
  background: var(--primary-dark);
  color: var(--soc-text);
  padding: 1.5rem;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--soc-text);
}

/* ===============================
   FOOTER
   =============================== */

footer {
  background: var(--primary-dark);
  color: var(--soc-text);
  padding: 3rem 2rem;
  margin-top: 4rem;
  border-top: 2px solid var(--pinball-vibrant);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--soc-text);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--pinball-vibrant);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .site-nav {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .post-title {
    font-size: 2rem;
  }

  .section-tags {
    flex-direction: column;
  }

  .tag {
    width: 100%;
    text-align: center;
  }
}