/*
Theme Name: Panda w podróży
Theme URI: https://example.com/
Author: Panda Team
Description: Autorski motyw strony fansubowej Panda w podróży.
Version: 0.2.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: panda-w-podrozy
*/

:root {
  --panda-pink: #ff1768;
  --panda-lime: #c8f120;
  --panda-blue: #2389f7;
  --panda-purple: #8758f5;
  --panda-ink: #121212;
  --panda-paper: #fffdfa;
  --panda-line: #e9e6e1;
  --panda-muted: #6d6a67;
  --panda-shadow: 0 12px 35px rgba(33, 24, 14, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--panda-ink);
  background: var(--panda-paper);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.site-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,253,250,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(0,0,0,.05); }
.header-row { min-height: 112px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 14px; font-weight: 900; }
.brand-mark { width: 132px; height: 104px; display: grid; place-items: center; flex: 0 0 auto; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { max-width: 275px; font-size: 21px; line-height: 1.02; letter-spacing: -.02em; }
.brand-copy small { margin-top: 6px; color: var(--panda-pink); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; display: flex; gap: 24px; padding: 0; margin: 0; font-size: 14px; font-weight: 800; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: #fff; box-shadow: 0 5px 18px rgba(0,0,0,.08); }
.icon-button.pink { color: #fff; background: var(--panda-pink); }
.icon-button.dark { color: #fff; background: #111; }

.hero { padding: 28px 0 10px; }
.boarding-pass { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.55fr .65fr; min-height: 370px; background: #fff; border: 4px solid var(--panda-pink); border-radius: 34px; box-shadow: 12px 14px 0 var(--panda-lime), var(--panda-shadow); transform: rotate(-1deg); }
.boarding-pass::before { content: ""; position: absolute; inset: 0; opacity: .24; background-image: radial-gradient(#b8aa99 1px, transparent 1px); background-size: 17px 17px; }
.ticket-main, .ticket-stub { position: relative; padding: 42px; }
.ticket-main { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 36px; }
.ticket-stub { border-left: 2px dashed #bbb; display: flex; flex-direction: column; justify-content: space-between; }
.hero-panda { width: 180px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 44% 44% 48% 48%; background: #111; color: #fff; font-size: 88px; box-shadow: inset 0 0 0 16px #fff, 0 12px 24px rgba(0,0,0,.16); }
.eyebrow { margin: 0 0 3px; font-size: clamp(24px, 4vw, 50px); font-weight: 950; letter-spacing: .02em; }
.eyebrow span { color: var(--panda-pink); display: block; }
.ticket-copy { max-width: 520px; margin: 8px 0 24px; font-size: 20px; font-weight: 800; }
.flight-data { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flight-data small { display: block; color: var(--panda-pink); font-size: 10px; text-transform: uppercase; }
.flight-data strong { font-size: 15px; }
.one-way { align-self: flex-start; margin: -18px -18px 0; padding: 11px; border-radius: 12px; background: var(--panda-pink); color: #fff; text-align: center; font-size: 13px; }
.barcode { height: 70px; background: repeating-linear-gradient(90deg, #111 0 3px, transparent 3px 7px, #111 7px 9px, transparent 9px 13px); }
.stamp-list { display: grid; gap: 12px; }
.stamp { padding: 10px; border: 3px double currentColor; border-radius: 10px; color: var(--panda-blue); font-size: 20px; font-weight: 900; text-align: center; transform: rotate(-4deg); }
.stamp:nth-child(2) { color: #ef563e; transform: rotate(5deg); }
.stamp:nth-child(3) { color: var(--panda-purple); transform: rotate(-2deg); }

.section { padding: 42px 0 12px; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.section-heading a { margin-left: auto; color: var(--panda-pink); font-size: 14px; font-weight: 800; }
.direction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.direction-card { position: relative; overflow: hidden; min-height: 220px; padding: 28px; border-radius: 25px; color: #fff; box-shadow: var(--panda-shadow); transition: transform .2s ease; }
.direction-card:hover { transform: translateY(-5px); }
.direction-card::after { content: "✈"; position: absolute; right: 24px; bottom: 18px; font-size: 68px; opacity: .28; }
.direction-card h3 { margin: 0; font-size: 38px; line-height: 1; }
.direction-card p { margin: 8px 0 0; font-size: 16px; font-weight: 800; }
.direction-card.china { background: linear-gradient(145deg, #ff6f58, #c92a35); }
.direction-card.korea { background: linear-gradient(145deg, #9668f7, #244ed8); }
.direction-card.japan { background: linear-gradient(145deg, #ff8bc6, #f0447c); }

.notice { margin: 44px 0; padding: 22px 26px; display: flex; align-items: center; gap: 18px; border-radius: 22px; background: #111; color: #fff; }
.notice-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--panda-lime); color: #111; font-size: 26px; }
.notice strong { display: block; font-size: 19px; }
.notice span { color: #d8d8d8; font-size: 14px; }
.notice a { margin-left: auto; padding: 13px 20px; border-radius: 99px; background: var(--panda-lime); color: #111; font-weight: 900; white-space: nowrap; }

.site-footer { margin-top: 58px; padding: 34px 0; border-top: 1px solid var(--panda-line); color: var(--panda-muted); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 850px) {
  .primary-nav { display: none; }
  .header-row { min-height: 92px; }
  .brand-mark { width: 106px; height: 84px; }
  .brand-copy strong { max-width: 210px; font-size: 17px; }
  .boarding-pass { grid-template-columns: 1fr; transform: none; }
  .ticket-main { grid-template-columns: 110px 1fr; padding: 28px; gap: 22px; }
  .hero-panda { width: 110px; font-size: 54px; }
  .ticket-stub { display: none; }
  .direction-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-shell { width: min(100% - 22px, 1180px); }
  .header-actions .icon-button:first-child { display: none; }
  .brand { gap: 8px; }
  .brand-mark { width: 88px; height: 74px; }
  .brand-copy strong { max-width: 145px; font-size: 13px; }
  .brand-copy small { font-size: 8px; }
  .ticket-main { display: block; padding: 26px 22px; }
  .hero-panda { margin-bottom: 20px; }
  .ticket-copy { font-size: 16px; }
  .flight-data { grid-template-columns: repeat(2, 1fr); }
  .direction-card { min-height: 180px; }
  .notice { align-items: flex-start; flex-wrap: wrap; }
  .notice a { width: 100%; text-align: center; margin-left: 0; }
  .footer-row { display: block; }
}
