/* =============================================
   PRUDENT — Informacijski Dashboard
   Glavna stilska datoteka
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:       #FFFFFF;
  --bg-light:    #F2F4F8;
  --bg-card:     #FFFFFF;
  --border:      #E2E6ED;
  --gray-100:    #F8F9FB;
  --gray-200:    #EEF0F4;
  --gray-400:    #9CA3AF;
  --gray-500:    #6B7280;
  --gray-600:    #4B5563;
  --graphite:    #374151;
  --dark:        #111827;
  --accent-blue: #2563EB;
  --accent-light:#EFF4FF;
  --accent-yellow:#D97706;
  --accent-yellow-light:#FEF3C7;
  --red-accent:  #DC2626;
  --green:       #059669;
  --font-main:   'Inter', system-ui, sans-serif;
  --font-display:'Playfair Display', Georgia, serif;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07);
  --shadow-md:   0 4px 12px rgba(0,0,0,.09);
  --shadow-lg:   0 8px 24px rgba(0,0,0,.10);
  --transition:  0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background: var(--bg-light);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: #1d4ed8; }

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

ul, ol { list-style: none; }

button, input, textarea, select {
  font-family: var(--font-main);
  font-size: inherit;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.875rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.375rem); }
h4 { font-size: 1.125rem; }

p { color: var(--graphite); line-height: 1.75; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.125rem; color: var(--gray-600); line-height: 1.8; }

/* === LAYOUT === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow { max-width: 960px; }
.container--wide   { max-width: 1440px; }

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

/* === HEADER === */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-top {
  border-bottom: 1px solid var(--border);
  padding: .45rem 0;
  background: var(--dark);
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-top-date {
  font-size: .75rem;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: .04em;
}

.header-top-links {
  display: flex;
  gap: 1.25rem;
}

.header-top-links a {
  font-size: .72rem;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.header-top-links a:hover { color: var(--white); }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon span {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
}

.logo-text strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.5px;
  line-height: 1;
}

.logo-text small {
  font-size: .65rem;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.header-search {
  flex: 1;
  max-width: 340px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: .55rem 1rem .55rem 2.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: .875rem;
  color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header-search input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.header-search-icon {
  position: absolute;
  left: .875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: .85rem;
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* === NAVIGATION === */
.site-nav {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .75rem 1rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--graphite);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.nav-link.breaking {
  color: var(--red-accent);
}

.nav-link.breaking:hover {
  color: #b91c1c;
  border-bottom-color: var(--red-accent);
}

/* mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--dark);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  margin: 4px 0;
  transition: all var(--transition);
}

/* === BREADCRUMBS === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 0;
  font-size: .78rem;
  color: var(--gray-400);
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--accent-blue); }
.breadcrumb-sep { color: var(--gray-400); }
.breadcrumb-current { color: var(--graphite); font-weight: 500; }

/* === PAGE HERO / INTRO === */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 1.5rem;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem;
}

.page-hero-title { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.page-hero-desc { margin-top: .5rem; color: var(--gray-500); font-size: .9375rem; }

/* === TAGS / CATEGORIES === */
.tag {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.tag--blue   { background: var(--accent-light); color: var(--accent-blue); }
.tag--yellow { background: var(--accent-yellow-light); color: var(--accent-yellow); }
.tag--red    { background: #FEE2E2; color: var(--red-accent); }
.tag--green  { background: #D1FAE5; color: var(--green); }
.tag--gray   { background: var(--gray-200); color: var(--graphite); }

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-body { padding: 1.1rem 1.25rem 1.25rem; }

.card-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .65rem;
  flex-wrap: wrap;
}

.card-date {
  font-size: .72rem;
  color: var(--gray-400);
  font-weight: 500;
}

.card-reading-time {
  font-size: .72rem;
  color: var(--gray-400);
  font-weight: 500;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: .5rem;
  transition: color var(--transition);
}

.card-title a { color: inherit; }
.card-title a:hover { color: var(--accent-blue); }

.card-excerpt {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: .85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-author {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--gray-500);
}

.author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gray-200);
}

/* card horizontal */
.card--horizontal {
  display: flex;
  gap: 0;
  flex-direction: row;
}

.card--horizontal .card-img-wrap {
  flex-shrink: 0;
  width: 160px;
}

.card--horizontal .card-img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.card--horizontal .card-body { flex: 1; }

/* card featured */
.card--featured {
  position: relative;
}

.card--featured .card-img {
  aspect-ratio: 16/9;
}

.card--featured .card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(17,24,39,.9) 0%, rgba(17,24,39,.5) 60%, transparent 100%);
}

.card--featured .card-title { font-size: 1.35rem; color: var(--white); margin-bottom: .4rem; }
.card--featured .card-excerpt { color: rgba(255,255,255,.75); margin-bottom: 0; }
.card--featured .card-meta .tag { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: var(--white); }
.card--featured .card-date { color: rgba(255,255,255,.6); }

/* === MAIN LAYOUT GRID === */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.75rem;
  padding: 1.75rem 0 3rem;
}

.content-grid--wide { grid-template-columns: 1fr 360px; }
.content-grid--full { grid-template-columns: 1fr; }

/* === NEWS GRID === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

/* === HERO GRID (homepage) === */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.hero-grid .card--featured:first-child {
  grid-column: 1;
  grid-row: 1 / 3;
}

/* === SIDEBAR === */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.widget-header {
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--graphite);
}

