/*
Theme Name: ImBlaugrana Report
Theme URI: https://imblaugrana.com/
Author: Codex
Description: A professional sports-news WordPress theme for ImBlaugrana with compact navigation, story feeds, mobile drawer menus, configurable footer areas, and no live-score modules.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: imblaugrana-report
*/

:root {
  --ibr-bg: #f4f5f7;
  --ibr-surface: #ffffff;
  --ibr-text: #0b0d10;
  --ibr-muted: #68717d;
  --ibr-line: #d8dde4;
  --ibr-header: #050505;
  --ibr-header-text: #ffffff;
  --ibr-accent: #a50044;
  --ibr-accent-2: #004d98;
  --ibr-max: 1180px;
  --ibr-radius: 6px;
  --ibr-shadow: 0 1px 0 rgba(0, 0, 0, .08);
  --ibr-body-font: Arial, Helvetica, sans-serif;
  --ibr-display-font: "Arial Black", Impact, Haettenschweiler, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ibr-bg);
  color: var(--ibr-text);
  font-family: var(--ibr-body-font);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ibr-accent); }
img { display: block; max-width: 100%; height: auto; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ibr-container {
  width: min(var(--ibr-max), calc(100% - 32px));
  margin: 0 auto;
}

.ibr-topbar {
  background: #151515;
  color: #b7bdc5;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ibr-topbar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ibr-topbar__links,
.ibr-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ibr-social .ibr-social-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #d9dee6;
  background: rgba(255, 255, 255, .08);
}

.ibr-social .ibr-social-icon:hover {
  color: #fff;
  background: var(--ibr-accent);
}

.ibr-social .ibr-social-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.ibr-topbar a:hover { color: #fff; }

.ibr-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ibr-header);
  color: var(--ibr-header-text);
  box-shadow: var(--ibr-shadow);
}

.ibr-header__main {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.ibr-menu-button,
.ibr-search-button,
.ibr-drawer-close {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.ibr-menu-button:hover,
.ibr-search-button:hover,
.ibr-drawer-close:hover { background: rgba(255, 255, 255, .12); }

.ibr-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ibr-brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  min-width: 0;
}

.ibr-brand img {
  width: auto;
  max-height: min(var(--ibr-logo-height, 34px), 34px);
  object-fit: contain;
}

.ibr-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.ibr-tabs {
  background: #fff;
  color: #14171a;
  border-bottom: 1px solid var(--ibr-line);
}

.ibr-tabs__scroller {
  overflow-x: auto;
  scrollbar-width: none;
}

.ibr-tabs__scroller::-webkit-scrollbar { display: none; }

.ibr-tabs ul {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ibr-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 43px;
  padding: 0 16px;
  border-right: 1px solid #edf0f3;
  font-size: 12px;
  font-family: var(--ibr-display-font);
  font-weight: 900;
  text-transform: uppercase;
}

.ibr-tabs a:hover,
.ibr-tabs .current-menu-item > a,
.ibr-tabs .current_page_item > a {
  color: var(--ibr-accent);
  box-shadow: inset 0 -3px 0 var(--ibr-accent);
}

.ibr-breaking {
  background: #fff;
  border-bottom: 1px solid var(--ibr-line);
}

.ibr-breaking__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  overflow: hidden;
}

.ibr-breaking__label {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 3px;
  background: var(--ibr-accent);
  color: #fff;
  font-size: 11px;
  font-family: var(--ibr-display-font);
  font-weight: 900;
  text-transform: uppercase;
}

.ibr-breaking__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-family: var(--ibr-display-font);
  font-weight: 900;
}

.ibr-main {
  padding: 0 0 34px;
}

.ibr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.ibr-card {
  overflow: hidden;
  background: var(--ibr-surface);
  border: 1px solid var(--ibr-line);
  border-radius: var(--ibr-radius);
}

.ibr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--ibr-accent);
  font-size: 11px;
  font-family: var(--ibr-display-font);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ibr-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.08;
  font-family: var(--ibr-display-font);
  font-weight: 900;
}

.ibr-meta {
  margin-top: 10px;
  color: var(--ibr-muted);
  font-size: 12px;
  font-family: var(--ibr-display-font);
  font-weight: 900;
  text-transform: uppercase;
}

.ibr-side-stack {
  display: grid;
  gap: 16px;
}

.ibr-highlight-section {
  position: relative;
  margin: 18px 0 18px;
  padding: 26px 0 30px;
  background:
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, .08) 1px, transparent 1.8px),
    #f0f1f4;
  background-size: 8px 8px;
  border-bottom: 1px solid var(--ibr-line);
}

.ibr-highlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.ibr-highlight-head h1 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1;
  font-family: var(--ibr-display-font);
  font-weight: 950;
}

.ibr-highlight-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ibr-highlight-controls button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid #a9adb6;
  border-radius: 14px;
  background: transparent;
  color: #111318;
  cursor: pointer;
}

.ibr-highlight-controls button:hover {
  background: #fff;
  border-color: #111318;
}

