/* ============================================
   Formula 1 Dictionary — Modern F1 Theme
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* F1-inspired colour palette */
  --f1-red: #e10600;
  --f1-red-dark: #b80500;
  --f1-dark: #15151e;
  --f1-darker: #0d0d14;
  --f1-card: #1e1e2e;
  --f1-card-hover: #282840;
  --f1-border: #2a2a3e;
  --f1-text: #e8e8ec;
  --f1-text-muted: #9a9ab0;
  --f1-text-dim: #6a6a80;
  --f1-accent: #e10600;
  --f1-accent-soft: rgba(225, 6, 0, 0.15);
  --f1-white: #ffffff;
  --f1-link: #6ea8fe;
  --f1-link-hover: #9ec5fe;
  --f1-link-visited: #c4a5ff;
  --f1-success: #4ade80;
  --f1-warning: #fbbf24;

  /* Layout */
  --sidebar-width: 260px;
  --header-height: auto;
  --max-content-width: 900px;
  --content-padding: 2rem;

  /* Typography */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--f1-text);
  background-color: var(--f1-darker);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Links --- */
a {
  color: var(--f1-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--f1-link-hover);
  text-decoration: underline;
}

a:visited {
  color: var(--f1-link-visited);
}

/* --- Images --- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--f1-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--f1-border);
}

th {
  background: var(--f1-dark);
  font-weight: 600;
  color: var(--f1-text);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

tr:hover td {
  background: var(--f1-card-hover);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--f1-dark);
  border-bottom: 3px solid var(--f1-red);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-link {
  flex-shrink: 0;
}

.logo {
  height: 50px;
  width: auto;
  border-radius: var(--radius-sm);
}

.header-text {
  flex: 1;
  min-width: 0;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.site-title a {
  color: var(--f1-white);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--f1-red);
  text-decoration: none;
}

.site-tagline {
  font-size: 0.8rem;
  color: var(--f1-text-muted);
  margin: 0;
}

/* Hamburger menu (mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--f1-text);
  position: relative;
  transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--f1-text);
  left: 0;
  transition: var(--transition-fast);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Alphabet navigation bar */
.alpha-nav {
  background: var(--f1-card);
  border-bottom: 1px solid var(--f1-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.alpha-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 0;
  padding: 0;
  margin: 0 auto;
  max-width: 1400px;
}

.alpha-nav li a {
  display: block;
  padding: 0.4rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--f1-text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.alpha-nav li a:hover {
  color: var(--f1-white);
  background: var(--f1-accent-soft);
  border-bottom-color: var(--f1-red);
  text-decoration: none;
}

/* ============================================
   LAYOUT
   ============================================ */
.site-wrapper {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--f1-dark);
  border-right: 1px solid var(--f1-border);
  padding: 1.5rem 0;
}

/* Sidebar search */
.sidebar-search {
  padding: 0 1rem 1rem;
}

.sidebar-search form {
  display: flex;
  background: var(--f1-card);
  border: 1px solid var(--f1-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sidebar-search input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.5rem 0.75rem;
  color: var(--f1-text);
  font-size: 0.85rem;
  outline: none;
}

.sidebar-search input::placeholder {
  color: var(--f1-text-dim);
}

.sidebar-search button {
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  color: var(--f1-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.sidebar-search button:hover {
  color: var(--f1-red);
}

/* Navigation menus */
.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.nav-menu li a {
  display: block;
  padding: 0.4rem 1.25rem;
  font-size: 0.875rem;
  color: var(--f1-text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--f1-white);
  background: var(--f1-accent-soft);
  border-left-color: var(--f1-red);
  text-decoration: none;
}

.sidebar-section {
  padding-top: 0.5rem;
  border-top: 1px solid var(--f1-border);
}

.sidebar-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--f1-text-dim);
  padding: 0.75rem 1.25rem 0.25rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.content {
  flex: 1;
  min-width: 0;
  padding: var(--content-padding);
  max-width: var(--max-content-width);
}

/* ============================================
   ARTICLE STYLES
   ============================================ */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--f1-border);
}

.article-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--f1-white);
  margin-bottom: 0.5rem;
}

.article-description {
  font-size: 1.1rem;
  color: var(--f1-text-muted);
  line-height: 1.6;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.category-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--f1-accent-soft);
  color: var(--f1-red) !important;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  transition: background var(--transition-fast);
}

.category-tag:hover {
  background: rgba(225, 6, 0, 0.25);
}

/* Article body content */
.article-content {
  font-size: 1rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--f1-white);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--f1-red);
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--f1-white);
  margin: 2rem 0 0.75rem;
}

.article-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--f1-text);
  margin: 1.5rem 0 0.5rem;
}

.article-content h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--f1-text-muted);
  margin: 1.25rem 0 0.5rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.4rem;
}