.widget-more {
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.widget-body { padding: .75rem 1.1rem; }

/* widget list items */
.widget-list { display: flex; flex-direction: column; }

.widget-list-item {
  display: flex;
  gap: .85rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: flex-start;
}

.widget-list-item:last-child { border-bottom: none; }

.widget-item-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--border);
  flex-shrink: 0;
  line-height: 1;
  padding-top: .1rem;
  width: 1.5rem;
  text-align: right;
}

.widget-item-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

.widget-item-title a { color: inherit; }
.widget-item-title a:hover { color: var(--accent-blue); }

.widget-item-meta {
  font-size: .7rem;
  color: var(--gray-400);
  margin-top: .25rem;
}

/* widget categories */
.widget-cat-list { display: flex; flex-direction: column; gap: .1rem; }

.widget-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.widget-cat-item:hover { background: var(--bg-light); }

.widget-cat-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--graphite);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.widget-cat-count {
  font-size: .72rem;
  font-weight: 600;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: .1rem .45rem;
  border-radius: 99px;
}

/* === TICKER === */
.ticker-bar {
  background: var(--dark);
  color: var(--white);
  padding: .5rem 0;
  overflow: hidden;
  border-bottom: 2px solid var(--accent-blue);
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.ticker-label {
  background: var(--accent-blue);
  color: var(--white);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  flex-shrink: 0;
  margin-right: 1.25rem;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  animation: ticker 35s linear infinite;
  font-size: .8rem;
  color: rgba(255,255,255,.85);
}

.ticker-content a { color: rgba(255,255,255,.85); margin-right: 2.5rem; }
.ticker-content a:hover { color: var(--white); }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === SECTION HEADERS === */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--border);
}

.section-header-left {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.section-title {
  font-size: .9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--dark);
}

.section-accent {
  width: 4px;
  height: 1.1rem;
  background: var(--accent-blue);
  border-radius: 2px;
}

.section-accent--yellow { background: var(--accent-yellow); }
.section-accent--red    { background: var(--red-accent); }

.section-link {
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .6rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}

.btn--primary {
  background: var(--accent-blue);
  color: var(--white);
  border-color: var(--accent-blue);
}

.btn--primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.btn--outline:hover {
  background: var(--accent-blue);
  color: var(--white);
}

.btn--yellow {
  background: var(--accent-yellow);
  color: var(--white);
  border-color: var(--accent-yellow);
}

.btn--yellow:hover {
  background: #b45309;
  border-color: #b45309;
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--graphite);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--bg-light);
  color: var(--dark);
}

.btn--sm { padding: .4rem .9rem; font-size: .8rem; }
.btn--lg { padding: .85rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* === FORMS === */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: .4rem;
  letter-spacing: .01em;
}

.form-control {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .9rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.form-control::placeholder { color: var(--gray-400); }

textarea.form-control { resize: vertical; min-height: 130px; }

.form-hint { font-size: .75rem; color: var(--gray-400); margin-top: .3rem; }

/* === ALERT / NOTICE === */
.alert {
  padding: .9rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
}

.alert--success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.alert--error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.alert--info    { background: var(--accent-light); color: var(--accent-blue); border: 1px solid #BFDBFE; }

/* === PAGINATION === */
.pagination {
  display: flex;
  align-items: center;
  gap: .35rem;
  justify-content: center;
  padding: 1.5rem 0 .5rem;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--graphite);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.page-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.page-btn.active { background: var(--accent-blue); border-color: var(--accent-blue); color: var(--white); }
.page-btn--prev, .page-btn--next { width: auto; padding: 0 .75rem; gap: .35rem; }

/* === STAT BOXES === */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.stat-label {
  font-size: .78rem;
  color: var(--gray-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.stat-change {
  font-size: .78rem;
  font-weight: 600;
  margin-top: .25rem;
}

.stat-change--up   { color: var(--green); }
.stat-change--down { color: var(--red-accent); }

/* === TOPIC TABS === */
.topic-tabs {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: .1rem;
}

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

.topic-tab {
  flex-shrink: 0;
  padding: .4rem .9rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--graphite);
  transition: all var(--transition);
}

.topic-tab:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.topic-tab.active { background: var(--accent-blue); border-color: var(--accent-blue); color: var(--white); }

/* === AUTHOR BOX === */
.author-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 2rem 0;
}

.author-box-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-200);
}

.author-box-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .2rem;
}

