/*
Theme Name: Kora Al Youm
Theme URI: https://example.com/kora-al-youm
Author: Kora Al Youm
Author URI: https://example.com
Description: قالب عربي RTL لمدونة كرة قدم ومركز مباريات وتذاكر، بهوية كحلية وبيضاء ولمسات برتقالية.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kora-al-youm
Tags: rtl-language-support, custom-logo, featured-images, translation-ready, blog, news
*/

:root {
  --fb-navy: #061a35;
  --fb-ink: #102945;
  --fb-blue: #0d3970;
  --fb-sky: #eaf2f8;
  --fb-line: #d9e2eb;
  --fb-orange: #f26a21;
  --fb-orange-dark: #d95313;
  --fb-muted: #718096;
  --fb-bg: #eef3f7;
  --fb-white: #fff;
  --fb-radius: 16px;
  --fb-shadow: 0 12px 30px rgba(8, 34, 66, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fb-bg);
  color: var(--fb-ink);
  font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  line-height: 1.6;
}
body.admin-bar .fb-sticky-header { top: 32px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: #000;
  display: block;
  font-size: 14px;
  height: auto;
  left: 6px;
  padding: 15px 23px 14px;
  top: 7px;
  width: auto;
  z-index: 100000;
}

.fb-topbar { background: var(--fb-navy); color: #9bb5cc; font-size: 12px; }
.fb-topbar__inner, .fb-header__inner, .fb-ticker__inner, .fb-shell {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}
.fb-topbar__inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.fb-topbar strong { color: #fff; }
.fb-topbar__links { display: flex; gap: 22px; }
.fb-topbar__links a { color: #b6c8d9; text-decoration: none; }
.fb-topbar__links a:hover { color: #fff; }
.fb-sticky-header { background: #fff; border-bottom: 1px solid var(--fb-line); position: relative; z-index: 20; }
.fb-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-block: 16px 13px; }
.fb-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 215px; color: var(--fb-navy); text-decoration: none; }
.fb-brand__badge { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--fb-navy); color: #fff; position: relative; transform: skew(-6deg); }
.fb-brand__badge::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.fb-brand__badge span { font-size: 19px; font-weight: 800; position: relative; z-index: 1; }
.fb-brand strong { display: block; font-family: "Changa", Tahoma, sans-serif; font-size: 23px; line-height: 1; }
.fb-brand small { color: var(--fb-orange); font-size: 10px; font-weight: 700; }
.fb-primary-nav { display: flex; align-items: center; gap: 22px; white-space: nowrap; font-size: 13px; font-weight: 700; }
.fb-primary-nav a { color: #41566b; text-decoration: none; }
.fb-primary-nav a:hover, .fb-primary-nav .current-menu-item > a { color: var(--fb-orange); }
.fb-header__actions { display: flex; align-items: center; gap: 8px; }
.fb-icon-button { width: 36px; height: 36px; padding: 0; border: 1px solid var(--fb-line); border-radius: 9px; background: #fff; color: var(--fb-ink); display: grid; place-items: center; cursor: pointer; }
.fb-icon-button:hover { background: var(--fb-sky); }
.fb-menu-button { display: none; }
.fb-mobile-nav { display: none; padding: 0 24px 17px; }
.fb-mobile-nav.is-open { display: grid; gap: 10px; }
.fb-mobile-nav a { color: var(--fb-ink); text-decoration: none; font-weight: 700; }
.fb-ticker { background: #f8fbfd; border-bottom: 1px solid var(--fb-line); }
.fb-ticker__inner { min-height: 42px; display: flex; align-items: center; gap: 16px; font-size: 12px; }
.fb-live { color: var(--fb-orange); font-weight: 800; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.fb-live::before { content: ""; width: 7px; height: 7px; background: var(--fb-orange); border-radius: 50%; box-shadow: 0 0 0 4px #fde9df; }
.fb-ticker__text { color: #526579; padding-inline: 16px 0; border-inline-start: 1px solid var(--fb-line); }
.fb-shell { padding-bottom: 45px; }

.fb-hero-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .9fr); gap: 24px; margin-top: 25px; }
.fb-hero { min-height: 380px; border-radius: 18px; overflow: hidden; position: relative; color: #fff; padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; box-shadow: 0 13px 30px rgba(8,34,66,.12); background-color: var(--fb-navy); background-size: cover; background-position: center; }
.fb-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(145deg, rgba(6,26,53,.22), rgba(6,26,53,.9)), radial-gradient(circle at 72% 20%, rgba(242,106,33,.65) 0 2%, transparent 3%), linear-gradient(110deg, #061a35 0%, #0b3767 53%, #082242 100%); }
.fb-hero__content { position: relative; z-index: 1; }
.fb-kicker { display: inline-flex; align-items: center; gap: 8px; color: #ffc29d; font-size: 12px; font-weight: 800; margin-bottom: 13px; }
.fb-kicker::before { content: ""; width: 25px; height: 2px; background: var(--fb-orange); }
.fb-hero h1 { max-width: 680px; margin: 0 0 13px; color: #fff; font-family: "Changa", Tahoma, sans-serif; font-size: clamp(27px, 3vw, 38px); line-height: 1.38; letter-spacing: -.5px; }
.fb-hero p { max-width: 590px; color: #c4d6e6; font-size: 14px; margin: 0 0 21px; }
.fb-hero__footer { max-width: 660px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.fb-button, .fb-read-more { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 8px; padding: 10px 17px; cursor: pointer; text-decoration: none; font-weight: 800; transition: transform .2s, background .2s; }
.fb-button:hover, .fb-read-more:hover { transform: translateY(-2px); }
.fb-button--orange, .fb-read-more { background: var(--fb-orange); color: #fff; }
.fb-button--orange:hover, .fb-read-more:hover { background: #ff7d39; }
.fb-hero__time { color: #aac0d3; font-size: 11px; }
.fb-panel { background: #fff; border-radius: var(--fb-radius); padding: 19px; box-shadow: var(--fb-shadow); }
.fb-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.fb-section-heading h2, .fb-section-title h2 { margin: 0; color: var(--fb-navy); font: 600 20px/1.35 "Changa", Tahoma, sans-serif; }
.fb-more { color: var(--fb-orange); font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.fb-more:hover { color: var(--fb-orange-dark); }
.fb-most-read__item { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf1f5; }
.fb-most-read__item:last-child { padding-bottom: 0; border-bottom: 0; }
.fb-art { min-height: 58px; border-radius: 9px; overflow: hidden; background: linear-gradient(135deg, #173f73, #8da4b8); background-size: cover; background-position: center; position: relative; }
.fb-art::after { content: ""; position: absolute; width: 45px; height: 45px; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; left: -8px; bottom: -16px; }
.fb-art--orange { background: linear-gradient(135deg, #ef6d2a, #863e28); }
.fb-art--green { background: linear-gradient(135deg, #164c54, #83a96c); }
.fb-art--violet { background: linear-gradient(135deg, #42266d, #aa6a87); }
.fb-most-read__item h3 { color: #18344e; font-size: 12.5px; line-height: 1.55; margin: 0 0 4px; }
.fb-meta, .fb-post-card time { color: var(--fb-muted); font-size: 10px; }

.fb-section { margin-top: 28px; }
.fb-section-title { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.fb-section-title::before { content: ""; width: 5px; height: 25px; background: var(--fb-orange); border-radius: 3px; }
.fb-section-title .fb-more { margin-inline-start: auto; }
.fb-post-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 15px; }
.fb-post-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--fb-shadow); transition: transform .25s, box-shadow .25s; }
.fb-post-card:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(8,34,66,.14); }
.fb-post-card--featured { grid-row: span 2; }
.fb-post-card__art { min-height: 130px; position: relative; background: linear-gradient(120deg, #0d396d, #62a2c4); background-size: cover; background-position: center; }
.fb-post-card--featured .fb-post-card__art { min-height: 200px; background: linear-gradient(145deg, #102a50, #d47e48 90%); }
.fb-post-card__art::after { content: ""; position: absolute; right: 15%; top: 18%; width: 83px; height: 83px; border: 2px solid rgba(255,255,255,.6); border-radius: 50%; box-shadow: 0 0 0 13px rgba(255,255,255,.08); }
.fb-post-card__badge { position: absolute; top: 12px; right: 12px; z-index: 1; border-radius: 5px; padding: 4px 8px; background: rgba(6,26,53,.85); color: #fff; font-size: 9px; font-weight: 700; }
.fb-post-card__body { padding: 14px 15px 16px; }
.fb-post-card__category { color: var(--fb-orange); font-size: 10px; font-weight: 800; }
.fb-post-card h3 { margin: 7px 0; color: #16334e; font-size: 14px; line-height: 1.55; }
.fb-post-card--featured h3 { font-size: 17px; }
.fb-post-card time { display: flex; align-items: center; gap: 5px; }

.fb-lower-grid { display: grid; grid-template-columns: 1.4fr .85fr; gap: 24px; align-items: start; }
.fb-tabs { display: flex; gap: 7px; }
.fb-tab { border: 0; border-radius: 7px; padding: 7px 10px; background: #f0f5f8; color: #66798a; cursor: pointer; font-size: 11px; }
.fb-tab.is-active, .fb-tab:hover { background: var(--fb-navy); color: #fff; }
.fb-matches[data-day="yesterday"], .fb-matches[data-day="tomorrow"] { display: none; }
.fb-match { display: grid; grid-template-columns: 1fr 100px 1fr; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid #edf1f5; }
.fb-match:first-child { border-top: 0; }
.fb-match__league { grid-column: 1/-1; color: #8a99a8; font-size: 10px; margin-bottom: -4px; }
.fb-match__team { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; }
.fb-match__team--home { justify-content: flex-end; }
.fb-mark { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #dce8f0; color: #183a5d; font-size: 10px; font-weight: 800; }
.fb-mark--orange { background: #fff0e9; color: var(--fb-orange); }
.fb-match__score { color: var(--fb-navy); text-align: center; font: 700 18px/1.1 "Changa", Tahoma, sans-serif; }
.fb-match__status { display: block; margin-top: 4px; color: var(--fb-orange); font: 400 9px/1.3 "IBM Plex Sans Arabic", Tahoma, sans-serif; }
.fb-side-stack { display: grid; gap: 17px; }
.fb-standing__row { display: grid; grid-template-columns: 25px 1fr 35px 35px; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid #edf1f5; font-size: 12px; }
.fb-standing__row:last-child { border-bottom: 0; }
.fb-standing__pos { color: var(--fb-orange); font-weight: 800; }
.fb-standing__points { font-weight: 800; }
.fb-ticket-card { position: relative; overflow: hidden; padding: 20px; border-radius: var(--fb-radius); background: var(--fb-orange); color: #fff; }
.fb-ticket-card::after { content: ""; position: absolute; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; left: -60px; bottom: -80px; box-shadow: 0 0 0 17px rgba(255,255,255,.08); }
.fb-ticket-card h2 { margin: 0 0 5px; font: 600 20px/1.35 "Changa", Tahoma, sans-serif; }
.fb-ticket-card p { margin: 0 0 15px; color: #ffe3d4; font-size: 11px; }
.fb-ticket-card .fb-button { position: relative; z-index: 1; background: #fff; color: var(--fb-orange); font-size: 11px; padding: 9px 13px; }
.fb-ticket-card .fb-button:hover { background: #fff8f4; }
.fb-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; padding: 23px 26px; border-radius: 15px; background: var(--fb-navy); color: #b5c8d9; font-size: 11px; }
.fb-footer strong { color: #fff; font: 600 17px "Changa", Tahoma, sans-serif; }
.fb-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.fb-footer a { text-decoration: none; }
.fb-footer a:hover { color: #fff; }
.fb-search-panel { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(6,26,53,.92); padding: 14vh 24px; }
.fb-search-panel.is-open { display: block; }
.fb-search-panel__inner { max-width: 650px; margin: auto; }
.fb-search-panel form { display: flex; gap: 8px; }
.fb-search-panel input { width: 100%; min-height: 52px; border: 0; border-radius: 10px; padding: 0 17px; }
.fb-search-panel .fb-icon-button { background: #fff; }
.fb-search-panel__close { margin-bottom: 20px; color: #fff; }
.fb-empty { padding: 28px; border-radius: 12px; background: #fff; color: var(--fb-muted); text-align: center; }
.fb-single { max-width: 920px; margin-inline: auto; }
.fb-single h1 { margin: 0 0 22px; color: var(--fb-navy); font: 600 clamp(28px, 4vw, 44px)/1.35 "Changa", Tahoma, sans-serif; }
.fb-single__meta { margin-bottom: 12px; color: var(--fb-orange); font-size: 12px; font-weight: 700; }
.fb-single__meta a { text-decoration: none; }
.fb-single__image { margin: 0 -19px 24px; }
.fb-single__image img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.fb-entry-content { color: #334c63; font-size: 16px; line-height: 2; }
.fb-entry-content a { color: var(--fb-orange-dark); }
.fb-entry-content h2, .fb-entry-content h3 { color: var(--fb-navy); font-family: "Changa", Tahoma, sans-serif; }
.fb-comments { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--fb-line); }
.fb-comments__title { color: var(--fb-navy); font: 600 21px "Changa", Tahoma, sans-serif; }
.fb-comments__list { padding: 0; list-style-position: inside; }
.fb-comments__list article { padding: 14px; border-bottom: 1px solid var(--fb-line); }
.fb-comments .comment-form-comment textarea, .fb-comments input[type="text"], .fb-comments input[type="email"], .fb-comments input[type="url"] { width: 100%; max-width: 100%; border: 1px solid var(--fb-line); border-radius: 8px; padding: 10px; background: #fff; }
.fb-comments label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; }
.fb-comments .form-submit { margin-bottom: 0; }
.widget-title { margin-top: 0; color: var(--fb-navy); font: 600 19px "Changa", Tahoma, sans-serif; }
.fb-footer .menu { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.fb-footer .menu a { text-decoration: none; }
.fb-button--orange { border: 0; }

@media (max-width: 900px) {
  .fb-primary-nav { display: none; }
  .fb-menu-button { display: grid; }
  .fb-hero-grid, .fb-lower-grid { grid-template-columns: 1fr; }
  .fb-side-stack { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .fb-topbar__inner, .fb-header__inner, .fb-ticker__inner, .fb-shell { padding-inline: 14px; }
  .fb-topbar__links { display: none; }
  .fb-brand { min-width: auto; }
  .fb-brand strong { font-size: 19px; }
  .fb-hero { min-height: 405px; padding: 24px; }
  .fb-hero__footer { align-items: flex-start; flex-direction: column; }
  .fb-post-grid { grid-template-columns: 1fr 1fr; }
  .fb-post-card--featured { grid-column: 1/-1; grid-row: auto; }
  .fb-post-card--featured .fb-post-card__art { min-height: 160px; }
  .fb-side-stack { grid-template-columns: 1fr; }
  .fb-footer { align-items: flex-start; flex-direction: column; }
  .fb-single__image { margin-inline: -14px; }
}