/*
Theme Name: Klik World v2
Theme URI: https://klik.world
Author: Klik.world
Version: 2.0.0
Description: Premium news theme za klik.world - hero, info-bar, popularne radio stanice
License: Proprietary
Text Domain: klik-world
*/

/* ======================================================================
   1. CSS RESET / TOKENS
   ====================================================================== */
:root {
  --navy:        #042C53;
  --navy-mid:    #0C447C;
  --blue:        #185FA5;
  --blue-light:  #378ADD;
  --blue-pale:   #B5D4F4;
  --blue-xpale:  #E6F1FB;

  --gray-900:    #1a1a1a;
  --gray-700:    #3a3a3a;
  --gray-600:    #525252;
  --gray-500:    #6b6b6b;
  --gray-400:    #94a3b8;
  --gray-300:    #c4c4c4;
  --gray-100:    #f0f0f0;
  --gray-50:     #f7f7f7;

  --white:       #ffffff;
  --border:      #e5e5e5;
  --border-mid:  #d0d0d0;

  --red:         #c53030;
  --green:       #1D9E75;
  --amber:       #EF9F27;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Source Sans 3', system-ui, -apple-system, sans-serif;

  --max-w:       1280px;
  --gap:         24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; }

.kw-container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ======================================================================
   2. HEADER
   ====================================================================== */
.kw-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.kw-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.kw-logo {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.kw-logo .dot { color: var(--gray-300); }
.kw-nav { display: flex; gap: 28px; }
.kw-nav a {
  font-size: 14px; font-weight: 600;
  color: var(--gray-700);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.kw-nav a:hover, .kw-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}
.kw-header-right { display: flex; align-items: center; gap: 12px; }
.kw-radio-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 18px; border-radius: 22px;
  font-size: 13px; font-weight: 600;
}
.kw-radio-btn:hover { background: var(--navy-mid); color: var(--white) !important; }
.kw-radio-btn::before {
  content: ''; display: block;
  border-left: 7px solid var(--white);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.kw-login-btn {
  font-size: 13px; font-weight: 600;
  color: var(--gray-700) !important;
}
.kw-login-btn:hover { color: var(--navy) !important; }

/* ======================================================================
   3. INFO BAR (vrijeme + tečaj rotira)
   ====================================================================== */
.kw-infobar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
  font-size: 13px;
  overflow: hidden;
}
.kw-infobar-inner {
  display: flex; align-items: center; gap: 18px;
}
.kw-live-pulse {
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.kw-live-pulse::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%; background: var(--blue);
  animation: kw-pulse 1.6s ease-in-out infinite;
}
@keyframes kw-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.kw-infobar-sep { color: var(--gray-300); }
.kw-infobar-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--gray-700);
}
.kw-infobar-item strong { color: var(--gray-900); font-weight: 600; }
.kw-infobar-item.fade-in { animation: kw-fade .4s ease-out; }
@keyframes kw-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ======================================================================
   4. HERO SECTION
   ====================================================================== */
.kw-hero {
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--border);
}
.kw-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap);
}
.kw-hero-main { }
.kw-hero-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a3a5c 0%, #2d4d6e 100%);
}
.kw-hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.kw-hero-main a:hover .kw-hero-img img { transform: scale(1.03); }
.kw-hero-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
}
.kw-hero-img-badge {
  position: absolute; top: 14px; left: 14px;
}
.kw-hero-content { padding-top: 16px; }
.kw-hero-content h1 {
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 700;
  line-height: 1.25; color: var(--gray-900);
  margin: 10px 0;
}
.kw-hero-main a:hover h1 { color: var(--navy); }
.kw-hero-excerpt {
  font-size: 15px; color: var(--gray-600);
  line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 10px;
}
.kw-hero-meta {
  font-size: 12px; color: var(--gray-500);
}
.kw-hero-meta .sep { margin: 0 6px; color: var(--gray-300); }

