/*
Theme Name: DolRails
Theme URI: https://dolrails.pl
Description: Profesjonalna strona symulatora kolei DolRails z integracją WordPress
Version: 1.0
Author: DolRails Team
Author URI: https://dolrails.pl
License: GPL-2.0
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dolrails
Domain Path: /languages
*/

@charset "UTF-8";

:root {
  --bg: #000000;
  --panel: #1a1a1a;
  --panel-2: #0f0f0f;
  --text: #ffffff;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.06);
  --navy: #0b1b3b;
  --navy-2: #1e3a8a;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.65);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% -10%, rgba(59, 130, 246, 0.4), transparent 60%),
    radial-gradient(1200px 700px at 120% 10%, rgba(11, 27, 59, 0.5), transparent 55%),
    linear-gradient(180deg, #1a1a2e, #2a2a4e 40%, #1a1a2e);
  color: var(--text);
  line-height: 1.55;
}

/* Animacje */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.slide-in {
  animation: slideInFromLeft 0.6s ease-out forwards;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
}

.hero-logo {
  flex-shrink: 0;
  width: 100%;
  max-width: 550px;
  text-align: center;
  margin: 0 auto;
  order: -1;
}

.hero-text {
  flex: 1;
  min-width: 250px;
  background: linear-gradient(135deg, rgba(11, 27, 59, 0.6), rgba(26, 115, 232, 0.3));
  padding: 30px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.hero-text h1 {
  margin: 0 0 12px;
  font-size: 20px;
}

.hero-text .lead {
  margin: 0 0 12px;
  font-size: 14px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 12px;
  transform: translateY(-140%);
  transition: transform 160ms ease;
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(180%);
  background: rgba(0, 0, 0, 0.75);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
}

.brand:hover {
  background: rgba(255, 255, 255, 0.05);
}

.brand-mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(79, 124, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark .custom-logo-link,
.brand-mark .custom-logo-link img {
  width: 28px;
  height: 28px;
  display: block;
}

.brand-logo {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-text .muted {
  font-size: 11px;
  opacity: 0.7;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  color: inherit;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: all 200ms ease;
}

/* Navigation */
.site-nav {
  display: flex;
  flex: 1;
}

/* Force horizontal top menu for WP output */
.site-nav > div > ul,
.site-nav ul.menu,
.site-nav .menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.site-nav .sub-menu {
  display: block;
  flex-direction: column;
}

.site-nav .menu > li,
.site-nav .menu > ul > li,
.site-nav > div > ul > li {
  position: relative;
  animation: fadeIn 0.5s ease both;
}

.site-nav .menu > li:nth-child(1) { animation-delay: 0.05s; }
.site-nav .menu > li:nth-child(2) { animation-delay: 0.1s; }
.site-nav .menu > li:nth-child(3) { animation-delay: 0.15s; }
.site-nav .menu > li:nth-child(4) { animation-delay: 0.2s; }
.site-nav .menu > li:nth-child(5) { animation-delay: 0.25s; }
.site-nav .menu > li:nth-child(6) { animation-delay: 0.3s; }

/* WordPress menu classes compatibility */
.site-nav .menu,
.site-nav .menu > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  align-items: center;
  width: 100%;
  justify-content: flex-end;
}

.site-nav .menu > li,
.site-nav .menu > ul > li {
  position: relative;
}

.site-nav .menu > li > a,
.site-nav .menu > ul > li > a {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(26, 26, 26, 0.9);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.site-nav .menu > li > a::before,
.site-nav .menu > ul > li > a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.4s ease;
}

.site-nav .menu > li > a:hover::before,
.site-nav .menu > ul > li > a:hover::before {
  left: 100%;
}

.site-nav .menu > li > a:hover,
.site-nav .menu > ul > li > a:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(30, 58, 138, 0.35));
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.site-nav .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  margin-left: 8px;
  transition: transform 160ms ease;
}

.site-nav .menu-item-has-children[data-open="true"] > a::after {
  transform: rotate(45deg);
}

.site-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.menu-item-has-children[data-open="true"] > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.site-nav .sub-menu a {
  display: block;
  padding: 10px 14px;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  border-radius: 8px;
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.site-nav .sub-menu a::before {
  content: '▸';
  position: absolute;
  left: -2px;
  opacity: 0;
  transition: all 0.2s ease;
  color: var(--accent);
}

.site-nav .sub-menu a:hover::before {
  left: 4px;
  opacity: 1;
}

.site-nav .sub-menu a:hover {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  padding-left: 24px;
  transform: translateX(4px);
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  align-items: center;
  width: 100%;
  justify-content: flex-end;
}

.nav-list li {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 18px;
  color: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.4s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.nav-link.is-active {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  font-weight: 600;
}

.nav-link.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-group {
  position: relative;
}

.nav-link-button {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chev {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 160ms ease;
}

.nav-group[data-open="true"] .chev {
  transform: rotate(45deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.nav-group[data-open="true"] .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-link {
  display: block;
  padding: 10px 14px;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.dropdown-link::before {
  content: '▸';
  position: absolute;
  left: -2px;
  opacity: 0;
  transition: all 0.2s ease;
  color: var(--accent);
}

.dropdown-link:hover::before {
  left: 4px;
  opacity: 1;
}

.dropdown-link:hover {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
  padding-left: 24px;
  transform: translateX(4px);
}

.pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  margin-left: 6px;
}

/* Main content */
main {
  min-height: calc(100vh - 200px);
}

.hero,
.page-hero {
  padding: 20px 0 15px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: start;
  animation: fadeIn 0.8s ease-out;
}

.hero-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInFromLeft 0.8s ease-out;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: fadeIn 0.6s ease-out;
}

.lead {
  margin: 0 0 32px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  animation: fadeIn 1s ease-out 0.2s backwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  animation: fadeIn 1.2s ease-out 0.4s backwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
  border-color: var(--accent-2);
}

.btn.primary:active {
  transform: translateY(0);
}

.btn.ghost {
  background: rgba(26, 26, 26, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Support .button class as tiles too */
.button,
.button.button-primary,
.button.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: rgba(26, 26, 26, 0.9);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.button.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.button.button-secondary:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.btn.ghost:hover {
  background: rgba(79, 124, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.btn.subtle {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.btn.subtle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
}

.stat {
  padding: 16px;
  background: rgba(17, 20, 26, 0.5);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
}

.stat-k {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.stat-v {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}

/* Sections */
.section {
  padding: 80px 0;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.section:nth-child(2) {
  animation-delay: 0.2s;
}

.section:nth-child(3) {
  animation-delay: 0.4s;
}

.section.alt {
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.6), rgba(15, 15, 15, 0.9));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 48px;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero {
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.02em;
}

.muted {
  color: var(--muted);
}

/* Cards */
.card {
  padding: 32px;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  background: rgba(26, 26, 26, 0.9);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.1);
}

.card h3 {
  margin: 0 0 16px;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: var(--accent);
}

.card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.card p:last-child {
  margin-bottom: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  background: rgba(17, 20, 26, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  transition: all 160ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(17, 20, 26, 0.95);
}

/* Footer */
.site-footer {
  margin-top: 80px;
  background: rgba(11, 13, 16, 0.8);
  border-top: 1px solid var(--line-2);
  padding: 52px 0 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.footer-brand p {
  margin: 0;
  font-size: 14px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
}

.footer-section h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}

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

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

.footer-section a {
  font-size: 14px;
  color: var(--muted);
  transition: color 160ms ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Blog post specific */
.post {
  max-width: 800px;
  margin: 0 auto 60px;
}

.post-title {
  font-size: clamp(28px, 5vw, 42px);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.post-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}

.post-content {
  font-size: 16px;
  line-height: 1.7;
}

.post-content h2 {
  font-size: 28px;
  margin: 40px 0 20px;
  letter-spacing: -0.01em;
}

.post-content h3 {
  font-size: 22px;
  margin: 32px 0 16px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
}

.post-content a:hover {
  color: var(--accent-2);
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--panel);
    border-bottom: 1px solid var(--line-2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
  }

  [data-header][data-open="true"] .site-nav {
    max-height: 500px;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    padding: 12px 16px;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-top: 1px solid var(--line-2);
    border-radius: 0;
    transform: none;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
  }

  .nav-group[data-open="true"] .dropdown {
    max-height: 400px;
  }

  .hero-grid {
    gap: 40px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Additional styles for new templates */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.roadmap-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.roadmap-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.status-complete {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.status-progress {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.status-planned {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}

.roadmap-item h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

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

.roadmap-item li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
}

.roadmap-item li:last-child {
  border-bottom: none;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.community-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all 200ms ease;
}

.community-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.community-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.community-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.community-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

.unavailable-notice {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 32px;
}

.status-icon {
  font-size: 4rem;
  margin-bottom: 24px;
}

.unavailable-notice h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.text-center {
  text-align: center;
}

.page-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 2.5rem;
}

.page-header .muted {
  font-size: 1.125rem;
}

/* Ukryj menu na stronie głównej (strona w budowie) */
.home .site-nav {
  display: flex !important;
}

.home .nav-toggle {
  display: none;
}

/* Ukryj cały header na stronie devblog */
.page-template-template-devblog .site-header {
  display: none !important;
}

/* Ukryj cały footer na stronie devblog */
.page-template-template-devblog .site-footer {
  display: none !important;
}

/* Logo hero */
.hero-logo img {
  display: block;
  margin: 0;
  max-width: 100%;
  width: auto;
  height: auto;
  opacity: 0.85;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
}

/* Ukryj stopkę oraz dolne przyciski na stronie głównej */
.home .site-footer,
.home .footer-nav,
.home .site-footer a {
  display: none !important;
  visibility: hidden !important;
}

/* Opcjonalnie: całkowicie wyłącz całą dolną sekcję, jeśli zawiera dodatkowe przyciski */
.home .site-footer {
  display: none !important;
}

/* Pasek postępu prac */
.progress-container {
  width: 100%;
  margin: 30px 0;
  position: relative;
}

.progress-container::before {
  content: '';
  display: block;
  width: 100%;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(26, 115, 232, 0.2);
  position: relative;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 5%;
  height: 16px;
  background: linear-gradient(90deg, #1A73E8, #2E8FFF);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(26, 115, 232, 0.8), inset 0 0 5px rgba(255, 255, 255, 0.2);
  transition: width 0.3s ease;
  z-index: 2;
  animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(26, 115, 232, 0.8), inset 0 0 5px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(26, 115, 232, 1), inset 0 0 8px rgba(255, 255, 255, 0.3);
  }
}

/* DevBlog Styles */
.devblog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.devblog-card {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.5));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.devblog-card:hover {
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.15);
}

.devblog-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: rgba(15, 15, 15, 0.8);
}

.devblog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.devblog-card:hover .devblog-image img {
  transform: scale(1.05);
}

.devblog-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.devblog-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
}

.devblog-date {
  font-weight: 600;
}

.devblog-author {
  opacity: 0.8;
}

.devblog-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
  transition: color 0.3s ease;
}

.devblog-card:hover .devblog-title {
  color: var(--accent);
}

.devblog-excerpt {
  flex: 1;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.devblog-excerpt p {
  margin: 0;
}

/* Pagination */
.pagination {
  text-align: center;
  margin-top: 48px;
  padding: 24px 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin: 0 4px;
  padding: 0 8px;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination a:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
}

.pagination .current {
  background: rgba(59, 130, 246, 0.25);
  border-color: var(--accent);
  color: var(--accent);
}

