/**
 * ABC Zabezpieczeń - Sidebar Widget Styling
 * Scoped styles for Yale Smart Lock blog sidebar
 * 
 * Usage: Add this CSS alongside abc-article-styles.css
 * These styles affect .abc-sidebar-widget elements only.
 */

/* ===========================
   CSS Variables (Color System)
   =========================== */
.abc-sidebar-widget {
  /* Yale Gold accent */
  --abc-gold: 43 96% 56%;
  --abc-gold-hsl: hsl(43, 96%, 56%);
  
  /* Dark theme backgrounds */
  --abc-card: hsl(220, 18%, 12%);
  --abc-secondary-bg: hsl(220, 15%, 18%);
  
  /* Text colors */
  --abc-text: hsl(0, 0%, 98%);
  --abc-text-muted: hsl(220, 10%, 60%);
  --abc-text-secondary: hsl(0, 0%, 90%);
  
  /* Borders */
  --abc-border: hsl(220, 15%, 20%);
  --abc-border-hover: hsla(43, 96%, 56%, 0.5);
  
  /* Typography */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===========================
   Base Widget Container
   =========================== */
.abc-sidebar-widget {
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--abc-border);
  border-radius: 0.75rem;
  background-color: var(--abc-card);
}

.abc-widget-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--abc-text);
  margin: 0 0 1rem 0;
}

.abc-icon-gold {
  color: var(--abc-gold-hsl);
}

/* ===========================
   Related Articles Widget
   =========================== */
.abc-article-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.abc-article-item {
  display: block;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.abc-article-item:hover {
  background-color: var(--abc-secondary-bg);
}

.abc-article-date {
  display: block;
  font-size: 0.75rem;
  color: var(--abc-text-muted);
}

.abc-article-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--abc-text);
  margin: 0.25rem 0;
  transition: color 0.2s ease;
}

.abc-article-item:hover .abc-article-title {
  color: var(--abc-gold-hsl);
}

.abc-article-excerpt {
  font-size: 0.75rem;
  color: var(--abc-text-muted);
  margin: 0.25rem 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.abc-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--abc-gold-hsl);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.abc-view-all:hover {
  opacity: 0.8;
}

.abc-view-all svg {
  width: 1rem;
  height: 1rem;
}

/* ===========================
   Tags Widget
   =========================== */
.abc-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.abc-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--abc-text-secondary);
  background-color: var(--abc-secondary-bg);
  border: 1px solid var(--abc-border);
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.abc-tag:hover {
  border-color: var(--abc-border-hover);
  color: var(--abc-gold-hsl);
}

/* ===========================
   CTA Widget
   =========================== */
.abc-cta-widget {
  position: relative;
  overflow: hidden;
  border: none;
  background: linear-gradient(
    to bottom right,
    hsla(43, 96%, 56%, 0.2),
    hsla(43, 96%, 56%, 0.05)
  );
}

.abc-cta-glow {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background-color: hsla(43, 96%, 56%, 0.1);
  filter: blur(2rem);
  pointer-events: none;
}

.abc-cta-title {
  position: relative;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--abc-text);
  margin: 0 0 0.5rem 0;
}

.abc-cta-text {
  position: relative;
  font-size: 0.875rem;
  color: var(--abc-text-muted);
  margin: 0 0 1rem 0;
}

.abc-cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(220, 20%, 8%);
  background-color: var(--abc-gold-hsl);
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.abc-cta-button:hover {
  opacity: 0.9;
}

.abc-cta-button svg {
  width: 1rem;
  height: 1rem;
}
