/*
Theme Name: No Space For Old Men
Theme URI: https://example.com/nsfom-theme
Author: Steven Koch & ChatGPT
Author URI: https://example.com
Description: Dunkles, sci-fi-inspiriertes WordPress-Theme für die Star-Citizen-Orga "No Space For Old Men".
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nsfom
Tags: dark, responsive, gaming, sci-fi, blog
*/

/* Base reset & layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #171a2a 0, #050711 40%, #02030a 100%);
  color: #f5f5f5;
  line-height: 1.6;
}

a {
  color: #17e3ff;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
  color: #53f2ff;
}

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

/* Layout containers */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 7, 17, 0.95), rgba(5, 7, 17, 0.8));
  border-bottom: 1px solid rgba(23, 227, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-title a {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #f8fafc;
}

.site-description {
  font-size: 0.75rem;
  opacity: 0.7;
}

.site-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(23, 227, 255, 0.25), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-tagline-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Navigation menu */

.menu-primary-container {
  display: flex;
  align-items: center;
}

.main-menu {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.main-menu li {
  position: relative;
}

.main-menu a {
  padding: 0.3rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: #e5e7eb;
}

.main-menu a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, #17e3ff, transparent);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-menu a:hover::before,
.main-menu .current-menu-item > a::before,
.main-menu .current_page_item > a::before {
  opacity: 1;
  transform: scale(1);
}

.main-menu .current-menu-item > a,
.main-menu .current_page_item > a {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  color: #e5e7eb;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.nav-toggle span {
  margin-left: 0.5rem;
}

@media (max-width: 768px) {
  .main-menu {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 0 0 0 0.75rem;
    padding: 0.75rem 1.25rem 1rem;
    border-left: 1px solid rgba(148, 163, 184, 0.5);
    border-bottom: 1px solid rgba(148, 163, 184, 0.5);
    transform-origin: top right;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
    min-width: 220px;
  }

  .main-menu.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }
}

/* Hero / Front Page */

.hero {
  position: relative;
  padding: 5rem 0 3rem;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.75;
}

.hero::before {
  width: 260px;
  height: 260px;
  background: rgba(23, 227, 255, 0.2);
  top: -40px;
  right: -80px;
}

.hero::after {
  width: 320px;
  height: 320px;
  background: rgba(168, 85, 247, 0.18);
  bottom: -40px;
  left: -40px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-kicker-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #17e3ff;
  box-shadow: 0 0 18px rgba(23, 227, 255, 0.9);
}

.hero-title {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: clamp(2.25rem, 3.1vw, 3rem);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-title span {
  display: block;
}

.hero-title-main {
  color: #f9fafb;
}

.hero-title-sub {
  font-size: 0.8em;
  opacity: 0.85;
}

.hero-lead {
  max-width: 34rem;
  font-size: 0.95rem;
  color: #cbd5f5;
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-meta-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(156, 163, 175, 0.7);
  background: linear-gradient(130deg, rgba(15,23,42,0.96), rgba(31,41,55,0.7));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: radial-gradient(circle at 0 0, #53f2ff, #17e3ff);
  color: #020617;
  box-shadow: 0 0 25px rgba(23, 227, 255, 0.65);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(23, 227, 255, 0.9);
}

.btn-secondary {
  border-color: rgba(148, 163, 184, 0.75);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

.btn-secondary:hover {
  background: rgba(30, 64, 175, 0.65);
  border-color: rgba(129, 140, 248, 0.8);
}

.hero-secondary-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.hero-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-stat-card {
  padding: 0.65rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.6));
  box-shadow: 0 0 25px rgba(15, 23, 42, 0.85);
}

.hero-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #94a3b8;
}

.hero-stat-value {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 1.15rem;
}

.hero-stat-meta {
  font-size: 0.65rem;
  color: #9ca3af;
  opacity: 0.85;
  margin-top: 0.1rem;
}

.hero-secondary-note {
  font-size: 0.75rem;
  max-width: 18rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 3.5rem;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Sections */

.section {
  padding: 2.5rem 0 2.75rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.section-subtitle {
  font-size: 0.85rem;
  color: #9ca3af;
  max-width: 26rem;
}

/* Card grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  border-radius: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top left, rgba(23, 227, 255, 0.16), rgba(15, 23, 42, 0.98));
  box-shadow: 0 0 30px rgba(15, 23, 42, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.card-meta {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.card-footer {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9ca3af;
}

/* Post list / blog */

.post-list {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
}

@media (max-width: 960px) {
  .post-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.post-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 0 24px rgba(15, 23, 42, 0.95);
}

.post-card-title {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}

.post-card-title a {
  color: #f9fafb;
}

.post-card-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: #d1d5db;
}

.post-card-read-more {
  margin-top: 1rem;
  font-size: 0.8rem;
}

/* Sidebar */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.widget {
  background: rgba(15, 23, 42, 0.96);
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 0 24px rgba(15, 23, 42, 0.95);
}

.widget-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 0.75rem;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget li + li {
  margin-top: 0.35rem;
}

/* Content area */

.site-main {
  padding: 2.5rem 0;
}

.entry-header {
  margin-bottom: 1.25rem;
}

.entry-title {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0;
}

.entry-meta {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
}

.entry-content {
  font-size: 0.98rem;
  color: #e5e7eb;
}

.entry-content p {
  margin-bottom: 1rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: 'Orbitron', system-ui, sans-serif;
  margin-top: 1.5rem;
}

.entry-content a {
  text-decoration: underline;
}

.entry-footer {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Pagination */

.pagination,
.nav-links {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-top: 1.5rem;
}

.page-numbers,
.nav-links a {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.8);
}

.page-numbers.current {
  background: radial-gradient(circle at 0 0, #53f2ff, #17e3ff);
  color: #020617;
  border-color: transparent;
}

/* Footer */

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at bottom, rgba(15, 23, 42, 0.9), #020617);
  padding: 1.5rem 0 1.75rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.footer-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.footer-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Forms / Comments / Search */

input,
textarea,
select {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.5rem 0.75rem;
  color: #e5e7eb;
  font-family: inherit;
  font-size: 0.9rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #17e3ff;
  box-shadow: 0 0 0 1px rgba(23, 227, 255, 0.3);
}

button,
input[type="submit"] {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  padding: 0.5rem 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
  border-color: #17e3ff;
  background: rgba(15, 23, 42, 0.9);
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

/* Comments */

.comments-area {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.5);
}

.comment-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.comment {
  margin-bottom: 1.25rem;
}

.comment-body {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.comment-meta {
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  color: #9ca3af;
}

.comment-author {
  font-weight: 600;
}

.comment-content {
  font-size: 0.9rem;
}

/* 404 */

.not-found {
  text-align: center;
  padding: 3rem 0 4rem;
}

.not-found-title {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.not-found-subtitle {
  font-size: 0.95rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

/* Utility */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