.author-box-role {
  font-size: .78rem;
  color: var(--accent-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}

.author-box-bio {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 0;
}

/* === ARTICLE CONTENT === */
.article-header { margin-bottom: 1.75rem; }
.article-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: .75rem; }
.article-subtitle { font-size: 1.1rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 1rem; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.article-meta-author {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--graphite);
  font-weight: 500;
}

.article-meta-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.article-date, .article-reading { font-size: .8rem; color: var(--gray-400); }

.article-featured-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.article-img-caption {
  font-size: .78rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: -.75rem;
  margin-bottom: 1.25rem;
}

.article-body { font-size: 1rem; line-height: 1.85; color: var(--graphite); }
.article-body h2 { margin: 1.75rem 0 .75rem; font-size: 1.35rem; }
.article-body h3 { margin: 1.5rem 0 .6rem; font-size: 1.15rem; }
.article-body p  { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .5rem; }

.article-body blockquote {
  border-left: 3px solid var(--accent-blue);
  margin: 1.5rem 0;
  padding: .75rem 1.25rem;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.05rem;
  color: var(--graphite);
  font-style: italic;
}

.article-share {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 1.5rem 0;
}

.share-label { font-size: .8rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em; }

.share-btn {
  padding: .4rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--graphite);
  transition: all var(--transition);
  text-decoration: none;
}

.share-btn:hover { background: var(--bg-light); color: var(--dark); }

/* === ANALYTICS PAGE === */
.chart-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.chart-header { margin-bottom: 1rem; }
.chart-title { font-size: 1rem; font-weight: 700; color: var(--dark); }
.chart-subtitle { font-size: .8rem; color: var(--gray-400); margin-top: .2rem; }

.data-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .65rem;
}

.data-bar-label { width: 130px; font-size: .82rem; color: var(--graphite); flex-shrink: 0; }

.data-bar-track {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 99px;
  overflow: hidden;
}

.data-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent-blue);
}

.data-bar-fill--yellow { background: var(--accent-yellow); }
.data-bar-fill--red    { background: var(--red-accent); }
.data-bar-fill--green  { background: var(--green); }

.data-bar-value { width: 45px; font-size: .82rem; font-weight: 600; color: var(--graphite); text-align: right; flex-shrink: 0; }

/* === TABLE === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.data-table th {
  padding: .65rem .9rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-400);
  border-bottom: 1.5px solid var(--border);
  text-align: left;
}

.data-table td {
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--graphite);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-light); }

/* === FOOTER === */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding-top: 3rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand .logo-text strong { color: var(--white); }
.footer-brand .logo-text small  { color: rgba(255,255,255,.4); }

.footer-tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  margin: .75rem 0 1.25rem;
  line-height: 1.65;
}

.footer-contact-item {
  display: flex;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .45rem;
}

.footer-contact-item strong { color: rgba(255,255,255,.75); }

.footer-col-title {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links { display: flex; flex-direction: column; gap: .45rem; }

.footer-links a {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom-links a {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* === NEWSLETTER WIDGET === */
.newsletter-box {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #1d4ed8 100%);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.newsletter-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.newsletter-desc  { font-size: .82rem; opacity: .8; margin-bottom: 1rem; }

.newsletter-form { display: flex; gap: .5rem; flex-direction: column; }

.newsletter-input {
  padding: .6rem .9rem;
  border-radius: var(--radius-sm);
  border: none;
  font-size: .875rem;
  width: 100%;
}

.newsletter-btn {
  padding: .6rem 1rem;
  background: var(--accent-yellow);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}

.newsletter-btn:hover { background: #b45309; }

/* === PROGRESS BAR === */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent-blue);
  width: 0%;
  z-index: 9999;
  transition: width .1s linear;
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 40px;
  height: 40px;
  background: var(--accent-blue);
  color: var(--white);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 200;
  border: none;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform var(--transition);
}

.back-to-top:hover { background: #1d4ed8; transform: translateY(-2px); }
.back-to-top.visible { display: flex; }

/* === DIVIDER === */
.divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark);
  color: rgba(255,255,255,.85);
  padding: 1rem;
  z-index: 999;
  display: none;
}

.cookie-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cookie-text { font-size: .82rem; flex: 1; }
.cookie-text a { color: var(--accent-light); }
.cookie-actions { display: flex; gap: .65rem; flex-shrink: 0; }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .content-grid { grid-template-columns: 1fr 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .card--featured:first-child { grid-column: 1; grid-row: auto; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .card--horizontal { flex-direction: column; }
  .card--horizontal .card-img-wrap { width: 100%; }
  .card--horizontal .card-img { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .header-search { display: none; }
  .nav-toggle { display: block; }
  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    padding: .5rem 0;
    border-top: 1px solid var(--border);
    position: absolute;
    left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 90;
  }
  .site-nav .nav-list.open { display: flex; }
  .nav-link { padding: .65rem 1.25rem; border-bottom: none; border-left: 2px solid transparent; }
  .nav-link:hover, .nav-link.active { border-left-color: var(--accent-blue); border-bottom-color: transparent; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .75rem; }
}