.ibr-highlight-rail {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.ibr-highlight-rail::-webkit-scrollbar { display: none; }

.ibr-card--highlight {
  flex: 0 0 calc((100% - 78px) / 4);
  min-width: 250px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  scroll-snap-align: start;
}

.ibr-card--highlight .ibr-card__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #d9dde4;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.ibr-card--highlight .ibr-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ibr-card--highlight .ibr-card__body {
  padding: 14px 0 0;
}

.ibr-card--highlight .ibr-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: var(--ibr-display-font);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.02;
  font-weight: 900;
}

.ibr-card--compact {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 122px;
}

.ibr-card--compact .ibr-card__image img,
.ibr-card--grid .ibr-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ibr-card--compact .ibr-card__image { min-height: 122px; background: #d9dde4; }
.ibr-card--compact .ibr-card__body { padding: 12px; }
.ibr-card--compact .ibr-title { font-size: 15px; }

.ibr-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 16px;
  border-bottom: 4px solid #101114;
}

.ibr-section-head h2 {
  display: inline-flex;
  margin: 0;
  padding: 8px 12px 7px;
  background: #101114;
  color: #fff;
  font-size: 14px;
  font-family: var(--ibr-display-font);
  font-weight: 950;
  text-transform: uppercase;
}

.ibr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ibr-home-posts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.ibr-home-posts .ibr-card {
  min-width: 0;
}

.ibr-card--grid .ibr-card__image {
  aspect-ratio: 16 / 10;
  background: #d9dde4;
}

.ibr-card--grid {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.ibr-card--grid .ibr-card__image {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.ibr-card--grid .ibr-card__body { padding: 12px 0 0; }
.ibr-card--grid .ibr-kicker,
.ibr-card--grid .ibr-meta { display: none; }
.ibr-card--grid .ibr-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.02;
}

.ibr-list {
  display: grid;
  gap: 12px;
}

.ibr-list .ibr-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.ibr-list .ibr-card__image {
  min-height: 138px;
  background: #d9dde4;
}

.ibr-list .ibr-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ibr-list .ibr-card__body { padding: 16px; }
.ibr-list .ibr-title { font-size: 22px; }

.ibr-excerpt {
  margin: 10px 0 0;
  color: #4f5964;
  font-size: 14px;
}

.ibr-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 130px;
}

.ibr-widget {
  background: var(--ibr-surface);
  border: 1px solid var(--ibr-line);
  border-radius: var(--ibr-radius);
  padding: 16px;
}

.ibr-widget h2,
.ibr-widget .wp-block-heading {
  margin: -16px -16px 14px;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--ibr-line);
  background: #101114;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-family: var(--ibr-display-font);
  font-weight: 950;
  text-transform: uppercase;
}

.ibr-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ibr-widget li + li {
  margin-top: 0;
  border-top: 1px solid #edf0f3;
}

.ibr-widget a {
  display: block;
  padding: 10px 0;
  color: #14171a;
  font-family: var(--ibr-display-font);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 900;
}

.ibr-widget a:hover {
  color: var(--ibr-accent);
}

.ibr-search-panel {
  display: none;
  background: #101114;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

.ibr-search-panel.is-open { display: block; }

.ibr-search-panel form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
}

.ibr-search-panel input[type="search"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  padding: 0 18px;
  font: inherit;
  outline: none;
}

.ibr-search-panel input[type="search"]::placeholder {
  color: #b8bec7;
}

.ibr-search-panel input[type="search"]:focus {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .12);
}

.ibr-search-panel button,
.ibr-button {
  flex: 0 0 auto;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  background: var(--ibr-accent);
  color: #fff;
  font-family: var(--ibr-display-font);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.ibr-search-panel button:hover,
.ibr-button:hover {
  background: #c90055;
}

.ibr-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.ibr-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--ibr-line);
  border-radius: var(--ibr-radius);
  background: #fff;
  font-family: var(--ibr-display-font);
  font-weight: 900;
}

.ibr-pagination .current {
  background: #111;
  color: #fff;
}

.ibr-article {
  background: var(--ibr-surface);
  border: 1px solid var(--ibr-line);
  border-radius: var(--ibr-radius);
  padding: clamp(18px, 4vw, 34px);
}

.ibr-article h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  font-weight: 950;
}

.ibr-article__image {
  margin: 22px -1px;
  border-radius: var(--ibr-radius);
  overflow: hidden;
}

.ibr-content {
  font-size: 18px;
  line-height: 1.72;
}

.ibr-content a { color: var(--ibr-accent-2); font-weight: 800; }
.ibr-content h2, .ibr-content h3 { line-height: 1.15; }

.ibr-footer {
  background: #050505;
  color: #fff;
  border-top: 4px solid var(--ibr-accent);
}

.ibr-footer__top {
  display: grid;
  gap: 34px;
  justify-items: center;
  padding: 46px 0 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.ibr-footer__intro {
  display: grid;
  gap: 16px;
  align-content: start;
}

.ibr-footer__brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
}

.ibr-footer__brand img {
  max-height: 46px;
  width: auto;
}

