/*
Theme Name: Gazeta Pro News
Author: You
Version: 1.0
Text Domain: gazeta-pro-news
*/

/* =========================
   RESET / BASE
========================= */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
  background: #f6f7f9;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { text-decoration: none; }

:root{
  --container: 1180px;
  --gap: 16px;
  --card: #fff;
  --border: #e5e7eb;
  --muted: rgba(0,0,0,.65);
  --blue: #0b5ed7;
}

/* WordPress admin bar spacing */
body.admin-bar .site-header{ top: 32px; }
@media(max-width:782px){ body.admin-bar .site-header{ top: 46px; } }

/* =========================
   LAYOUT WRAPPERS
========================= */
.content{
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 14px 30px;
}

/* Useful utility */
.p{ padding: 14px; }

/* =========================
   CARDS
========================= */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.card img{
  border-radius: 14px 14px 0 0;
}

/* =========================
   TYPOGRAPHY
========================= */
.kicker{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.meta{
  font-size: 12px;
  color: var(--muted);
}
h1,h2,h3{ margin: 0; }
h3{
  font-size: 18px;
  line-height: 1.25;
}
@media(max-width:980px){ h3{ font-size: 17px; } }

/* =========================
   HEADER (logo + menu + search)
========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand{ display:flex; align-items:center; min-width: 230px; }
.brand .custom-logo-link{ display:inline-flex; align-items:center; }
.brand img.custom-logo{ max-height: 48px; width:auto; display:block; }

.site-title{
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .4px;
}

.main-nav{ flex: 1; min-width: 0; }
.main-nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav li{ margin:0; padding:0; }
.main-nav a{
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  color: #111;
  padding: 8px 2px;
}
.main-nav a:hover{ color: var(--blue); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a{
  border-bottom: 2px solid var(--blue);
}

.header-search form{ display:flex; align-items:center; gap:8px; }
.header-search input[type="search"]{
  height: 38px;
  border: 1px solid #d7dbe0;
  background: #fff;
  border-radius: 999px;
  padding: 0 12px;
  min-width: 240px;
  outline: none;
}
.header-search button{
  height: 38px;
  border: 1px solid #d7dbe0;
  background: #fff;
  border-radius: 999px;
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
}
.header-search button:hover{ border-color: #c9ced6; }

/* Mobile header behavior */
@media(max-width: 980px){
  .header-inner{ flex-wrap: wrap; }
  .header-search{ width: 100%; }
  .header-search form{ width: 100%; }
  .header-search input[type="search"]{ min-width: 0; width: 100%; flex: 1; }
}

/* =========================
   HERO TOP (main + side minis)
========================= */
.hero-top{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap);
  align-items: start;
  margin-bottom: 16px;
}
@media(max-width: 980px){
  .hero-top{ grid-template-columns: 1fr; }
}

.main-card{ overflow:hidden; }
.main-media{
  width:100%;
  display:block;
  max-height: 520px;
  object-fit: cover;
}
.main-card h1{
  font-size: 34px;
  line-height: 1.12;
  margin: 10px 0 8px;
}
@media(max-width: 980px){
  .main-card h1{ font-size: 28px; }
}
.excerpt{
  margin-top: 10px;
  color: rgba(0,0,0,.85);
  line-height: 1.65;
}

.side-card{ padding: 14px; }
.side-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.side-head h2{
  font-size: 14px;
  font-weight: 900;
  margin: 0;
  color:#111;
}
.side-head a{ color: var(--blue); font-weight: 800; font-size: 13px; text-decoration:none; }

.mini-2col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media(max-width: 560px){
  .mini-2col{ grid-template-columns: 1fr; }
}

.mini{
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.mini img{
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
}
.mini .b{ padding: 10px; }
.mini .t{
  display: block;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
}
.mini .t:hover{ color: var(--blue); }
.mini .meta{ margin-top: 6px; }

/* =========================
   HOME LAYOUT (poshtë: content + sidebar)
========================= */
.home-layout{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap);
  align-items: start;
}
@media(max-width: 980px){
  .home-layout{ grid-template-columns: 1fr; }
}

/* Sidebar widgets styling */
.home-sidebar .widget{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}
.home-sidebar .widget-title{
  font-weight: 900;
  margin-bottom: 10px;
}
.home-sidebar ul{
  margin: 0;
  padding-left: 18px;
}
.home-sidebar li{ margin: 6px 0; }

/* =========================
   SECTIONS (kategori blocks)
========================= */
.section{
  margin-top: 16px;
}
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}
.section-head h2{
  font-size: 16px;
  font-weight: 950;
}
.section-head a{
  font-size: 13px;
  font-weight: 900;
  color: var(--blue);
  text-decoration: none;
}

/* block: featured + list */
.block{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--gap);
  align-items:start;
}
@media(max-width: 980px){
  .block{ grid-template-columns: 1fr; }
}

.block-main{ overflow:hidden; }
.block-main img{
  width:100%;
  max-height: 320px;
  object-fit: cover;
  display:block;
}
.block-main h3{
  margin-top: 6px;
  font-size: 20px;
}
@media(max-width: 980px){ .block-main h3{ font-size: 18px; } }

.block-list{ padding: 12px; }
.item{
  display:flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f3;
  align-items: center;
}
.item:last-child{ border-bottom: none; }
.item img{
  width: 78px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}
.item .t{
  font-weight: 900;
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
  display:block;
}
.item .t:hover{ color: var(--blue); }

/* Orange section variant */
.section.orange{
  background: #f97316;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.05);
}
.section.orange .section-head h2,
.section.orange .section-head a,
.section.orange .kicker,
.section.orange .meta,
.section.orange a,
.section.orange h3,
.section.orange p{
  color: #fff !important;
}
.section.orange .card{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
}
.section.orange .item{ border-bottom-color: rgba(255,255,255,.15); }

/* =========================
   POSTS / SINGLE basic
========================= */
.entry-content{
  line-height: 1.8;
  color: rgba(0,0,0,.9);
}
.entry-content p{ margin: 0 0 14px; }

/* =========================
   FOOTER basic
========================= */
.site-footer{
  margin-top: 22px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.site-footer .footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 14px;
  color: rgba(0,0,0,.75);
  font-size: 13px;
}

/* =========================
   Small fixes
========================= */
.wp-caption{ max-width: 100%; }
.screen-reader-text{ position:absolute; left:-9999px; }
