/* ──────────────────────────────────────────────────────────────
   extras.css — style dla filmów z YouTube i opinii z Google
   Korzysta wyłącznie z kolorów strony (zmienne z style.css).
   ────────────────────────────────────────────────────────────── */

/* ── YOUTUBE ── */
.yt-intro {
  margin-top: 0.9rem;
  max-width: 60ch;
  font-size: clamp(0.88rem, 2vw, 0.94rem);
  line-height: 1.75;
  color: var(--ink-mid);
  font-weight: 300;
}
.yt-grid {
  margin-top: clamp(1.4rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.yt-card { min-width: 0; }
.yt-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--dark);
  cursor: pointer;
}
.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.2s;
}
.yt-thumb:hover img { transform: scale(1.03); opacity: 0.9; }
.yt-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-playing { cursor: default; }
.yt-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(17,17,17,0.72);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.yt-play svg { margin-left: 3px; }
.yt-thumb:hover .yt-play { background: var(--accent); }
.yt-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.yt-title {
  margin-top: 0.8rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
.yt-date { margin-top: 0.25rem; font-size: 0.76rem; color: var(--ink-soft); }
.yt-more {
  display: inline-block;
  margin-top: 1.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.yt-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.yt-note { margin-top: 0.5rem; font-size: 0.72rem; color: var(--ink-soft); }

@media (max-width: 800px) { .yt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .yt-grid { grid-template-columns: 1fr; } }

/* ── OPINIE GOOGLE ── */
.testimonials-grid[hidden] { display: none; }
.gr-box { margin-top: clamp(1.4rem, 3vw, 2rem); }
.gr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.8rem;
  margin-bottom: 1.2rem;
}
.gr-score {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
}
.gr-stars { color: var(--accent); letter-spacing: 0.08em; font-size: 0.95rem; }
.gr-count { font-size: 0.85rem; color: var(--ink-mid); }
/* Oznaczenie „Google Maps” — wymagane przez Google, nie wolno go ukrywać */
.gr-attr {
  margin-left: auto;
  font-family: Roboto, Arial, sans-serif;
  font-size: 0.8rem;
  color: #5e5e5e;
  white-space: nowrap;
}
.gr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.gr-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.1rem, 3vw, 1.4rem);
}
.gr-top { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.gr-when { font-size: 0.74rem; color: var(--ink-soft); }
.gr-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--ink-mid);
  font-weight: 300;
  font-style: italic;
  white-space: pre-line;
}
.gr-text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gr-toggle {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.78rem;
  color: var(--accent);
  cursor: pointer;
}
.gr-author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
}
.gr-author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.gr-author a { color: inherit; text-decoration: none; }
.gr-author a:hover { text-decoration: underline; }
.gr-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1.2rem;
  font-size: 0.85rem;
}
.gr-links a { color: var(--accent); text-decoration: none; font-weight: 500; }
.gr-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 540px) {
  .gr-attr { margin-left: 0; width: 100%; }
}
