/* eduPro Shared UI — header / footer / sticky cross-sell / photo placeholders
 * Wersja: 1.0 · 2026-05-24
 * Aktywuje się TYLKO gdy <body data-shared-ui="1"> — bezpieczny rollout.
 * Specyfikacja: landingi/EDUPRO_LANDING_REDESIGN_SPEC.md (sekcja 2)
 */

:root {
  --ep-shared-bg: #0f2744;
  --ep-shared-bg-soft: #1a3960;
  --ep-shared-text: #ffffff;
  --ep-shared-text-muted: rgba(255,255,255,0.7);
  --ep-shared-szkola: #4F8CD9;
  --ep-shared-korepetycje: #F59E0B;
  --ep-shared-go: #10B981;
  --ep-shared-przedszkole: #F472B6;
  --ep-shared-accent: #FCD34D;
  --ep-shared-accent-soft: rgba(252, 211, 77, 0.15);
  --ep-shared-surface: rgba(255,255,255,0.04);
  --ep-shared-surface-hover: rgba(255,255,255,0.08);
  --ep-shared-border: rgba(255,255,255,0.1);
  --ep-shared-radius: 12px;
  --ep-shared-radius-sm: 8px;
}

/* ===== HEADER ===== */
.ep-shared-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 39, 68, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ep-shared-border);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.ep-shared-header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; gap: 16px;
}
.ep-shared-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ep-shared-text); text-decoration: none;
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
}
.ep-shared-logo img { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; }
.ep-shared-logo em { font-style: normal; color: var(--ep-shared-accent); font-weight: 800; }
.ep-shared-nav {
  display: flex; gap: 4px; align-items: center; flex: 1; justify-content: center;
}
.ep-shared-nav a {
  color: var(--ep-shared-text-muted); text-decoration: none;
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.ep-shared-nav a:hover { background: var(--ep-shared-surface-hover); color: var(--ep-shared-text); }
.ep-shared-nav a.active {
  color: var(--ep-shared-text); font-weight: 700;
  background: var(--ep-shared-surface);
  box-shadow: inset 0 -2px 0 var(--ep-shared-accent);
}
.ep-shared-cta { display: flex; gap: 8px; align-items: center; }
.ep-shared-btn {
  text-decoration: none; padding: 9px 16px; border-radius: var(--ep-shared-radius-sm);
  font-size: 13.5px; font-weight: 600; transition: all .15s; display: inline-flex; align-items: center; gap: 6px;
  border: none; cursor: pointer; font-family: inherit;
}
.ep-shared-btn-ghost { color: var(--ep-shared-text-muted); background: transparent; border: 1px solid var(--ep-shared-border); }
.ep-shared-btn-ghost:hover { color: var(--ep-shared-text); background: var(--ep-shared-surface); }
.ep-shared-btn-primary {
  color: #0f2744; background: var(--ep-shared-accent);
  box-shadow: 0 4px 14px rgba(252, 211, 77, 0.3);
}
.ep-shared-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(252, 211, 77, 0.45); }

/* Mobile hamburger */
.ep-shared-burger {
  display: none; background: transparent; border: none; color: var(--ep-shared-text);
  font-size: 24px; cursor: pointer; padding: 4px 8px;
}
@media (max-width: 880px) {
  .ep-shared-nav { display: none; }
  .ep-shared-burger { display: inline-flex; }
  .ep-shared-cta { display: none; }
  .ep-shared-nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 16px; background: var(--ep-shared-bg);
    border-bottom: 1px solid var(--ep-shared-border); gap: 6px;
  }
  .ep-shared-nav.is-open a { width: 100%; padding: 12px 16px; }
}

/* ===== FOOTER ===== */
.ep-shared-footer {
  background: var(--ep-shared-bg);
  color: var(--ep-shared-text-muted);
  padding: 64px 24px 24px;
  font-family: 'Inter', system-ui, sans-serif;
  border-top: 1px solid var(--ep-shared-border);
  margin-top: 80px;
}
.ep-shared-footer-inner { max-width: 1200px; margin: 0 auto; }

/* Cross-sell strip — 3 inne apki */
.ep-shared-cross-strip {
  border-bottom: 1px solid var(--ep-shared-border); padding-bottom: 48px; margin-bottom: 48px;
}
.ep-shared-cross-label {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ep-shared-accent); font-weight: 700; margin-bottom: 20px; text-align: center;
}
.ep-shared-cross-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.ep-shared-cross-card {
  background: var(--ep-shared-surface); border: 1px solid var(--ep-shared-border);
  border-radius: var(--ep-shared-radius); padding: 22px 20px;
  text-decoration: none; color: var(--ep-shared-text);
  transition: all .2s; display: flex; flex-direction: column; gap: 8px;
}
.ep-shared-cross-card:hover {
  transform: translateY(-3px); background: var(--ep-shared-surface-hover);
  border-color: var(--ep-shared-accent); box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.ep-shared-cross-icon { font-size: 28px; margin-bottom: 4px; }
.ep-shared-cross-title { font-size: 16px; font-weight: 700; color: var(--ep-shared-text); }
.ep-shared-cross-desc { font-size: 13px; color: var(--ep-shared-text-muted); }
.ep-shared-cross-arrow {
  margin-top: auto; color: var(--ep-shared-accent); font-weight: 700;
  font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
}

/* Footer 3 kolumny */
.ep-shared-footer-cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px;
}
@media (max-width: 720px) {
  .ep-shared-footer-cols { grid-template-columns: 1fr; gap: 32px; }
}
.ep-shared-footer-col h4 {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ep-shared-accent); font-weight: 700; margin: 0 0 16px;
}
.ep-shared-footer-col ul { list-style: none; padding: 0; margin: 0; }
.ep-shared-footer-col li { margin-bottom: 8px; }
.ep-shared-footer-col a {
  color: var(--ep-shared-text-muted); text-decoration: none; font-size: 14px;
  transition: color .15s;
}
.ep-shared-footer-col a:hover { color: var(--ep-shared-text); }

