/*
 Theme Name: Kino Bambino
 Theme URI: https://kinobambino.pl/
 Author: Ty
 Description: Prosty motyw wyświetlający filmy i statystyki kanału YouTube.
 Version: 1.1.0
 Text Domain: kinobambino
*/

/* PALETA inspirowana logo */
:root {
  --bg: #3A1677;          /* fiolet tła */
  --bg-elev: #4B2A8E;     /* karty/elementy */
  --ink: #FFFFFF;         /* tekst biały */
  --accent: #FA9F1A;      /* żółty z logo */
  --muted: #E6DDF9;       /* jaśniejszy opis */
  --card: #4B2A8E;        /* tło kart */
  --border: #6A48B5;      /* delikatna ramka */
  --shadow: 0 10px 25px rgba(0,0,0,0.25);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(58,22,119,0.9); /* półprzezroczysty fiolet */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
    display: flex;
    gap: 14px;
    padding: 12px 24px;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.brand__logo {
  width: 120px; height: 120px; border-radius: 12px;
  background: var(--accent);
  box-shadow: var(--shadow);
  display: inline-block;
}
.brand__logo-img img { width: 120px; height: 120px; object-fit: contain; border-radius: 12px; background: #fff; }

.brand__title {
  display: none;
}
.subscribe-btn {
  margin-left: auto; /* odsuwa na prawo */
  background:#D51919;
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, transform 0.2s ease;
}
.subscribe-btn:hover {
  background: #ffb84d; /* jaśniejszy żółty */
  transform: translateY(-2px);
  text-decoration: none;
}
.badge-views {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.2);
}
.thumb:hover .badge-views {
  transform: translateY(-1px);
}

/* HERO */
.hero { padding: 36px 0 8px;text-align:center; }
.hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
  color: var(--ink);
}
.hero p { color: var(--muted); margin: 0; }

/* STATYSTYKI */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 18px 0 28px;
}
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.stat__label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat__value { font-size: 24px; font-weight: 900; margin-top: 6px; color: var(--accent); }

/* SIATKA WIDEO */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.thumb {
  position: relative; aspect-ratio: 16/9; background: #2B0F59;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.play span {
  display: inline-block; width: 68px; height: 68px; border-radius: 50%;
  background: rgba(0,0,0,0.45);
  clip-path: polygon(38% 28%, 38% 72%, 74% 50%);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.card__body { padding: 14px; }
.card__title { font-weight: 700; font-size: 16px; margin: 0 0 6px; color: var(--ink); }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--accent); }
.card__meta { font-size: 13px; color: var(--muted); }

/* STOPKA */
.site-footer {
  margin-top: 40px; padding: 24px 0; color: var(--muted); font-size: 14px;
  border-top: 1px solid var(--border);
  background: rgba(58,22,119,0.8);
}
.social-icons {
    display: flex;
    gap: 16px;
	padding-bottom:20px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* żeby na mobile elementy spadały pod logo */
}

.brand__logo-img {
  flex: 1 1 100%;
  text-align: center;
  margin-bottom: 10px;
}

.brand__actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1 1 100%;
  justify-content: center;
}

.subscribe-btn {
  background: #e50914; /* czerwony jak YouTube */
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.subscribe-btn:hover {
  background: #c40812;
}

.social-icons a img {
  width: 28px;
  height: 28px;
  display: block;
  transition: opacity 0.3s ease;
}

.social-icons a:hover img {
  opacity: 0.7;
}

@media (min-width: 768px) {
  .brand__logo-img {
    flex: 0 0 auto;
    margin-bottom: 0;
  }
  .brand__actions {
    flex: 0 0 auto;
    justify-content: flex-end;
  }
}