.article-content blockquote {
  border-left: 4px solid var(--f1-red);
  background: var(--f1-card);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--f1-text-muted);
  font-style: italic;
}

.article-content code {
  background: var(--f1-card);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875em;
}

.article-content pre {
  background: var(--f1-card);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--f1-border);
}

.article-content pre code {
  background: none;
  padding: 0;
}

/* Images within articles */
.article-content img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-md);
}

/* Float classes for legacy content images */
.article-content .slika-desno,
.article-content .image-right {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 45%;
}

.article-content .slika-ljevo,
.article-content .image-left {
  float: left;
  margin: 0 1.5rem 1rem 0;
  max-width: 45%;
}

.article-content .slika-centar,
.article-content .image-center {
  display: block;
  margin: 1.5rem auto;
  text-align: center;
}

/* ============================================
   RELATED ARTICLES
   ============================================ */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--f1-border);
}

.related-articles h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--f1-white);
  margin-bottom: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.related-card {
  display: block;
  padding: 1rem;
  background: var(--f1-card);
  border: 1px solid var(--f1-border);
  border-radius: var(--radius-md);
  text-decoration: none !important;
  transition: all var(--transition-normal);
}

.related-card:hover {
  background: var(--f1-card-hover);
  border-color: var(--f1-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.related-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--f1-white);
  margin-bottom: 0.25rem;
}

.related-card p {
  font-size: 0.8rem;
  color: var(--f1-text-muted);
  line-height: 1.4;
}

/* ============================================
   HOME PAGE
   ============================================ */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--f1-dark) 0%, var(--f1-darker) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--f1-border);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--f1-white);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--f1-text-muted);
  margin-bottom: 1.5rem;
}

.hero-search {
  max-width: 500px;
  margin: 0 auto;
}

.hero-search form {
  display: flex;
  background: var(--f1-card);
  border: 2px solid var(--f1-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.hero-search form:focus-within {
  border-color: var(--f1-red);
}

.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  color: var(--f1-text);
  font-size: 1rem;
  outline: none;
}

.hero-search input::placeholder {
  color: var(--f1-text-dim);
}

.hero-search button {
  background: var(--f1-red);
  border: none;
  padding: 0.75rem 1.5rem;
  color: var(--f1-white);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.hero-search button:hover {
  background: var(--f1-red-dark);
}

/* Alphabet section */
.alpha-section {
  margin-bottom: 2.5rem;
}

.alpha-section h2,
.categories-section h2,
.featured-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--f1-white);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--f1-red);
}

.alpha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 0.5rem;
}

.alpha-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--f1-card);
  border: 1px solid var(--f1-border);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--f1-text) !important;
  text-decoration: none !important;
  transition: all var(--transition-fast);
}

.alpha-card:hover {
  background: var(--f1-accent-soft);
  border-color: var(--f1-red);
  color: var(--f1-white) !important;
  transform: scale(1.05);
}

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.category-card {
  display: block;
  padding: 1.25rem;
  background: var(--f1-card);
  border: 1px solid var(--f1-border);
  border-radius: var(--radius-md);
  text-decoration: none !important;
  transition: all var(--transition-normal);
  border-left: 4px solid var(--f1-red);
}

.category-card:hover {
  background: var(--f1-card-hover);
  border-color: var(--f1-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--f1-white);
  margin-bottom: 0.25rem;
}

.category-card p {
  font-size: 0.85rem;
  color: var(--f1-text-muted);
  line-height: 1.4;
}

/* Featured grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.featured-card {
  display: block;
  padding: 1.25rem;
  background: var(--f1-card);
  border: 1px solid var(--f1-border);
  border-radius: var(--radius-md);
  text-decoration: none !important;
  transition: all var(--transition-normal);
}

.featured-card:hover {
  background: var(--f1-card-hover);
  border-color: var(--f1-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.featured-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--f1-white);
  margin-bottom: 0.25rem;
}

.featured-card p {
  font-size: 0.8rem;
  color: var(--f1-text-muted);
  line-height: 1.4;
}

/* Home content section */
.home-content {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--f1-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--f1-border);
}

/* ============================================
   LETTER INDEX PAGES (A.html - Z.html)
   ============================================ */
.article-content ul {
  list-style: none;
  padding-left: 0;
}

.article-content ul li {
  margin-bottom: 0;
}

.article-content ul li a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.article-content ul li a:hover {
  background: var(--f1-accent-soft);
  border-left-color: var(--f1-red);
  text-decoration: none;
}

/* Nested lists (sub-items) */
.article-content ul ul {
  padding-left: 1.25rem;
}

.article-content ul ul li a {
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
}

/* Ordered lists should keep numbers */
.article-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
}

/* ============================================
   LIST PAGE / ARTICLES GRID
   ============================================ */
