/*
Theme Name: KDF-Warp
Theme URI: https://deine-domain.de/themes/kdf-warp
Author: Captain
Author URI: https://deine-domain.de
Version: 1.0.0
Description: Klingonisches Warp-Kommando-Interface mit animierter Sternenfeld-Optik und vollständiger WordPress-Kompatibilität.
License: GPL v2 or later
Text Domain: kdf
Tags: two-columns, left-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ========== FONTS ========== */
@font-face {
  font-family: 'Xolonium';
  src: url('fonts/xolonium.woff2') format('woff2'),
       url('fonts/xolonium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'KlingonBlade';
  src: url('fonts/klingonblade.woff2') format('woff2'),
       url('fonts/klingonblade.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ========== RESET & GLOBAL ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #000;
  font-family: 'Xolonium', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #00ff66;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Warp Canvas Hintergrund */
canvas#warp-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, #0a1a0a 0%, #000 70%);
}

/* Links */
a {
  color: #00ff66;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover,
a:focus {
  color: #66ffaa;
  text-decoration: underline;
  outline: 2px solid #00ff66;
  outline-offset: 2px;
}

/* Screen Reader Text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ========== ALERT-BANNER ========== */
.alert-banner {
  font-family: 'KlingonBlade', 'Xolonium', sans-serif;
  background: linear-gradient(90deg, #ff0000, #cc0000);
  color: #fff;
  padding: 0.8rem 1rem;
  font-size: 1.2rem;
  text-align: center;
  animation: alert-pulse 2s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  position: relative;
  z-index: 1000;
}

@keyframes alert-pulse {
  0%, 100% { 
    opacity: 1; 
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
  }
  50% { 
    opacity: 0.8; 
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.8);
  }
}

/* ========== HEADER ========== */
.header {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #00ff66;
  text-align: center;
  padding: 2rem;
  border-bottom: 3px solid #00ff66;
  box-shadow: 0 4px 20px rgba(0, 255, 102, 0.3);
  position: relative;
  z-index: 100;
}

.site-title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(0, 255, 102, 0.5);
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-description {
  margin: 0.5rem 0 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ========== NAVIGATION ========== */
.navbar {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-bottom: 2px solid #00ff66;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 255, 100, 0.2);
}

.main-nav,
.navbar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.navbar li {
  margin: 0;
}

.navbar a {
  display: inline-block;
  background: linear-gradient(135deg, #003300 0%, #004400 100%);
  color: #00ff66;
  padding: 0.7rem 1.5rem;
  border: 2px solid #00ff66;
  border-radius: 25px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 255, 102, 0.2);
}

.navbar a:hover,
.navbar a:focus,
.navbar .current-menu-item > a,
.navbar .current_page_item > a {
  background: linear-gradient(135deg, #00ff66 0%, #00cc55 100%);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 102, 0.4);
  text-decoration: none;
  outline: none;
}

/* ========== LAYOUT ========== */
.layout {
  display: flex;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
  gap: 2rem;
  min-height: 60vh;
}

/* ========== SIDEBAR ========== */
.sidebar {
  flex: 0 0 280px;
  background: rgba(0, 51, 0, 0.2);
  border: 2px solid #00ff66;
  border-radius: 15px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 100px;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 20px rgba(0, 255, 102, 0.1);
}

.sidebar-title {
  color: #00ff66;
  font-size: 1.4rem;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #00ff66;
  padding-bottom: 0.5rem;
}

/* Sidebar Menu als Buttons */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.sidebar-menu li {
  margin-bottom: 0.8rem;
}

.sidebar-button,
.sidebar-menu a {
  display: block;
  background: linear-gradient(135deg, #002200 0%, #003300 100%);
  color: #00ff66 !important;
  padding: 0.8rem 1.2rem;
  border: 2px solid #00ff66;
  border-radius: 10px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 255, 102, 0.1);
}

.sidebar-button:hover,
.sidebar-button:focus,
.sidebar-menu a:hover,
.sidebar-menu a:focus,
.sidebar-menu .current-menu-item > a,
.sidebar-menu .current_page_item > a {
  background: linear-gradient(135deg, #00ff66 0%, #00cc55 100%);
  color: #000 !important;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 255, 102, 0.3);
  text-decoration: none;
  outline: none;
}

/* Sidebar Widgets */
.widget {
  margin-bottom: 2rem;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  color: #00ff66;
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 255, 102, 0.2);
}

.widget li:last-child {
  border-bottom: none;
}

/* ========== CONTENT ========== */
.content {
  flex: 1;
  min-width: 0;
}

#primary {
  width: 100%;
}

/* KDF Panel Style */
.kdf-panel {
  background: rgba(0, 51, 0, 0.1);
  border: 2px solid #00ff66;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 20px rgba(0, 255, 102, 0.1);
  position: relative;
  overflow: hidden;
}

.kdf-panel::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00ff66, transparent, #00ff66);
  border-radius: 15px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.kdf-panel:hover::before {
  opacity: 0.1;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #00ff66;
  margin-top: 0;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

.entry-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.entry-meta {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 255, 102, 0.2);
}

.entry-content {
  margin-top: 1.5rem;
}

.entry-content p {
  margin-bottom: 1rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 255, 102, 0.2);
}

/* Post Grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.post-preview {
  background: rgba(0, 255, 102, 0.05);
  border: 2px solid #00ff66;
  padding: 1.5rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 255, 102, 0.1);
}

.post-preview:hover {
  transform: translateY(-5px);
  background: rgba(0, 255, 102, 0.1);
  box-shadow: 0 6px 20px rgba(0, 255, 102, 0.3);
}

.post-preview .entry-title {
  font-size: 1.4rem;
  margin: 1rem 0;
}

.post-thumb img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.post-preview:hover .post-thumb img {
  transform: scale(1.05);
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  background: linear-gradient(135deg, #003300 0%, #004400 100%);
  color: #00ff66;
  padding: 0.5rem 1.2rem;
  border: 2px solid #00ff66;
  border-radius: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.read-more:hover,
.read-more:focus {
  background: linear-gradient(135deg, #00ff66 0%, #00cc55 100%);
  color: #000;
  text-decoration: none;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 255, 102, 0.3);
}

/* ========== COMMENTS ========== */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #00ff66;
}

.comments-title {
  color: #00ff66;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  background: rgba(0, 51, 0, 0.1);
  border: 1px solid rgba(0, 255, 102, 0.3);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.comment-author {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.comment-author .avatar {
  border-radius: 50%;
  margin-right: 1rem;
  border: 2px solid #00ff66;
}

.comment-metadata {
  font-size: 0.9rem;
  opacity: 0.7;
}

.comment-content {
  margin: 1rem 0;
}

.reply {
  text-align: right;
}

.comment-reply-link {
  background: linear-gradient(135deg, #003300 0%, #004400 100%);
  color: #00ff66;
  padding: 0.3rem 1rem;
  border: 1px solid #00ff66;
  border-radius: 15px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.comment-reply-link:hover {
  background: linear-gradient(135deg, #00ff66 0%, #00cc55 100%);
  color: #000;
  text-decoration: none;
}

/* Comment Form */
.comment-respond {
  margin-top: 2rem;
  background: rgba(0, 51, 0, 0.1);
  border: 2px solid #00ff66;
  border-radius: 15px;
  padding: 2rem;
}

.comment-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: #00ff66;
  font-weight: bold;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #00ff66;
  border-radius: 10px;
  color: #00ff66;
  padding: 0.8rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  background: rgba(0, 51, 0, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.3);
}

.comment-form .submit {
  background: linear-gradient(135deg, #003300 0%, #004400 100%);
  color: #00ff66;
  border: 2px solid #00ff66;
  border-radius: 25px;
  padding: 0.8rem 2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.comment-form .submit:hover {
  background: linear-gradient(135deg, #00ff66 0%, #00cc55 100%);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 102, 0.4);
}

/* ========== PAGINATION ========== */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
}

.page-numbers,
.nav-links a,
.nav-links span {
  display: inline-block;
  background: linear-gradient(135deg, #003300 0%, #004400 100%);
  color: #00ff66;
  padding: 0.5rem 1rem;
  border: 2px solid #00ff66;
  border-radius: 10px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-numbers:hover,
.nav-links a:hover,
.page-numbers.current,
.nav-links .current {
  background: linear-gradient(135deg, #00ff66 0%, #00cc55 100%);
  color: #000;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 102, 0.3);
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #00ff66;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  border-top: 3px solid #00ff66;
  box-shadow: 0 -4px 20px rgba(0, 255, 102, 0.2);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.footer-widget {
  text-align: left;
}

.footer-widget-title {
  color: #00ff66;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== SEARCH FORM ========== */
.search-form {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.search-field {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #00ff66;
  border-radius: 25px;
  color: #00ff66;
  padding: 0.8rem 1.5rem;
  font-family: inherit;
}

.search-submit {
  background: linear-gradient(135deg, #003300 0%, #004400 100%);
  color: #00ff66;
  border: 2px solid #00ff66;
  border-radius: 25px;
  padding: 0.8rem 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-submit:hover {
  background: linear-gradient(135deg, #00ff66 0%, #00cc55 100%);
  color: #000;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }
  
  .sidebar {
    flex: 1 1 100%;
    position: static;
    margin-bottom: 2rem;
  }
  
  .navbar ul {
    flex-direction: column;
    align-items: stretch;
  }
  
  .navbar a {
    text-align: center;
  }
  
  .post-grid {
    grid-template-columns: 1fr;
  }
  
  .site-title {
    font-size: 1.8rem;
  }
  
  .alert-banner {
    font-size: 1rem;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .kdf-panel {
    padding: 1rem;
  }
  
  .entry-title {
    font-size: 1.5rem;
  }
  
  .sidebar {
    padding: 1rem;
  }
}

/* ========== WORDPRESS CORE STYLES ========== */
.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.wp-caption img {
  display: block;
  margin: 0 auto;
}

.wp-caption-text {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.gallery {
  margin-bottom: 1.5rem;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  vertical-align: top;
  width: 100%;
}

.gallery-columns-2 .gallery-item {
  max-width: 50%;
}

.gallery-columns-3 .gallery-item {
  max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
  max-width: 25%;
}

.sticky {
  border: 3px solid #00ff66;
  box-shadow: 0 0 30px rgba(0, 255, 102, 0.4);
}

.bypostauthor {
  background: rgba(0, 255, 102, 0.05);
}