/*
Theme Name: MacedoniaPress
Theme URI: https://www.macedoniapress.com
Author: MacedoniaPress
Description: Temë moderne lajmesh me stil televiziv, në të zeza dhe portokalli. Mbështet shqip, maqedonisht dhe anglisht (me Polylang/WPML ose ndërruesin e brendshëm).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: macedoniapress
*/

:root {
  --black: #0b0b0b;
  --ink: #161616;
  --orange: #f26a1b;
  --orange-dark: #c8520f;
  --orange-soft: #fff1e8;
  --grey: #6b6b6b;
  --line: #e6e3de;
  --bg: #faf9f7;
  --white: #fff;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --w: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
ul { margin: 0; padding: 0; list-style: none; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; background: var(--orange); color: #fff; padding: 8px 14px; z-index: 999; }
.mp-wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.mp-topbar { background: var(--black); color: #cfcfcf; font-size: 13px; }
.mp-topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.mp-date::first-letter { text-transform: uppercase; }
.mp-lang { display: flex; gap: 4px; }
.mp-lang a { padding: 3px 9px; border-radius: 3px; font-weight: 600; letter-spacing: .04em; color: #cfcfcf; }
.mp-lang a:hover { color: #fff; }
.mp-lang a.is-active { background: var(--orange); color: #fff; }

/* ---------- Header ---------- */
.mp-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.mp-header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.mp-logo img { height: 68px; width: auto; }
.mp-search { display: flex; border: 2px solid var(--black); border-radius: 4px; overflow: hidden; max-width: 340px; width: 100%; }
.mp-search input { flex: 1; border: 0; padding: 9px 12px; font: inherit; font-size: 14px; min-width: 0; outline: none; background: #fff; }
.mp-search button { border: 0; background: var(--black); color: #fff; padding: 0 16px; font: 600 13px var(--sans); cursor: pointer; text-transform: uppercase; letter-spacing: .05em; }
.mp-search button:hover { background: var(--orange); }
.mp-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.mp-burger span { display: block; width: 24px; height: 3px; background: var(--black); margin: 4px 0; }

.mp-nav { background: var(--black); }
.mp-menu { display: flex; flex-wrap: wrap; }
.mp-menu > li { position: relative; }
.mp-menu a { display: block; padding: 13px 18px; color: #fff; font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .07em; border-bottom: 3px solid transparent; }
.mp-menu a:hover, .mp-menu .current-menu-item > a, .mp-menu .current-cat > a { color: #fff; background: #1a1a1a; border-bottom-color: var(--orange); }
.mp-menu .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 210px; background: var(--black); z-index: 20; }
.mp-menu li:hover > .sub-menu { display: block; }

/* ---------- Ticker ---------- */
.mp-ticker { background: var(--orange); color: #fff; overflow: hidden; }
.mp-ticker-in { display: flex; align-items: center; gap: 16px; min-height: 40px; }
.mp-ticker-label { background: var(--black); color: #fff; padding: 9px 14px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; white-space: nowrap; flex: none; }
.mp-ticker-track { display: flex; gap: 34px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-weight: 600; font-size: 14px; }
.mp-ticker-track::-webkit-scrollbar { display: none; }
.mp-ticker-track a { color: #fff; position: relative; }
.mp-ticker-track a + a::before { content: ''; position: absolute; left: -18px; top: 50%; width: 5px; height: 5px; margin-top: -2px; background: #fff; border-radius: 50%; opacity: .7; }
.mp-ticker-track a:hover { color: #fff; text-decoration: underline; }

/* ---------- Cards ---------- */
.mp-main { padding-bottom: 40px; }
.mp-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #2a2a2a, #111); }
.mp-media { display: block; overflow: hidden; background: #111; aspect-ratio: 16/10; }
.mp-media img, .mp-media .mp-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.mp-card:hover .mp-media img, .mp-hero:hover .mp-media img, .mp-row:hover .mp-media img { transform: scale(1.04); }
.mp-cat { display: inline-block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--orange-dark); margin-bottom: 6px; }
.mp-cat:hover { color: var(--black); }
.mp-title { font-family: var(--serif); font-weight: 700; line-height: 1.25; }
.mp-title a { background-image: linear-gradient(var(--orange), var(--orange)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s; }
.mp-title a:hover { color: inherit; background-size: 100% 2px; }
.mp-time { display: block; font-size: 12.5px; color: var(--grey); margin-top: 6px; }
.mp-excerpt { color: #444; margin: 10px 0 0; font-size: 16px; }

.mp-card .mp-body { padding-top: 12px; }
.mp-card .mp-title { font-size: 20px; }

.mp-hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; padding: 28px 0; }
.mp-hero .mp-media { aspect-ratio: 16/9; }
.mp-hero .mp-body { padding-top: 16px; }
.mp-hero .mp-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.mp-hero .mp-cat { background: var(--orange); color: #fff; padding: 4px 10px; border-radius: 2px; }

.mp-section-title { font-family: var(--sans); font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding-left: 12px; border-left: 5px solid var(--orange); }
.mp-focus { border-left: 1px solid var(--line); padding-left: 28px; }
.mp-focus .mp-section-title { margin-bottom: 14px; }
.mp-side { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.mp-side .mp-media { aspect-ratio: 4/3; }
.mp-side .mp-body { padding: 0; }
.mp-side .mp-title { font-size: 17px; }

.mp-row { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.mp-row .mp-body { padding: 0; }
.mp-row .mp-title { font-size: 19px; }

/* Editor's choice */
.mp-editors { background: var(--black); color: #fff; padding: 36px 0; margin: 6px 0 36px; }
.mp-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mp-on-dark .mp-section-title { color: #fff; }
.mp-editors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.mp-ed { border-top: 3px solid var(--orange); padding-top: 14px; }
.mp-ed .mp-num { display: block; font: 800 44px/1 var(--serif); color: var(--orange); margin-bottom: 10px; }
.mp-ed .mp-cat { color: #ffb184; }
.mp-ed .mp-title { font-size: 19px; color: #fff; }
.mp-ed .mp-title a:hover { color: #fff; }
.mp-ed .mp-time { color: #a8a8a8; }

/* Layout */
.mp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 28px; }
.mp-block { margin-bottom: 44px; }
.mp-all { font-size: 13px; font-weight: 700; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .05em; }
.mp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mp-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.mp-cat-grid .mp-card { grid-row: span 3; }
.mp-cat-grid .mp-row { grid-template-columns: 130px 1fr; padding: 0 0 14px; margin-bottom: 14px; border-top: 0; border-bottom: 1px solid var(--line); }
.mp-cat-grid .mp-row .mp-title { font-size: 16px; }
.mp-video .mp-media { position: relative; }
.mp-video .mp-media::after { content: '▶'; position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; line-height: 54px; text-align: center; background: var(--orange); color: #fff; border-radius: 50%; font-size: 20px; padding-left: 4px; }

/* Sidebar */
.mp-sidebar { display: flex; flex-direction: column; gap: 30px; }
.mp-widget { background: var(--white); border: 1px solid var(--line); padding: 20px; }
.mp-widget-title { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding-left: 12px; border-left: 5px solid var(--orange); margin-bottom: 14px; }
.mp-mostread .mp-num { font: 800 30px/1 var(--serif); color: var(--orange); }
.mp-mostread .mp-num + .mp-body { }
.mp-mostread article { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.mp-mostread article:first-of-type { border-top: 0; }
.mp-mostread .mp-title { font-size: 16px; }
.mp-adbox { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 250px; background: repeating-linear-gradient(45deg, #f3f1ed, #f3f1ed 10px, #fff 10px, #fff 20px); color: var(--grey); font-weight: 600; }
.mp-adbox span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

/* Archive */
.mp-archive-head { border-bottom: 3px solid var(--black); padding-bottom: 14px; margin-bottom: 8px; }
.mp-archive-title { font: 800 34px var(--serif); }
.mp-archive-title::before { content: ''; display: inline-block; width: 14px; height: 30px; background: var(--orange); margin-right: 12px; vertical-align: -4px; }
.mp-archive-desc { color: var(--grey); margin-top: 8px; }
.navigation.pagination { margin-top: 30px; }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; }
.page-numbers.current, .page-numbers:hover { background: var(--black); color: #fff; border-color: var(--black); }

/* Single */
.mp-single-head { margin-bottom: 20px; }
.mp-single-title { font: 800 clamp(30px, 4vw, 46px)/1.15 var(--serif); margin: 6px 0 14px; }
.mp-meta { display: flex; gap: 18px; color: var(--grey); font-size: 14px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mp-single-img { margin: 0 0 24px; }
.mp-single-img img { width: 100%; }
.mp-single-img figcaption { font-size: 13px; color: var(--grey); padding-top: 8px; }
.mp-content { font-family: var(--serif); font-size: 19px; line-height: 1.75; }
.mp-content p { margin: 0 0 1.2em; }
.mp-content h2, .mp-content h3 { font-family: var(--serif); margin: 1.6em 0 .6em; }
.mp-content a { color: var(--orange-dark); text-decoration: underline; }
.mp-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--orange); font-size: 22px; font-style: italic; }
.mp-share { display: flex; gap: 10px; align-items: center; margin: 30px 0 10px; flex-wrap: wrap; }
.mp-share a { background: var(--black); color: #fff; padding: 8px 16px; font-size: 13px; font-weight: 700; border-radius: 3px; }
.mp-share a:hover { background: var(--orange); color: #fff; }
.mp-tags a { display: inline-block; background: var(--orange-soft); color: var(--orange-dark); padding: 4px 10px; margin: 0 6px 6px 0; font-size: 13px; font-weight: 600; }
.mp-single { margin-bottom: 44px; }

.mp-comments { margin-top: 20px; }
.mp-comment-list { list-style: none; padding: 0; }
.mp-comment-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 10px; border: 1px solid var(--line); font: inherit; }
.comment-form .submit, .mp-btn { background: var(--orange); color: #fff; border: 0; padding: 11px 22px; font: 700 14px var(--sans); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; display: inline-block; }
.comment-form .submit:hover, .mp-btn:hover { background: var(--black); color: #fff; }

.mp-404 { text-align: center; padding: 90px 20px; }
.mp-404-code { font: 800 120px/1 var(--serif); color: var(--orange); display: block; }
.mp-404 h1 { font: 800 32px var(--serif); margin: 10px 0; }
.mp-404 p { color: var(--grey); margin-bottom: 24px; }

/* Footer */
.mp-footer { background: var(--black); color: #cfcfcf; padding: 44px 0 20px; border-top: 5px solid var(--orange); }
.mp-footer-ads { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.mp-footer-ads img { max-height: 120px; width: auto; }
.mp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid #2a2a2a; }
.mp-footer-logo { display: inline-block; background: #fff; padding: 8px 12px; border-radius: 4px; }
.mp-footer-logo img { height: 64px; }
.mp-footer-brand p { margin: 14px 0 0; max-width: 420px; font-size: 14px; }
.mp-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; margin-bottom: 14px; }
.mp-footer-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.mp-footer-menu a:hover { color: var(--orange); }
.mp-copy { padding-top: 18px; font-size: 13px; color: #8a8a8a; }

/* Responsive */
@media (max-width: 1000px) {
  .mp-layout { grid-template-columns: 1fr; }
  .mp-hero-grid { grid-template-columns: 1fr; }
  .mp-focus { border-left: 0; padding-left: 0; }
  .mp-editors-grid { grid-template-columns: 1fr 1fr; }
  .mp-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .mp-date { display: none; }
  .mp-topbar-in { justify-content: flex-end; }
  .mp-search { display: none; }
  .mp-burger { display: block; }
  .mp-logo img { height: 56px; }
  .mp-nav { display: none; }
  .mp-nav.is-open { display: block; }
  .mp-menu { flex-direction: column; }
  .mp-menu .sub-menu { position: static; display: block; padding-left: 14px; }
  .mp-grid-3, .mp-editors-grid, .mp-cat-grid, .mp-footer-grid { grid-template-columns: 1fr; }
  .mp-cat-grid .mp-card { grid-row: auto; margin-bottom: 14px; }
  .mp-row { grid-template-columns: 120px 1fr; }
  .mp-row .mp-title { font-size: 16px; }
  .mp-ticker-label { font-size: 11px; padding: 9px 10px; }
  .mp-content { font-size: 18px; }
}
