/*
Theme Name: Talib Iraq
Theme URI: https://student.basrawe.com/
Author: Basrawe
Author URI: https://basrawe.com/
Description: قالب خفيف ومخصص لمنصة طالب العراق، مستقل عن القالب الإخباري ومهيأ لواجهات دليل الطالب العراقي.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: talib-iraq
*/

:root {
  --ti-bg: #f6f8fb;
  --ti-surface: #ffffff;
  --ti-text: #172033;
  --ti-muted: #667085;
  --ti-border: #e4e9f0;
  --ti-primary: #0d5368;
  --ti-primary-dark: #083e4f;
  --ti-accent: #f0a93b;
  --ti-radius: 18px;
  --ti-shadow: 0 12px 34px rgba(16, 32, 48, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ti-bg);
  color: var(--ti-text);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.75;
  direction: rtl;
}
a { color: var(--ti-primary); text-decoration: none; }
a:hover { color: var(--ti-primary-dark); }
img { max-width: 100%; height: auto; }

.ti-container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.ti-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--ti-border);
  backdrop-filter: blur(12px);
}
.admin-bar .ti-site-header { top: 32px; }
.ti-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ti-brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.ti-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ti-primary), #167b91);
  color: white;
  font-size: 21px;
  box-shadow: 0 8px 20px rgba(13,83,104,.18);
}
.ti-brand-title { margin: 0; font-size: 21px; font-weight: 800; color: var(--ti-text); line-height: 1.25; }
.ti-brand-subtitle { display: block; color: var(--ti-muted); font-size: 11px; margin-top: 2px; }

.ti-nav { display: flex; align-items: center; gap: 6px; }
.ti-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 12px;
  border-radius: 10px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}
.ti-nav a:hover, .ti-nav .current-menu-item > a { background: #eef6f8; color: var(--ti-primary); }
.ti-nav-cta a { background: var(--ti-primary); color: white !important; }
.ti-nav-cta a:hover { background: var(--ti-primary-dark); }

.ti-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ti-border);
  background: white;
  border-radius: 11px;
  cursor: pointer;
  font-size: 21px;
}

.ti-main { min-height: calc(100vh - 150px); padding: 38px 0 64px; }
.ti-content-shell {
  background: var(--ti-surface);
  border: 1px solid var(--ti-border);
  border-radius: 24px;
  box-shadow: var(--ti-shadow);
  padding: clamp(18px, 3vw, 40px);
}
.ti-content-shell.ti-home-shell { background: transparent; border: 0; box-shadow: none; padding: 0; }
.ti-page-title { margin: 0 0 24px; font-size: clamp(28px, 4vw, 46px); line-height: 1.25; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }

.ti-site-footer {
  background: #0d2630;
  color: #dbe7eb;
  padding: 34px 0;
  margin-top: 30px;
}
.ti-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ti-footer-brand { font-weight: 800; font-size: 18px; color: white; }
.ti-footer-note { color: #a9c0c8; font-size: 13px; margin-top: 4px; }
.ti-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.ti-footer-links a { color: #dbe7eb; font-size: 13px; }

.ti-not-found { text-align: center; padding: 90px 20px; }
.ti-not-found-code { font-size: clamp(72px, 14vw, 150px); line-height: 1; font-weight: 900; color: var(--ti-primary); }
.ti-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  background: var(--ti-primary);
  color: white;
  border-radius: 12px;
  font-weight: 800;
}
.ti-button:hover { color: white; background: var(--ti-primary-dark); }

/* تحسين توافق واجهة الإضافة */
.isg-wrap, .isg-app, .isg-home { max-width: 100% !important; }
.isg-hero { border-radius: 24px !important; overflow: hidden; }

@media (max-width: 900px) {
  .admin-bar .ti-site-header { top: 46px; }
  .ti-menu-toggle { display: inline-grid; place-items: center; }
  .ti-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    inset-inline: 0;
    background: white;
    border-bottom: 1px solid var(--ti-border);
    padding: 12px 16px 18px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 16px 30px rgba(16,32,48,.10);
  }
  .ti-nav.is-open { display: flex; }
  .ti-nav a { justify-content: center; }
  .ti-footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .ti-container { width: min(100% - 20px, 1180px); }
  .ti-brand-subtitle { display: none; }
  .ti-main { padding-top: 20px; }
  .ti-content-shell { border-radius: 18px; padding: 16px; }
}
