/**
 * Bike Space Sidebar — CSS
 *
 * Styl spójny z Bike Space:
 * - Ciemny motyw (#0a0a0a / #111)
 * - Chakra Petch (tytuły) + IBM Plex Mono (etykiety, daty)
 * - Akcent szary #888, wyróżnienia #fbbf24
 * - Bez zaokrągleń (technologiczny wygląd)
 */

.bss-widget {
  --bss-bg: #0a0a0a;
  --bss-bg-card: #111;
  --bss-bg-hover: #1a1a1a;
  --bss-border: #2a2a2a;
  --bss-border-strong: #444;
  --bss-text: #fff;
  --bss-text-dim: #999;
  --bss-text-muted: #666;
  --bss-accent: #888;
  --bss-featured: #fbbf24;

  font-family: 'Chakra Petch', system-ui, -apple-system, sans-serif;
  background: var(--bss-bg-card);
  color: var(--bss-text);
  padding: 20px 18px;
  margin: 0 0 20px 0;
  border: 1px solid var(--bss-border);
  box-sizing: border-box;
}

.bss-widget *,
.bss-widget *::before,
.bss-widget *::after {
  box-sizing: border-box;
}

/* ====================================================================
   TYTUŁ WIDGETU
   ==================================================================== */

.bss-widget__title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bss-text);
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bss-border);
  position: relative;
}

.bss-widget__title::before {
  content: "//";
  color: var(--bss-accent);
  margin-right: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
}

/* ====================================================================
   LISTY POSTÓW (ostatnie, popularne)
   ==================================================================== */

.bss-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bss-post-item {
  margin-bottom: 12px;
  padding: 0;
  border: 0;
}

.bss-post-item:last-child {
  margin-bottom: 0;
}

.bss-post-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: var(--bss-text);
  padding: 8px 0;
  transition: color 0.15s ease;
  border-bottom: 1px dashed transparent;
}

.bss-post-link:hover {
  color: var(--bss-featured);
  text-decoration: none;
  border-bottom-color: var(--bss-border);
}

.bss-post-thumb {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  background-size: cover;
  background-position: center;
  background-color: var(--bss-bg);
  border: 1px solid var(--bss-border);
}

.bss-post-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--bss-text-muted);
}

.bss-post-number {
  flex-shrink: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--bss-accent);
  line-height: 1;
  padding-top: 4px;
  min-width: 28px;
}

.bss-post-list--numbered .bss-post-link:hover .bss-post-number {
  color: var(--bss-featured);
}

.bss-post-meta {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bss-post-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: inherit;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bss-post-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--bss-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ====================================================================
   LISTA KOMENTARZY
   ==================================================================== */

.bss-comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bss-comment-item {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--bss-border);
}

.bss-comment-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.bss-comment-link {
  display: block;
  text-decoration: none;
  color: var(--bss-text);
  transition: opacity 0.15s ease;
}

.bss-comment-link:hover {
  opacity: 0.85;
  text-decoration: none;
}

.bss-comment-author {
  display: block;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--bss-featured);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.bss-comment-text {
  display: block;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: var(--bss-text-dim);
  line-height: 1.4;
  margin-bottom: 4px;
}

.bss-comment-post {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--bss-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ====================================================================
   ARCHIWUM + KATEGORIE (lista z licznikami)
   ==================================================================== */

.bss-archive-list,
.bss-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bss-archive-item,
.bss-category-item {
  margin: 0;
  padding: 0;
  border-bottom: 1px dashed var(--bss-border);
}

.bss-archive-item:last-child,
.bss-category-item:last-child {
  border-bottom: 0;
}

.bss-archive-item a,
.bss-category-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  color: var(--bss-text-dim);
  text-decoration: none;
  transition: color 0.15s ease, padding 0.15s ease;
}

.bss-archive-item a:hover,
.bss-category-item a:hover {
  color: var(--bss-featured);
  padding-left: 4px;
  text-decoration: none;
}

.bss-category-name {
  flex-grow: 1;
}

.bss-category-count {
  flex-shrink: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--bss-text-muted);
  background: var(--bss-bg);
  border: 1px solid var(--bss-border);
  padding: 2px 8px;
  min-width: 32px;
  text-align: center;
}

.bss-category-item a:hover .bss-category-count {
  color: var(--bss-featured);
  border-color: var(--bss-featured);
}

/* ====================================================================
   BLOK REKLAMOWY
   ==================================================================== */

.bss-widget--ad {
  padding: 0;
  background: var(--bss-bg);
}

.bss-ad-block {
  padding: 28px 22px;
  background-size: cover;
  background-position: center;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bss-ad-subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 10px;
  /* color: dynamiczne inline */
}

