/*
Theme Name: Michael Pyjas
Theme URI: https://michaelpyjas.com
Author: Michał Pyjas
Author URI: https://michaelpyjas.com
Description: Personal one-page theme for communication researcher & marketing practitioner.
Version: 1.0
Text Domain: michaelpyjas
*/

:root {
  --bg: #050816;
  --bg-elevated: #0b1020;
  --bg-soft: #10182b;
  --accent: #f9b313;
  --accent-soft: rgba(249, 179, 19, 0.1);
  --text-main: #f9fafb;
  --text-muted: #a5b4cf;
  --text-strong: #e5e7eb;
  --border-subtle: #1e293b;
  --max-width: 1100px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --transition-fast: 0.18s ease-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #020617 100%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 16px 56px;
}

main {
  flex: 1;
}

/* ---------- HEADER & NAV ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom,
      rgba(2, 6, 23, 0.94),
      rgba(2, 6, 23, 0.85),
      transparent);
  border-bottom: 1px solid rgba(30, 64, 175, 0.35);
}

.nav {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 30;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 15%, #fbbf24, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-avatar-photo {
  background: none;
  padding: 0;
  overflow: hidden;
}

.nav-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-title {
  display: flex;
  flex-direction: column;
}

.nav-title span:first-child {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.nav-title span:last-child {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* menu – kontener */

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

/* pojedynczy link */

.nav-link {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  background: transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast),
    background-color var(--transition-fast), opacity var(--transition-fast);
}

/* fallback, gdyby gdzieś anchor nie miał klasy nav-link */
.nav-links a {
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
}

/* Active state dla Bloga */

.nav-link--active {
  color: var(--text-strong);
  font-weight: 600;
}

/* „piguła” contact */

.nav-pill-highlight {
  border-color: rgba(249, 179, 19, 0.8);
  background: radial-gradient(circle at 0 0,
      rgba(249, 179, 19, 0.22),
      rgba(8, 47, 73, 0.4));
  color: #fefce8;
}

/* HAMBURGER – desktop: schowany */

.nav-toggle {
  flex-direction: column;
  display: none;
  border: none;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  border-radius: 999px;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-strong);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* odstęp między kreskami */

.nav-toggle-bar+.nav-toggle-bar {
  margin-top: 4px;
}

/* --- MOBILE NAV --- */

@media (max-width: 780px) {
  .nav {
    gap: 10px;
  }

  /* przycisk burgera widoczny i stylizowany */

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    margin-left: 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.65);
    background: rgba(15, 23, 42, 0.92);
    cursor: pointer;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    z-index: 50;
  }

  .nav-toggle-bar {
    background: currentColor;
    /* bierze kolor z .nav-toggle (czyli biały) */
  }

  /* animacja burger -> X */

  .nav-toggle.nav-toggle--open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.nav-toggle--open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.nav-toggle--open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* menu jako wysuwana karta */

  .nav-links {
    position: absolute;
    top: 64px;
    /* wysokość headera */
    right: 16px;
    left: 16px;
    padding: 12px 14px;
    border-radius: 20px;
    background: var(--bg-elevated, #050816);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 40;
  }

  .nav-links.nav-links--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    font-size: 0.95rem;
  }
}

/* ---------- HERO ---------- */

.hero {
  margin-top: 30px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 32px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(249, 179, 19, 0.9);
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-title span.highlight {
  color: var(--accent);
}

.hero-sub {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 560px;
}

.hero-sub-quote {
  margin-top: 4px;
  font-size: 0.88rem;
  color: #e5e7eb;
  border-left: 2px solid rgba(148, 163, 184, 0.7);
  padding-left: 10px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
}

.badge {
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.8);
}

.badge-accent {
  border-color: rgba(249, 179, 19, 0.85);
  background: radial-gradient(circle at 0 0,
      rgba(249, 179, 19, 0.28),
      rgba(30, 64, 175, 0.5));
  color: #fefce8;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #f9b313);
  color: #0b1020;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: rgba(249, 179, 19, 0.7);
  color: var(--text-main);
  background: rgba(15, 23, 42, 1);
}

.btn span.icon {
  font-size: 1.05rem;
  line-height: 1;
}