.ibr-footer__tagline {
  margin: 0;
  color: #b7bdc5;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.ibr-footer__intro {
  justify-items: center;
  text-align: center;
}

.ibr-footer__menus {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: clamp(28px, 6vw, 80px);
  width: min(840px, 100%);
}

.ibr-footer__menus section {
  min-width: 0;
  text-align: center;
}

.ibr-footer h3 {
  margin: 0 0 12px;
  color: #b7bdc5;
  font-size: 12px;
  font-family: var(--ibr-display-font);
  font-weight: 950;
  text-transform: uppercase;
}

.ibr-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ibr-footer li + li { margin-top: 10px; }
.ibr-footer a {
  color: #fff;
  font-size: 14px;
  font-family: var(--ibr-display-font);
  font-weight: 900;
}
.ibr-footer a:hover { color: #f3c4d8; }

.ibr-footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ibr-footer__social a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.ibr-footer__social a:hover {
  border-color: rgba(255, 255, 255, .45);
  background: var(--ibr-accent);
  color: #fff;
}

.ibr-footer__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ibr-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: #aeb5bf;
  font-size: 12px;
  font-weight: 800;
}

.ibr-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.ibr-drawer__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .58);
  opacity: 0;
  transition: opacity .2s ease;
}

.ibr-drawer__panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(360px, 88vw);
  background: #0b0b0c;
  color: #fff;
  transform: translateX(-101%);
  transition: transform .24s ease;
  display: flex;
  flex-direction: column;
}

.ibr-drawer.is-open { pointer-events: auto; }
.ibr-drawer.is-open .ibr-drawer__shade { opacity: 1; }
.ibr-drawer.is-open .ibr-drawer__panel { transform: translateX(0); }

.ibr-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.ibr-drawer__body {
  overflow-y: auto;
  padding: 8px 20px 26px;
}

.ibr-mobile-menu,
.ibr-mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ibr-mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 16px;
  font-family: var(--ibr-display-font);
  font-weight: 950;
  text-transform: uppercase;
}

.ibr-mobile-menu ul a {
  padding-left: 16px;
  color: #cbd1d8;
  font-size: 13px;
}

.ibr-drawer__social {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ibr-drawer__social .ibr-social-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.ibr-drawer__social .ibr-social-icon:hover {
  background: var(--ibr-accent);
  color: #fff;
}

.ibr-drawer__social .ibr-social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ibr-no-results {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--ibr-line);
  border-radius: var(--ibr-radius);
}

@media (max-width: 1020px) {
  .ibr-layout,
  .ibr-footer__top {
    grid-template-columns: 1fr;
  }

  .ibr-sidebar { position: static; }
  .ibr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ibr-home-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ibr-highlight-rail {
    gap: 20px;
  }
  .ibr-card--highlight { flex-basis: min(48vw, 420px); }
}

@media (max-width: 720px) {
  .ibr-container { width: min(100% - 24px, var(--ibr-max)); }
  .ibr-topbar { display: none; }
  .ibr-header__main { min-height: 60px; gap: 10px; }
  .ibr-tabs a { min-height: 40px; padding: 0 13px; font-size: 11px; }
  .ibr-main { padding-top: 0; }
  .ibr-breaking__inner { min-height: 40px; }
  .ibr-search-panel form {
    padding: 12px 0;
    gap: 8px;
  }
  .ibr-search-panel input[type="search"] {
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
  }
  .ibr-search-panel button {
    min-height: 44px;
    padding: 0 14px;
    font-size: 12px;
  }
  .ibr-highlight-section {
    margin: 14px 0 14px;
    padding: 20px 0 22px;
  }
  .ibr-highlight-head { margin-bottom: 16px; }
  .ibr-highlight-controls { display: none; }
  .ibr-highlight-rail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding-right: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .ibr-card--highlight {
    flex: none;
    min-width: 0;
    scroll-snap-align: none;
  }
  .ibr-card--highlight .ibr-card__image { border-radius: 12px; }
  .ibr-card--highlight .ibr-title { font-size: 23px; }
  .ibr-card--compact,
  .ibr-list .ibr-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .ibr-grid { grid-template-columns: 1fr; }
  .ibr-home-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 4px;
  }
  .ibr-home-posts::-webkit-scrollbar { display: none; }
  .ibr-home-posts .ibr-card {
    flex: none;
    min-width: 0;
    scroll-snap-align: none;
  }
  .ibr-card--grid .ibr-card__image { border-radius: 12px; }
  .ibr-card--grid .ibr-title { font-size: 23px; }
  .ibr-list .ibr-title { font-size: 17px; }
  .ibr-excerpt { display: none; }
  .ibr-footer__top {
    gap: 28px;
    padding: 34px 0 24px;
  }
  .ibr-footer__menus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
  }
  .ibr-footer h3 { margin-bottom: 10px; }
  .ibr-footer li + li { margin-top: 9px; }
  .ibr-footer a { font-size: 13px; }
  .ibr-footer__bottom {
    flex-direction: column;
    gap: 6px;
  }
}