.bss-ad-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--bss-text);
  margin: 0 0 12px 0;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bss-ad-desc {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--bss-text-dim);
  margin: 0 0 18px 0;
  line-height: 1.4;
}

.bss-ad-cta {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.15s ease;
  /* border-color i color inline */
}

.bss-ad-cta:hover {
  background: var(--bss-featured);
  color: var(--bss-bg) !important;
  text-decoration: none;
}

/* ====================================================================
   CTA BOOKING (mocniejszy od bloku reklamowego)
   ==================================================================== */

.bss-widget--cta {
  background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
  border: 1px solid var(--bss-featured);
  padding: 0;
}

.bss-cta {
  padding: 28px 22px;
  text-align: center;
}

.bss-cta__subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--bss-featured);
  margin-bottom: 8px;
}

.bss-cta__title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--bss-text);
  margin: 0 0 12px 0;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bss-cta__desc {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  color: var(--bss-text-dim);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.bss-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--bss-featured);
  color: var(--bss-bg);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bss-cta__btn:hover {
  background: var(--bss-text);
  color: var(--bss-bg);
  text-decoration: none;
  transform: translateY(-1px);
}

.bss-cta__arrow {
  transition: transform 0.2s ease;
}

.bss-cta__btn:hover .bss-cta__arrow {
  transform: translateX(3px);
}

/* ====================================================================
   WIZYTÓWKA KONTAKTOWA
   ==================================================================== */

.bss-contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bss-contact-name {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--bss-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--bss-border);
}

.bss-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  color: var(--bss-text-dim);
  line-height: 1.4;
}

.bss-contact-icon {
  flex-shrink: 0;
  width: 20px;
  font-size: 13px;
  color: var(--bss-accent);
  text-align: center;
}

.bss-contact-link {
  color: var(--bss-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.bss-contact-link:hover {
  color: var(--bss-featured);
  text-decoration: none;
}

.bss-contact-link-small {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--bss-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  margin-top: 4px;
}

.bss-contact-link-small:hover {
  color: var(--bss-featured);
  text-decoration: none;
}

.bss-contact-hours {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
}

/* ====================================================================
   WYSZUKIWARKA
   ==================================================================== */

.bss-search-form {
  display: flex;
  gap: 0;
}

.bss-search-input {
  flex-grow: 1;
  background: var(--bss-bg);
  border: 1px solid var(--bss-border);
  border-right: 0;
  padding: 10px 12px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  color: var(--bss-text);
  outline: none;
  min-width: 0;
}

.bss-search-input:focus {
  border-color: var(--bss-accent);
}

.bss-search-input::placeholder {
  color: var(--bss-text-muted);
}

.bss-search-btn {
  background: var(--bss-bg);
  border: 1px solid var(--bss-border);
  color: var(--bss-text);
  padding: 0 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bss-search-btn:hover {
  background: var(--bss-featured);
  color: var(--bss-bg);
  border-color: var(--bss-featured);
}

/* ====================================================================
   SOCIAL MEDIA
   ==================================================================== */

.bss-social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bss-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bss-bg);
  border: 1px solid var(--bss-border);
  color: var(--bss-text-dim);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.bss-social-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.bss-social-link:hover {
  background: var(--bss-featured);
  color: var(--bss-bg);
  border-color: var(--bss-featured);
  text-decoration: none;
}

.bss-social-link--facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.bss-social-link--instagram:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); border-color: #dd2a7b; color: #fff; }
.bss-social-link--youtube:hover { background: #ff0000; border-color: #ff0000; color: #fff; }
.bss-social-link--google:hover { background: #4285f4; border-color: #4285f4; color: #fff; }

/* ====================================================================
   RESPONSIVE
   ==================================================================== */

@media (max-width: 768px) {
  .bss-widget {
    padding: 16px 14px;
  }

  .bss-widget__title {
    font-size: 13px;
  }

  .bss-ad-title {
    font-size: 20px;
  }

  .bss-cta__title {
    font-size: 22px;
  }

  .bss-post-thumb {
    width: 48px;
    height: 48px;
  }
}

/* ====================================================================
   KOMPATYBILNOŚĆ Z MOTYWAMI
   ==================================================================== */

.bss-widget a,
.bss-widget a:hover,
.bss-widget a:focus,
.bss-widget a:visited {
  text-decoration: none;
}

.bss-widget,
.bss-widget > *,
.bss-widget button,
.bss-widget input {
  border-radius: 0 !important;
}

.bss-widget img {
  max-width: 100%;
  height: auto;
}
