/* ====================================
   CENTRUM WIEDZY - DEDYKOWANY CSS
   Data utworzenia: 2025-07-03
   Przeznaczenie: Spójny design system dla centrum-wiedzy
==================================== */

/* === VARIABLES === */
:root {
  --cw-primary-blue: #0176af;
  --cw-primary-blue-hover: #015a8a;
  --cw-text-dark: #333333;
  --cw-text-muted: #666666;
  --cw-bg-light: #f8f9fa;
  --cw-border-light: #dee2e6;
  --cw-success-green: #28a745;
  --cw-warning-orange: #ffc107;
  --cw-danger-red: #dc3545;
  --cw-shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --cw-shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --cw-border-radius: 8px;
  --cw-transition: all 0.3s ease;
}

/* === TYPOGRAPHY === */
.cw-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--cw-text-dark);
}

.cw-h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cw-primary-blue);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cw-h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--cw-primary-blue);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cw-h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cw-text-dark);
  margin-bottom: 0.875rem;
  line-height: 1.4;
}

.cw-h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cw-text-dark);
  margin-bottom: 0.75rem;
}

.cw-h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cw-text-dark);
  margin-bottom: 0.75rem;
}

.cw-text-large {
  font-size: 1.125rem;
  line-height: 1.7;
}

.cw-text-muted {
  color: var(--cw-text-muted);
}

/* === BUTTONS === */
.cw-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--cw-border-radius);
  cursor: pointer;
  transition: var(--cw-transition);
  line-height: 1.2;
  min-width: 120px;
}

.cw-btn-primary {
  background-color: var(--cw-primary-blue);
  color: white;
  border: 2px solid var(--cw-primary-blue);
}

.cw-btn-primary:hover {
  background-color: var(--cw-primary-blue-hover);
  border-color: var(--cw-primary-blue-hover);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--cw-shadow-md);
}

.cw-btn-outline {
  background-color: transparent;
  color: var(--cw-primary-blue);
  border: 2px solid var(--cw-primary-blue);
}

.cw-btn-outline:hover {
  background-color: var(--cw-primary-blue);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--cw-shadow-md);
}

.cw-btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  min-width: 100px;
}

.cw-btn-lg {
  padding: 16px 32px;
  font-size: 18px;
  min-width: 160px;
}

/* === CARDS === */
.cw-card {
  background: white;
  border: 1px solid var(--cw-border-light);
  border-radius: var(--cw-border-radius);
  box-shadow: var(--cw-shadow-sm);
  transition: var(--cw-transition);
  overflow: hidden;
}

.cw-card:hover {
  box-shadow: var(--cw-shadow-md);
  transform: translateY(-4px);
}

.cw-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--cw-border-light);
  background: var(--cw-bg-light);
}

.cw-card-body {
  padding: 1.5rem;
}

.cw-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--cw-border-light);
  background: var(--cw-bg-light);
}

.cw-card-title {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.cw-card-text {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* === ALERT BOXES === */
.cw-alert {
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--cw-border-radius);
  display: flex;
  align-items: flex-start;
}

.cw-alert-icon {
  margin-right: 0.75rem;
  margin-top: 0.125rem;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cw-alert-content {
  flex: 1;
}

.cw-alert-info {
  background-color: #e3f2fd;
  border-color: var(--cw-primary-blue);
  color: #0d47a1;
}

.cw-alert-info .cw-alert-icon {
  color: var(--cw-primary-blue);
}

.cw-alert-success {
  background-color: #e8f5e8;
  border-color: var(--cw-success-green);
  color: #155724;
}

.cw-alert-success .cw-alert-icon {
  color: var(--cw-success-green);
}

.cw-alert-warning {
  background-color: #fff3cd;
  border-color: var(--cw-warning-orange);
  color: #856404;
}

.cw-alert-warning .cw-alert-icon {
  color: var(--cw-warning-orange);
}

.cw-alert-danger {
  background-color: #f8d7da;
  border-color: var(--cw-danger-red);
  color: #721c24;
}

.cw-alert-danger .cw-alert-icon {
  color: var(--cw-danger-red);
}

/* === BREADCRUMBS === */
.cw-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
  list-style: none;
  background-color: transparent;
}

.cw-breadcrumb-item + .cw-breadcrumb-item::before {
  content: "/";
  color: var(--cw-text-muted);
  margin: 0 0.5rem;
}

.cw-breadcrumb-item a {
  color: var(--cw-primary-blue);
  text-decoration: none;
  transition: var(--cw-transition);
}

.cw-breadcrumb-item a:hover {
  color: var(--cw-primary-blue-hover);
  text-decoration: underline;
}

.cw-breadcrumb-item.active {
  color: var(--cw-text-muted);
}

/* === LISTS === */
.cw-list {
  margin-bottom: 1.5rem;
}

.cw-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.cw-checklist {
  list-style: none;
  padding-left: 0;
}

.cw-checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

.cw-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cw-success-green);
  font-weight: bold;
  font-size: 1.125rem;
}

