/* 
 * Main Frontend Styles
 * Medical CMS Theme
 */

:root {
  --primary-color: #8c0000;
  --secondary-color: #0d6efd;
  --danger-color: #dc3545;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;

  /* Bootstrap overrides: poprawa kontrastu dla tekstów typu .text-muted */
  --bs-secondary-color: #495057;
  --bs-secondary-color-rgb: 73, 80, 87;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
}

/* WCAG 2.4.7: wyraźny fokus klawiatury (dla skórki domyślnej) */
body:not(.pw-skin) :focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

body:not(.pw-skin) a:focus-visible,
body:not(.pw-skin) button:focus-visible,
body:not(.pw-skin) input:focus-visible,
body:not(.pw-skin) select:focus-visible,
body:not(.pw-skin) textarea:focus-visible {
  border-radius: 4px;
}

/* Sections */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-color);
}

/* Cards */
.hover-lift {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Links */
a {
  transition: all 0.3s ease;
}

/* Block Titles */
.block-title-wrapper {
  text-align: center;
  padding: 0 1rem;
  animation: fadeInDown 0.6s ease-out;
}

.block-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #172a1a;
  margin-bottom: 1.25rem;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.block-title::before {
  content: "";
}

.block-title::after {
  content: "";
}

.block-title-divider {
  width: 280px;
  height: 4px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@media (max-width: 768px) {
  .block-title {
    font-size: 1.75rem;
    letter-spacing: 0.5px;
  }
  .block-title::before,
  .block-title::after {
    display: none;
  }
  .block-title-wrapper {
    margin-bottom: 2rem;
  }
  .block-title-divider {
    width: 60px;
  }
}

/* Utilities */
.bg-gradient-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.text-primary {
  color: var(--primary-color) !important;
}