.hero-language-note {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-right {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left,
      rgba(56, 189, 248, 0.12),
      rgba(15, 23, 42, 0.9));
  padding: 20px 18px 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-card-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.hero-card-main {
  display: flex;
  gap: 16px;
}

.hero-card-avatar {
  flex: 0 0 70px;
  height: 70px;
  border-radius: 24px;
  background: radial-gradient(circle at 20% 0, #facc15, #fb923c, #7c2d12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #0b1020;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

.hero-card-text {
  flex: 1;
}

.hero-card-name {
  font-weight: 600;
  font-size: 1rem;
}

.hero-card-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-card-list {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.hero-card-list li {
  margin-bottom: 4px;
  list-style: none;
  position: relative;
  padding-left: 17px;
}

.hero-card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.hero-card-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
  padding-top: 10px;
}

.hero-card-footer span strong {
  color: #e5e7eb;
}

.hero-card-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 0.75rem;
}

.chip-accent {
  border-color: rgba(249, 179, 19, 0.8);
  background: rgba(249, 179, 19, 0.06);
  color: #fefce8;
}

.hero-card-glow {
  position: absolute;
  inset: -120px;
  background: radial-gradient(circle at 0 0,
      rgba(249, 179, 19, 0.28),
      transparent 55%);
  opacity: 0.7;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ---------- SECTIONS ---------- */

section {
  margin-bottom: 40px;
}

.section-header {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-title {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 680px;
}

.section-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,
      rgba(15, 23, 42, 0.92),
      rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 18px 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.section-card+.section-card {
  margin-top: 12px;
}

/* ---------- ABOUT ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 18px;
}

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lang-block {
  margin-bottom: 10px;
  padding: 10px 10px 8px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(30, 64, 175, 0.5);
}

.lang-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.lang-text {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.about-meta-list {
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.about-meta-list li {
  margin-bottom: 6px;
}

.about-meta-list span.label {
  color: #e5e7eb;
  font-weight: 500;
}

.about-photo-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.about-photo-main,
.about-photo-secondary {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.about-photo-main {
  max-height: 260px;
}

.about-photo-secondary {
  max-height: 190px;
  opacity: 0.95;
}

/* ---------- WORK ---------- */

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

@media (max-width: 880px) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.work-pill {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.work-headline {
  font-weight: 500;
  margin-bottom: 4px;
}

.work-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.work-list {
  list-style: none;
  font-size: 0.86rem;
  color: #e5e7eb;
}

.work-list li {
  margin-bottom: 5px;
  padding-left: 15px;
  position: relative;
}

.work-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.work-link {
  font-size: 0.84rem;
  margin-top: 6px;
  color: var(--accent);
}

/* ---------- RESEARCH ---------- */

.pub-list {
  list-style: none;
  font-size: 0.86rem;
}

.pub-item {
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.95);
  margin-bottom: 10px;
}

.pub-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.pub-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pub-desc {
  font-size: 0.84rem;
  color: #e5e7eb;
}

/* ---------- GENERIC LISTS ---------- */

.list-bullets {
  list-style: none;
  font-size: 0.86rem;
}

.list-bullets li {
  margin-bottom: 6px;
  padding-left: 15px;
  position: relative;
}

.list-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

/* ---------- SPEAKING ---------- */

.speaking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
}

@media (max-width: 880px) {
  .speaking-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- CONTACT ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
}

@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.field-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.field-input,
.field-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(30, 64, 175, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 8px 10px;
  outline: none;
  transition: var(--transition-fast);
}

.field-textarea {
  min-height: 90px;
  resize: vertical;
}

.field-input:focus,
.field-textarea:focus {
  border-color: rgba(249, 179, 19, 0.9);
  box-shadow: 0 0 0 1px rgba(249, 179, 19, 0.25);
}

.contact-note {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-links {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.contact-links a {
  color: var(--accent);
}

.contact-links a:hover {
  text-decoration: underline;
}

/* ---------- BLOG LIST ---------- */

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-item-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 3fr);
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.blog-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 18px;
}

.blog-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-read-more {
  margin-top: 6px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
}

.blog-dot {
  opacity: 0.6;
}

@media (max-width: 780px) {
  .blog-item-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- SINGLE POST ---------- */

.single-post-card {
  margin-top: 12px;
}

.single-post-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  margin-bottom: 18px;
}

.single-post-content {
  font-size: 0.95rem;
  line-height: 1.7;
}

.single-post-content p+p {
  margin-top: 10px;
}

.single-post-footer {
  margin-top: 18px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
}

/* ---------- FOOTER ---------- */

footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 14px 16px 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

footer a {
  color: var(--accent);
}