.ep-shared-footer-brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  color: var(--ep-shared-text); font-weight: 700; font-size: 18px;
}
.ep-shared-footer-brand img { width: 32px; height: 32px; border-radius: 6px; }
.ep-shared-footer-mission { font-size: 13px; line-height: 1.6; max-width: 340px; }

.ep-shared-footer-bottom {
  border-top: 1px solid var(--ep-shared-border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--ep-shared-text-muted);
}
.ep-shared-social { display: flex; gap: 10px; }
.ep-shared-social a {
  color: var(--ep-shared-text-muted); font-size: 18px;
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--ep-shared-surface); transition: all .15s;
}
.ep-shared-social a:hover { background: var(--ep-shared-accent); color: #0f2744; }

/* ===== STICKY CROSS-SELL BAR (dół ekranu po >50% scroll) ===== */
.ep-sticky-bar {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%) translateY(120%);
  z-index: 95; background: rgba(15, 39, 68, 0.95); color: #fff;
  border: 1px solid var(--ep-shared-border); border-radius: 14px;
  padding: 12px 16px; max-width: 720px; width: calc(100vw - 32px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: 'Inter', system-ui, sans-serif;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s;
  opacity: 0; pointer-events: none;
}
.ep-sticky-bar.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.ep-sticky-bar-label {
  font-size: 12.5px; color: var(--ep-shared-text-muted); display: inline-flex; align-items: center; gap: 6px;
}
.ep-sticky-bar a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  background: var(--ep-shared-surface-hover); border-radius: var(--ep-shared-radius-sm);
  color: var(--ep-shared-text); text-decoration: none; font-size: 12.5px; font-weight: 600;
  transition: all .15s;
}
.ep-sticky-bar a:hover { background: var(--ep-shared-accent); color: #0f2744; }
.ep-sticky-bar-close {
  margin-left: auto; background: transparent; border: none; color: var(--ep-shared-text-muted);
  font-size: 18px; cursor: pointer; padding: 4px 8px; line-height: 1;
}
.ep-sticky-bar-close:hover { color: var(--ep-shared-text); }
@media (max-width: 600px) {
  .ep-sticky-bar { padding: 10px 12px; gap: 8px; }
  .ep-sticky-bar-label { font-size: 11.5px; }
  .ep-sticky-bar a { padding: 6px 10px; font-size: 12px; }
}

/* ===== PHOTO PLACEHOLDER ===== */
.ep-photo-placeholder {
  position: relative; width: 100%; overflow: hidden;
  border-radius: var(--ep-shared-radius); background: linear-gradient(135deg, #1a3960 0%, #0f2744 100%);
  font-family: 'Inter', system-ui, sans-serif;
}
.ep-photo-placeholder[data-aspect="3:2"] { aspect-ratio: 3/2; }
.ep-photo-placeholder[data-aspect="4:3"] { aspect-ratio: 4/3; }
.ep-photo-placeholder[data-aspect="1:1"] { aspect-ratio: 1/1; }
.ep-photo-placeholder[data-aspect="16:9"] { aspect-ratio: 16/9; }
.ep-photo-placeholder[data-aspect="9:16"] { aspect-ratio: 9/16; }
.ep-photo-gradient {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(252, 211, 77, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(79, 140, 217, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.08) 0%, transparent 70%);
}
.ep-photo-pattern {
  position: absolute; inset: 0; opacity: 0.08;
  background-image:
    radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 20px 20px;
}
.ep-photo-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: rgba(255,255,255,0.45); text-align: center; padding: 24px;
}
.ep-photo-icon { font-size: 42px; opacity: 0.7; }
.ep-photo-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; }
.ep-photo-brief {
  font-size: 12.5px; line-height: 1.45; max-width: 380px; color: rgba(255,255,255,0.55);
  display: none; /* show only in dev mode */
}
.ep-photo-format { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.ep-photo-placeholder[data-dev="true"] .ep-photo-brief,
.ep-photo-placeholder:hover .ep-photo-brief { display: block; }

/* ===== CROSS-SELL CARDS w stopce (jak w spec sekcji 1.3) — to samo co cross-strip ===== */
</content>