.list-header {
  margin-bottom: 2rem;
}

.list-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--f1-white);
  letter-spacing: -0.02em;
}

.list-description {
  font-size: 1.05rem;
  color: var(--f1-text-muted);
  margin-top: 0.5rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.article-card {
  display: block;
  padding: 1.25rem;
  background: var(--f1-card);
  border: 1px solid var(--f1-border);
  border-radius: var(--radius-md);
  text-decoration: none !important;
  transition: all var(--transition-normal);
}

.article-card:hover {
  background: var(--f1-card-hover);
  border-color: var(--f1-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--f1-white);
  margin-bottom: 0.25rem;
}

.article-card p {
  font-size: 0.85rem;
  color: var(--f1-text-muted);
  line-height: 1.4;
}

.card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.category-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  background: var(--f1-accent-soft);
  color: var(--f1-red);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--f1-dark);
  border-top: 3px solid var(--f1-red);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content p {
  font-size: 0.85rem;
  color: var(--f1-text-muted);
}

.footer-tagline {
  font-size: 0.75rem !important;
  color: var(--f1-text-dim) !important;
  margin-top: 0.25rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--f1-text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--f1-white);
}

/* Back to top */
.back-to-top {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--f1-border);
}

.back-to-top a {
  font-size: 0.85rem;
  color: var(--f1-text-muted);
  text-decoration: none;
}

.back-to-top a:hover {
  color: var(--f1-red);
}

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-page {
  max-width: var(--max-content-width);
}

.search-box {
  margin-bottom: 2rem;
}

.search-box form {
  display: flex;
  background: var(--f1-card);
  border: 2px solid var(--f1-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.search-box form:focus-within {
  border-color: var(--f1-red);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.85rem 1.25rem;
  color: var(--f1-text);
  font-size: 1.1rem;
  outline: none;
}

.search-box input::placeholder {
  color: var(--f1-text-dim);
}

.search-box button {
  background: var(--f1-red);
  border: none;
  padding: 0.85rem 2rem;
  color: var(--f1-white);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-box button:hover {
  background: var(--f1-red-dark);
}

.search-hint,
.search-no-results {
  color: var(--f1-text-muted);
  font-size: 0.95rem;
}

.search-count {
  color: var(--f1-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.search-count strong,
.search-no-results strong {
  color: var(--f1-white);
}

/* ============================================
   TAXONOMY PAGES
   ============================================ */
.taxonomy-terms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .sidebar {
    width: 220px;
  }

  .content {
    padding: 1.5rem;
  }

  .article-title {
    font-size: 1.75rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .site-wrapper {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 200;
    transition: left var(--transition-normal);
    padding-top: 4rem;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 199;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .content {
    padding: 1rem;
    max-width: 100%;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .alpha-grid {
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  }

  .alpha-nav ul {
    justify-content: flex-start;
    padding: 0 0.5rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Float images go full width on mobile */
  .article-content .slika-desno,
  .article-content .slika-ljevo,
  .article-content .image-right,
  .article-content .image-left {
    float: none;
    max-width: 100%;
    margin: 1rem 0;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .header-inner {
    padding: 0.5rem 1rem;
  }

  .logo {
    height: 36px;
  }

  .site-title {
    font-size: 1rem;
  }

  .site-tagline {
    display: none;
  }

  .alpha-nav li a {
    padding: 0.3rem 0.4rem;
    font-size: 0.7rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header,
  .sidebar,
  .site-footer,
  .alpha-nav,
  .menu-toggle,
  .related-articles,
  .back-to-top,
  .hero-search {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .content {
    max-width: 100%;
    padding: 0;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .article-title {
    color: black;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ============================================
   LEGACY CONTENT CLASSES
   (From original Sinisa HTML pages)
   ============================================ */
.text-malo-pomaknut-desno {
  display: block;
  margin-left: 1.5rem;
  font-weight: 600;
}

.slova_12 {
  font-size: 0.75rem;
}

.slova_10 {
  font-size: 0.625rem;
}

/* YouTube embeds */
.youtube-player,
.article-content iframe {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border: 1px solid var(--f1-border);
}

/* Legacy inline bgcolor tables — override to match theme */
.article-content td[bgcolor],
.article-content tr[bgcolor],
.article-content th[bgcolor] {
  background-color: var(--f1-card) !important;
  color: var(--f1-text) !important;
}

.article-content td[bgcolor="#CCCCCC"],
.article-content tr[bgcolor="#CCCCCC"],
.article-content th[bgcolor="#CCCCCC"] {
  background-color: var(--f1-dark) !important;
}

.article-content td[bgcolor="#FFFFFF"],
.article-content td[bgcolor="#ffffff"] {
  background-color: var(--f1-card) !important;
}