/* Latest sidebar */
.kw-hero-aside {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
.kw-aside-label {
  font-size: 11px; font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.kw-latest-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.kw-latest-item:last-child { border-bottom: 0; }
.kw-latest-img {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--gray-100);
}
.kw-latest-img img { width: 100%; height: 100%; object-fit: cover; }
.kw-latest-text h3 {
  font-family: var(--font-serif);
  font-size: 13.5px; font-weight: 700;
  line-height: 1.35;
  margin: 4px 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kw-latest-text h3 a { color: var(--gray-900); }
.kw-latest-text h3 a:hover { color: var(--navy); }
.kw-latest-meta { font-size: 11px; color: var(--gray-500); }

/* ======================================================================
   5. BADGES
   ====================================================================== */
.kw-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}
.kw-badge--politika  { background: var(--blue-xpale); color: var(--navy-mid); }
.kw-badge--biznis    { background: #FAEEDA; color: #633806; }
.kw-badge--tech      { background: #F1EFE8; color: #2C2C2A; }
.kw-badge--svijet    { background: #FAECE7; color: #4A1B0C; }
.kw-badge--sport     { background: #E1F5EE; color: #085041; }
.kw-badge--lifestyle { background: #FBEAF0; color: #4B1528; }
.kw-badge--zdravlje  { background: #DCFCE7; color: #14532D; }
.kw-badge--hronika   { background: #FEE2E2; color: #7F1D1D; }
.kw-badge--kultura   { background: #FEF3C7; color: #78350F; }
.kw-badge--drustvo   { background: #E0E7FF; color: #1E3A8A; }
.kw-badge--default   { background: var(--gray-100); color: var(--gray-700); }

/* On dark hero overlay, light badges */
.kw-hero-img-badge .kw-badge {
  background: var(--blue);
  color: var(--white);
}

/* ======================================================================
   6. SECTION HEADER
   ====================================================================== */
.kw-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.kw-section-title {
  font-family: var(--font-sans);
  font-size: 16px; font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kw-see-all {
  font-size: 12px; font-weight: 600; color: var(--blue);
}
.kw-see-all:hover { text-decoration: underline; }

/* ======================================================================
   7. NAJNOVIJE VIJESTI (3 kartice)
   ====================================================================== */
.kw-latest-section { padding: 32px 0; border-bottom: 1px solid var(--border); }
.kw-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.kw-news-card { }
.kw-news-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 8px;
  background: var(--gray-100);
  margin-bottom: 12px;
}
.kw-news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.kw-news-card a:hover .kw-news-card-img img { transform: scale(1.04); }
.kw-news-card h3 {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 700;
  line-height: 1.3;
  margin: 8px 0 6px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.kw-news-card h3 a { color: var(--gray-900); }
.kw-news-card h3 a:hover { color: var(--navy); }
.kw-news-card-meta { font-size: 12px; color: var(--gray-500); }

/* ======================================================================
   8. POPULARNE RADIO STANICE (homepage)
   ====================================================================== */
.kw-radio-section {
  background: var(--navy);
  padding: 36px 0;
  color: var(--white);
}
.kw-radio-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px;
}
.kw-radio-head h2 {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 700;
  color: var(--white);
}
.kw-radio-head a {
  font-size: 13px; font-weight: 600;
  color: var(--blue-pale);
}
.kw-radio-head a:hover { color: var(--white); }
.kw-radio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.kw-station {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
  transition: background .15s;
  color: var(--white) !important;
}
.kw-station:hover { background: rgba(255,255,255,0.16); color: var(--white) !important; }
.kw-station-logo {
  width: 48px; height: 48px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  overflow: hidden;
  background: var(--blue);
}
.kw-station-logo img { width: 100%; height: 100%; object-fit: cover; }
.kw-station-info { flex: 1; min-width: 0; }
.kw-station-name {
  font-size: 14px; font-weight: 700;
  color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kw-station-meta {
  font-size: 11.5px;
  color: var(--blue-pale);
  margin-top: 2px;
}
.kw-station-play {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kw-station-play::before {
  content: '';
  border-left: 8px solid var(--white);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}

/* ======================================================================
   9. NAJČITANIJE
   ====================================================================== */
.kw-trending-section {
  background: var(--gray-50);
  padding: 36px 0;
}
.kw-trending-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.kw-trending-card { }
.kw-trending-num {
  font-family: var(--font-serif);
  font-size: 36px; font-weight: 700;
  color: var(--border-mid);
  line-height: 1;
  margin-bottom: 8px;
}
.kw-trending-img {
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--gray-100);
  margin-bottom: 8px;
}
.kw-trending-img img { width: 100%; height: 100%; object-fit: cover; }
.kw-trending-card h3 {
  font-size: 13px; font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.kw-trending-card h3 a { color: var(--gray-800); }
.kw-trending-card h3 a:hover { color: var(--navy); }
.kw-trending-meta { font-size: 11px; color: var(--gray-500); }

/* ======================================================================
   10. FOOTER
   ====================================================================== */
.kw-site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 36px 0 0;
  margin-top: 36px;
}
.kw-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.kw-footer-logo {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.kw-footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 280px;
}
.kw-footer-col h4 {
  font-size: 13px; font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.kw-footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 7px;
}
.kw-footer-col a:hover { color: var(--white); }
.kw-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 14px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ======================================================================
   11. RESPONSIVE
   ====================================================================== */
@media (max-width: 1024px) {
  .kw-hero-grid { grid-template-columns: 1fr; }
  .kw-hero-aside { border-left: 0; padding-left: 0; padding-top: 16px; border-top: 1px solid var(--border); }
  .kw-radio-grid { grid-template-columns: repeat(2, 1fr); }
  .kw-trending-grid { grid-template-columns: repeat(3, 1fr); }
  .kw-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .kw-nav { display: none; }
  .kw-latest-grid { grid-template-columns: 1fr; }
  .kw-radio-grid { grid-template-columns: 1fr; }
  .kw-trending-grid { grid-template-columns: 1fr 1fr; }
  .kw-footer-grid { grid-template-columns: 1fr; }
  .kw-hero-content h1 { font-size: 22px; }
  .kw-infobar-inner { flex-wrap: wrap; gap: 8px; }
}