/* === FAQ SECTION === */
.cw-faq {
  margin-top: 2rem;
}

.cw-faq-item {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: white;
  border: 1px solid var(--cw-border-light);
  border-radius: var(--cw-border-radius);
}

.cw-faq-question {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--cw-primary-blue);
}

.cw-faq-question-icon {
  margin-right: 0.5rem;
  margin-top: 0.125rem;
  color: var(--cw-primary-blue);
}

.cw-faq-answer {
  padding-left: 1.5rem;
  line-height: 1.6;
  color: var(--cw-text-dark);
}

/* === CTA SECTION === */
.cw-cta {
  background: linear-gradient(135deg, var(--cw-bg-light) 0%, #ffffff 100%);
  border: 1px solid var(--cw-border-light);
  border-radius: var(--cw-border-radius);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.cw-cta-title {
  margin-bottom: 1rem;
  color: var(--cw-primary-blue);
}

.cw-cta-text {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--cw-text-muted);
}

/* === RESPONSIVE GRID === */
.cw-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cw-grid-1 { grid-template-columns: 1fr; }
.cw-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cw-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cw-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .cw-grid-2,
  .cw-grid-3,
  .cw-grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cw-grid-3,
  .cw-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === RESPONSIVE TYPOGRAPHY === */
@media (max-width: 768px) {
  .cw-h1 { font-size: 2rem; }
  .cw-h2 { font-size: 1.75rem; }
  .cw-h3 { font-size: 1.375rem; }
  .cw-btn { padding: 10px 20px; font-size: 14px; }
  .cw-btn-lg { padding: 14px 28px; font-size: 16px; }
  .cw-card-body { padding: 1.25rem; }
  .cw-cta { padding: 1.5rem; }
}

/* === UTILITIES === */
.cw-mb-1 { margin-bottom: 0.5rem; }
.cw-mb-2 { margin-bottom: 1rem; }
.cw-mb-3 { margin-bottom: 1.5rem; }
.cw-mb-4 { margin-bottom: 2rem; }
.cw-mb-5 { margin-bottom: 3rem; }

.cw-mt-1 { margin-top: 0.5rem; }
.cw-mt-2 { margin-top: 1rem; }
.cw-mt-3 { margin-top: 1.5rem; }
.cw-mt-4 { margin-top: 2rem; }
.cw-mt-5 { margin-top: 3rem; }

.cw-text-center { text-align: center; }
.cw-text-left { text-align: left; }
.cw-text-right { text-align: right; }

.cw-d-none { display: none; }
.cw-d-block { display: block; }
.cw-d-flex { display: flex; }

.cw-w-100 { width: 100%; }
.cw-h-100 { height: 100%; }

/* === COMPATIBILITY WITH ISTNIEJĄCYMI KLASAMI === */
/* Zachowaj kompatybilność z obecnymi klasami */
.btn-filebit-contact {
  @extend .cw-btn;
  @extend .cw-btn-primary;
}

/* Alternatywnie bez SCSS: */
.btn-filebit-contact {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--cw-border-radius);
  cursor: pointer;
  transition: var(--cw-transition);
  line-height: 1.2;
  min-width: 120px;
  background-color: var(--cw-primary-blue);
  color: white;
  border: 2px solid var(--cw-primary-blue);
}

.btn-filebit-contact:hover {
  background-color: var(--cw-primary-blue-hover);
  border-color: var(--cw-primary-blue-hover);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--cw-shadow-md);
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
  .cw-dark {
    --cw-text-dark: #e0e0e0;
    --cw-text-muted: #b0b0b0;
    --cw-bg-light: #2a2a2a;
    --cw-border-light: #404040;
  }
  
  .cw-dark .cw-card {
    background: #1a1a1a;
    border-color: var(--cw-border-light);
  }
  
  .cw-dark .cw-alert-info {
    background-color: #1a237e;
    color: #bbdefb;
  }
}

/* === PERFORMANCE OPTIMIZATIONS === */
.cw-container {
  contain: layout style;
  will-change: auto;
}

.cw-card:hover {
  will-change: transform, box-shadow;
}

.cw-btn:hover {
  will-change: transform, background-color, box-shadow;
}

/* === PRINT STYLES === */
@media print {
  .cw-btn,
  .cw-alert,
  .cw-breadcrumb {
    display: none;
  }
  
  .cw-h1,
  .cw-h2,
  .cw-h3 {
    page-break-after: avoid;
  }
  
  .cw-card {
    border: 1px solid #000;
    box-shadow: none;
  }
}