/* Styl z Głową - Main Theme Stylesheet (Mobile-First) */

/* Layout & Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Legal UOKIK Notice Bar */
.uokik-bar {
  background-color: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.75rem;
  color: #475569;
  padding: 0.45rem 1rem;
}
.uokik-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  height: 64px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
}
.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: #0f172a;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.1;
}
.brand-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
}
.desktop-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  transition: color 0.15s ease;
}
.desktop-nav a:hover {
  color: var(--color-primary);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 1.35rem;
  transition: background 0.15s ease;
}
.icon-btn:hover {
  background-color: #f1f5f9;
}

/* Mobile Drawer (Accessible off-canvas menu) */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background: #ffffff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}
.mobile-drawer.is-open {
  transform: translateX(0);
}
.drawer-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}
.drawer-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.drawer-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
  transition: background 0.15s ease;
}
.drawer-menu-list a:hover {
  background: #f1f5f9;
}
.drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

/* Buttons & Tactile Feedback */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
}
.btn-dark {
  background-color: #0f172a;
  color: #ffffff;
}
.btn-dark:hover {
  background-color: #1e293b;
}
.btn-outline {
  background-color: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}
.btn-outline:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

/* Affiliate Product Box (UOKIK-Compliant & High Conversion) */
.affiliate-box {
  background: #ffffff;
  border: 2px solid #ffe4e6;
  border-radius: 20px;
  padding: 1.25rem;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.05);
}
@media (min-width: 640px) {
  .affiliate-box {
    padding: 1.75rem;
  }
}
.affiliate-box-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .affiliate-box-grid {
    grid-template-columns: 180px 1fr;
    align-items: center;
  }
}
.affiliate-box-thumb {
  width: 100%;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background-color: #f1f5f9;
}
.affiliate-box-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.affiliate-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 9999px;
}
.affiliate-info h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.affiliate-specs {
  list-style: none;
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 1rem;
}
.affiliate-specs li {
  margin-bottom: 0.25rem;
}
.affiliate-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}
.price-regular {
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: line-through;
  display: block;
}
.price-sale {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}
.price-discount {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 0.5rem;
}

/* Sticky Mobile Affiliate Bottom Bar */
.sticky-mobile-affiliate {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
@media (min-width: 1024px) {
  .sticky-mobile-affiliate {
    display: none;
  }
}

/* Comparison Tables on Mobile */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  margin: 1.5rem 0;
}
.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.styled-table th {
  background: #f1f5f9;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: #334155;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.styled-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}
.styled-table tr:hover td {
  background-color: #f8fafc;
}

/* -------------------------------------------------------------
 * Modern Blog Post Tiles / Cards Grid (.posts-tiles-grid)
 * ------------------------------------------------------------- */
.posts-tiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .posts-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .posts-tiles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .posts-tiles-grid.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-tile-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease;
  position: relative;
  height: 100%;
}
.post-tile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.post-tile-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: #f1f5f9;
  display: block;
}
.post-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.post-tile-card:hover .post-tile-thumb img {
  transform: scale(1.05);
}

.post-tile-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-primary);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 2;
  pointer-events: none;
}

.post-tile-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-tile-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.post-tile-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-tile-title a {
  color: inherit;
  transition: color 0.15s ease;
}
.post-tile-card:hover .post-tile-title a {
  color: var(--color-primary);
}

.post-tile-excerpt {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-tile-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-tile-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}
.post-tile-card:hover .post-tile-link {
  gap: 8px;
}
