/**
 * SLZH Design System - Custom Styles
 * Based on: https://github.com/Turzoooo/slzh.git
 * Date: 27. August 2026
 */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors - SLZH Sport Palette */
  --slzh-primary: #1e2875;        /* Navy Blue */
  --slzh-accent: #dd4b39;         /* Hasič Red */
  --slzh-bg: #ffffff;             /* White Background */
  --slzh-fg: #1a1d3a;             /* Dark Text */
  --slzh-muted: #f5f5f7;          /* Light Gray */
  --slzh-muted-fg: #7a7d91;       /* Medium Gray */
  --slzh-border: #e4e4e8;         /* Border Gray */

  /* Typography */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, 'Consolas', monospace;

  /* Spacing */
  --slzh-radius: 0.25rem;         /* 4px */
  --slzh-radius-sm: 0.15rem;      /* 2.4px */
  --slzh-radius-lg: 0.35rem;      /* 5.6px */
}

/* ===== BOOTSTRAP OVERRIDES ===== */
.btn-primary {
  background-color: var(--slzh-primary);
  border-color: var(--slzh-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #151f5a;
  border-color: #151f5a;
}

.btn-danger,
.btn-accent {
  background-color: var(--slzh-accent);
  border-color: var(--slzh-accent);
}

.btn-danger:hover,
.btn-danger:focus,
.btn-accent:hover,
.btn-accent:focus {
  background-color: #c43d2b;
  border-color: #c43d2b;
}

.badge.bg-primary {
  background-color: var(--slzh-primary) !important;
}

.badge.bg-danger,
.badge.bg-accent {
  background-color: var(--slzh-accent) !important;
}

.text-primary {
  color: var(--slzh-primary) !important;
}

.text-accent {
  color: var(--slzh-accent) !important;
}

.text-muted {
  color: var(--slzh-muted-fg) !important;
}

.bg-muted {
  background-color: var(--slzh-muted) !important;
}

.bg-primary {
  background-color: var(--slzh-primary) !important;
}

.bg-accent {
  background-color: var(--slzh-accent) !important;
}

.border-muted {
  border-color: var(--slzh-border) !important;
}

/* ===== TYPOGRAPHY ===== */
body {
  font-family: var(--font-sans);
  color: var(--slzh-fg);
  background-color: var(--slzh-bg);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.font-display {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
}

.font-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.text-uppercase {
  text-transform: uppercase;
}

.tracking-tight {
  letter-spacing: -0.02em;
}

.tracking-wide,
.ls-wide {
  letter-spacing: 0.08em;
}

.tracking-wider,
.ls-wider {
  letter-spacing: 0.12em;
}

.tracking-widest,
.ls-widest {
  letter-spacing: 0.18em;
}

/* ===== LAYOUT ===== */
.container-slzh {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1400px) {
  .container-slzh {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  width: 100%;
}

.utility-bar {
  background-color: var(--slzh-primary);
  color: white;
  height: 36px;
}

.utility-bar a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.utility-bar a:hover {
  color: rgba(255, 255, 255, 1);
  opacity: 1;
}

.main-nav {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slzh-border);
}

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(26, 29, 58, 0.75);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--slzh-primary);
}

.nav-link.active {
  color: var(--slzh-accent);
}

.nav-link .nav-underline {
  position: absolute;
  bottom: -1px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background-color: var(--slzh-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link.active .nav-underline {
  transform: scaleX(1);
}

.nav-link:hover .nav-underline {
  transform: scaleX(1);
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--slzh-primary);
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slzh-muted-fg);
}

/* Calendar Bar */
.calendar-bar {
  background-color: var(--slzh-muted);
  border-bottom: 1px solid var(--slzh-border);
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--slzh-border);
}

.footer-main {
  background-color: var(--slzh-primary);
  color: white;
}

.footer-main h3 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--slzh-accent);
}

.footer-main a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-main a:hover {
  color: rgba(255, 255, 255, 1);
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
}

/* ===== CARDS ===== */
.card {
  border-radius: var(--slzh-radius);
  border: 1px solid var(--slzh-border);
}

.card.border-0 {
  border: none;
}

.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(30, 40, 117, 0.15) !important;
}

.card-img-top {
  border-top-left-radius: var(--slzh-radius);
  border-top-right-radius: var(--slzh-radius);
}

/* ===== BADGES ===== */
.badge {
  border-radius: var(--slzh-radius-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge.rounded-sm {
  border-radius: var(--slzh-radius-sm);
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: var(--slzh-radius);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn.font-display {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--slzh-primary) 0%, #2a3580 100%);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-header .lead {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
  background: transparent;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--slzh-muted-fg);
}

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

.breadcrumb-item a:hover {
  color: var(--slzh-accent);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--slzh-muted-fg);
}

/* ===== ANIMATIONS ===== */
@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.18);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-zoom {
  animation: hero-zoom 18s ease-out forwards;
}

.hero-rise {
  animation: hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-zoom,
  .hero-rise,
  .pulse,
  .animate-pulse {
    animation: none;
  }
}

/* ===== TABLES ===== */
.table th {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slzh-muted-fg);
  font-weight: 600;
}

/* ===== UTILITY CLASSES ===== */
.shadow-slzh {
  box-shadow: 0 0.125rem 0.25rem rgba(30, 40, 117, 0.075);
}

.shadow-slzh-lg {
  box-shadow: 0 0.5rem 1rem rgba(30, 40, 117, 0.15);
}

.text-mono {
  font-family: var(--font-mono);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.scrollbar-none {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 767.98px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .nav-link {
    font-size: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .page-header h1 {
    font-size: 1.75rem;
  }
}

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
  min-height: 80vh;
  padding: 2.5rem 0;
}

/* ===== ARTICLE/BLOG SPECIFIC ===== */
.article-card .card-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slzh-muted-fg);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.article-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--slzh-radius);
  margin: 1.5rem 0;
}
