@font-face {
font-family: NeoSansArabic;
src: url(https://staging.k00ra.live/wp-content/themes/midan/assets/NeoSansArabic.woff2) format('woff2');
font-style: normal;
font-weight: 100 900;
font-display: swap;
}
:root {
color-scheme: light;
--page: #eceef2;
--header: #fff;
--panel: #fff;
--card: #eceef2;
--head: #eceef2;
--text: #000;
--muted: #344154;
--line: #ddd;
--button: #263545;
--accent: #931800;
--shadow: 0 0 5px #0003;
}
:root[data-theme='dark'] {
color-scheme: dark;
--page: #1c2733;
--header: #263545;
--panel: #263545;
--card: #1c2733;
--head: #121a23;
--text: #fff;
--muted: #edf1f5;
--line: #2b3b4d;
--button: #1c2733;
--shadow: 0 0 5px #0002;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--page); color: var(--text); font: 1rem/1.5 NeoSansArabic, Arial, sans-serif; }
body.admin-bar { min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px)); min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px)); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #2584ff; outline-offset: 4px; }
.site-width { width: min(1024px, calc(100% - 24px)); margin-inline: auto; }
.site-header { flex-shrink: 0; background: var(--header); box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 85px; padding-block: 8px; }
.site-identity { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 1 200px; max-width: 45vw; min-height: 65px; padding: 5px; color: #fff; border-radius: 8px; background: var(--accent); font-size: 1.875rem; line-height: 1.3; overflow-wrap: anywhere; }
.image-identity { background: transparent; padding: 0; }
.image-identity img { object-fit: contain; max-height: 70px; width: auto; }
.header-logo-dark, [data-theme='dark'] .header-logo-light { display: none; }
[data-theme='dark'] .header-logo-dark { display: block; }
.primary-nav { flex: 1; }
.main-menu, .footer-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.main-menu { font-size: 1.0625rem; }
.main-menu li { position: relative; }
.main-menu .sub-menu { position: absolute; display: none; z-index: 20; min-width: 180px; margin: 0; padding: 14px; list-style: none; background: var(--header); box-shadow: var(--shadow); }
.main-menu li:hover > .sub-menu, .main-menu li:focus-within > .sub-menu { display: block; }
.header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-inline-start: auto; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; width: 35px; height: 35px; padding: 0; border: 0; border-radius: 8px; background: var(--button); color: #fff; font-weight: 700; font-size: .875rem; line-height: 1; }
.theme-toggle { font-family: Arial, sans-serif; font-size: 1.625rem; }
.language-toggle { font-family: Arial, sans-serif; font-size: 1.125rem; font-weight: 700; }
.theme-toggle .sun, [data-theme='dark'] .theme-toggle .moon { display: none; }
[data-theme='dark'] .theme-toggle .sun { display: inline; }
.social-telegram { background: #21a1da; }
.social-youtube { background: #d91419; }
.social-facebook { background: #1877f2; font-family: Arial, sans-serif; font-size: 1.5rem; }
.social-x { background: #000; font-family: Arial, sans-serif; font-size: 1.375rem; }
.main-content { flex: 1 0 auto; min-height: 0; padding-block: 25px 20px; }
.fixture-block, .news-block, .content-panel { overflow: hidden; margin-block: 0 20px; border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
.block-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; min-height: 54px; padding: 12px; background: var(--head); border-bottom: 1px solid var(--line); }
.fixture-block .block-head { justify-content: flex-end; }
.block-head h2:not(.screen-reader-text) { display: inline-block; margin: 0; padding: 4px 10px; border-radius: 8px; color: #fff; background: var(--accent); font-size: 1rem; font-weight: 500; }
.day-nav { display: flex; gap: 7px; flex-wrap: wrap; }
.day-nav a { padding: 4px 10px 5px; min-height: 30px; border-radius: 8px; color: #fff; background: #104783; font-size: .9375rem; }
.day-nav .day-today { background: #931800; }
.day-nav .day-tomorrow { background: #af5100; }
.day-label-short { display: none; }
.day-nav a[aria-current='page'] { box-shadow: inset 0 0 0 2px #fff; font-weight: 700; }
@media (max-width: 600px) {
.day-nav .day-label-full { display: none; }
.day-nav .day-label-short { display: inline; white-space: nowrap; }
}
.matches-list { padding: 12px; display: grid; gap: 12px; }
.match-card { position: relative; border-radius: 8px; overflow: hidden; background: var(--card); }
@media (max-height: 960px) {
.matches-list > .match-card:nth-child(n + 7) { content-visibility: auto; contain-intrinsic-block-size: auto 131px; }
}
.match-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; min-height: 96px; padding: 10px 24px; }
.match-team { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 1rem; line-height: 1.5; }
.team-logo { flex: 0 0 50px; width: 50px; height: 50px; object-fit: contain; }
.team-name { flex: 1; min-width: 0; max-width: 100%; text-align: center; }
.away-team { flex-direction: row-reverse; }
.match-data { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.match-data time, .match-score { font-size: 1.125rem; line-height: 1.5; white-space: nowrap; }
.match-data time { direction: ltr; unicode-bidi: isolate; }
.match-status { display: inline-block; padding: 2px 10px; min-height: 25px; color: #fff; background: #263545; border-radius: 8px; font-size: .875rem; white-space: nowrap; }
.is-finished .match-status { background: #474747; }
.is-live .match-status { background: #ad0b0e; }
.is-soon .match-status { background: #16703c; }
.is-halftime .match-status { background: #af5100; }
.match-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 5px; min-height: 35px; border-top: 1px solid var(--line); list-style: none; text-align: center; align-items: center; gap: 10px; font-size: .875rem; }
.team-name, .match-info li { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.match-link { position: absolute; inset: 0; border-radius: 8px; }
.match-card:has(.match-link:hover) { box-shadow: inset 0 0 0 2px var(--line); }
.no-matches { text-align: center; padding-block: 25px; }
.news-grid { padding: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.news-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; }
.news-grid h3 { font-size: 1.2rem; margin-block: 10px; }
.content-heading { padding: 22px 36px; border-bottom: 1px solid var(--line); background: var(--head); }
.content-heading h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.7; }
.page-heading { padding-block: 14px; }
.page-heading h1 { font-size: clamp(1.125rem, 1rem + .55vw, 1.375rem); line-height: 1.55; overflow-wrap: anywhere; }
.page-description-preview {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
overflow: hidden;
overflow-wrap: anywhere;
margin: 16px clamp(18px, 4vw, 32px) 0;
color: var(--muted);
line-height: 1.85;
}
.page-description-preview:has(+ .page-description[open]) { display: none; }
.page-description { display: flex; flex-direction: column; }
.page-description::details-content { order: -1; }
.page-description-toggle { width: fit-content; align-self: center; margin: 12px 18px 16px; padding: 6px 14px; background: var(--button); color: #fff; border-radius: 8px; cursor: pointer; }
.page-description > .entry-content { padding-block: 12px 0; }
.page-description:not([open]) .page-description-collapse,
.page-description[open] .page-description-expand { display: none; }
.entry-content { padding: 28px 32px; color: var(--muted); font-size: 1rem; line-height: 1.95; overflow-wrap: anywhere; }
.entry-content h2, .entry-content h3 { color: var(--muted); border-inline-start: 5px solid currentColor; padding-inline-start: 20px; line-height: 1.7; margin-block: 28px 16px; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content p { margin-block: 18px; }
.entry-content a { color: #245bd5; text-decoration: underline; }
[data-theme='dark'] .entry-content a { color: #8fbbff; }
.entry-content li::marker { color: #245bd5; }
.entry-content .match-card { color: var(--text); margin-block: 18px; }
.entry-content .match-link { color: inherit; }
.site-footer { flex-shrink: 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; min-height: 90px; padding-block: 20px; }
.footer-inner p { margin: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1000px) {
.header-inner { gap: 20px; flex-wrap: wrap; }
.site-identity { flex-basis: 200px; font-size: 1.875rem; }
.header-actions { margin-inline-start: auto; }
.primary-nav { order: 3; flex-basis: 100%; }
.match-main { padding-inline: 20px; grid-template-columns: 1fr 130px 1fr; }
.match-team { gap: 12px; font-size: 1rem; }
.team-logo { width: 50px; height: 50px; flex-basis: 50px; }
.news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
body { font-size: .875rem; }
.site-width { width: calc(100% - 20px); }
.header-inner { min-height: 78px; gap: 12px; }
.site-identity { min-height: 54px; flex: 1 1 130px; padding: 6px 10px; font-size: 1.25rem; }
.image-identity { padding: 0; }
.image-identity img { max-height: 58px; }
.header-actions { gap: 5px; }
.icon-button { width: 36px; height: 36px; border-radius: 8px; font-size: .875rem; }
.theme-toggle { font-size: 1.625rem; }
.language-toggle { font-size: 1rem; }
.primary-nav .midan-schedule-nav-item,
.primary-nav:not(:has(.main-menu > li:not(.midan-schedule-nav-item))) { display: none; }
.main-menu { gap: 14px; font-size: .875rem; }
.main-content { padding-top: 20px; }
.block-head { padding: 10px 8px; gap: 10px; }
.block-head h2 { font-size: 1rem; }
.day-nav { width: 100%; gap: 5px; }
.day-nav a { flex: 1; padding: 5px; min-height: 32px; text-align: center; font-size: .875rem; }
.matches-list { padding: 8px; gap: 10px; }
.matches-list > .match-card:nth-child(n + 7) { contain-intrinsic-block-size: auto 144px; }
.match-main { min-height: 112px; grid-template-columns: 1fr 84px 1fr; padding: 10px 8px; gap: 3px; }
.match-team, .away-team { flex-direction: column; gap: 6px; font-size: .875rem; }
.team-logo { width: 48px; height: 48px; flex-basis: auto; }
.match-data time, .match-score { font-size: 1.125rem; }
.match-status { padding: 2px 8px; min-height: 24px; font-size: .8125rem; }
.match-info { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px 8px; font-size: .75rem; gap: 8px; min-height: 32px; }
.match-round { display: none; }
.content-heading { padding: 16px; }
.content-heading h1 { font-size: 1.25rem; }
.page-heading { padding-block: 12px; }
.page-heading h1 { font-size: 1.0625rem; }
.entry-content { padding: 18px 16px; font-size: .9375rem; line-height: 1.85; }
.entry-content h1 { font-size: 1.25rem; }
.entry-content h2, .entry-content h3 { padding-inline-start: 12px; margin-block: 22px 12px; }
.entry-content h2 { font-size: 1.125rem; }
.entry-content h3 { font-size: 1rem; }
.entry-content p { margin-block: 14px; }
.page-description-toggle { font-size: .875rem; }
.footer-menu { gap: 14px; font-size: .875rem; }
.news-grid { padding: 12px; gap: 12px; }
.news-grid h3 { font-size: .9375rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }