/* تصميم زجاجي لصفحة الإنتاج العلمي - جامعة التراث */
.uot-research-stats {
  --uot-primary: #1a3b8e;
  --uot-accent: #c9a55a;
  --uot-text: #1e293b;
  --uot-text-light: #64748b;
  --uot-border: rgba(255, 255, 255, 0.5);
  --uot-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
  --uot-shadow-hover: 0 16px 48px rgba(31, 38, 135, 0.15);
  font-family: inherit;
  color: var(--uot-text);
  position: relative;
  padding: 40px 20px;
  margin: 0 auto;
  max-width: 1300px;
}

.uot-research-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(26, 59, 142, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(201, 165, 90, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
}

.uot-research-stats > * { position: relative; z-index: 1; }

.uot-hero { text-align: center; margin-bottom: 50px; }
.uot-hero .uot-subtitle {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--uot-primary) 0%, var(--uot-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.uot-hero .uot-tagline {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--uot-text-light);
  font-weight: 500;
  margin: 0 0 10px;
}
.uot-hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--uot-text-light);
  margin: 0 0 8px;
  font-weight: 500;
}

.uot-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.uot-live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: uotPulse 1.6s ease-in-out infinite;
}

@keyframes uotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.uot-glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--uot-border);
  border-radius: 24px;
  box-shadow: var(--uot-shadow);
  padding: 30px;
  transition: all 0.4s ease;
}

.uot-main-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) { .uot-main-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .uot-main-stats { grid-template-columns: 1fr; } }

.uot-stat-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--uot-border);
  border-radius: 24px;
  box-shadow: var(--uot-shadow);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.uot-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--uot-card-color, #3b82f6) 0%, transparent 100%);
  opacity: 0.06;
  z-index: -1;
}

.uot-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--uot-shadow-hover);
  background: rgba(255, 255, 255, 0.85);
}

.uot-stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--uot-card-color), color-mix(in srgb, var(--uot-card-color) 65%, white));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 24px var(--uot-card-color-soft, rgba(59,130,246,0.3)),
              inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
}

.uot-stat-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.uot-stat-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.2;
  position: relative;
  z-index: 1;
}

.uot-stat-number {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: var(--uot-card-color, var(--uot-primary));
  line-height: 1;
  margin-bottom: 8px;
  font-feature-settings: "tnum";
  letter-spacing: -1px;
}

.uot-stat-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--uot-text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.uot-stat-sublabel {
  font-size: 12px;
  color: var(--uot-text-light);
  font-weight: 500;
}

.uot-stat-card.publications  { --uot-card-color: #3b82f6; --uot-card-color-soft: rgba(59,130,246,0.25); }
.uot-stat-card.hindex        { --uot-card-color: #c9a55a; --uot-card-color-soft: rgba(201,165,90,0.25); }
.uot-stat-card.citations     { --uot-card-color: #10b981; --uot-card-color-soft: rgba(16,185,129,0.25); }
.uot-stat-card.avg           { --uot-card-color: #ec4899; --uot-card-color-soft: rgba(236,72,153,0.25); }

.uot-section-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--uot-primary);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.uot-section-title::before {
  content: '';
  display: block;
  width: 5px;
  height: 28px;
  background: linear-gradient(135deg, var(--uot-primary), var(--uot-accent));
  border-radius: 3px;
}

.uot-two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 968px) { .uot-two-col { grid-template-columns: 1fr; } }

.uot-yearly-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 260px;
  gap: 12px;
  padding: 30px 0 50px;
  position: relative;
}

.uot-year-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.uot-year-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--uot-accent) 0%, var(--uot-primary) 100%);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -2px 12px rgba(26, 59, 142, 0.2);
  position: relative;
  transition: height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 4px;
}

.uot-year-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 50%);
  border-radius: 12px 12px 0 0;
}

.uot-year-bar-value {
  position: absolute;
  top: -28px;
  font-weight: 800;
  color: var(--uot-primary);
  font-size: 16px;
}

.uot-year-bar-label {
  color: var(--uot-text-light);
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

.uot-country-list { display: flex; flex-direction: column; gap: 10px; }

.uot-country-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  transition: all 0.25s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.uot-country-item:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(-4px);
}

.uot-country-flag {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, rgba(26, 59, 142, 0.08), rgba(201, 165, 90, 0.08));
  border: 1px solid rgba(26, 59, 142, 0.1);
  box-shadow: 0 2px 8px rgba(31, 38, 135, 0.05);
  flex-shrink: 0;
}
.uot-country-info { flex-grow: 1; }
.uot-country-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--uot-text);
}
.uot-country-name-en {
  font-size: 11px;
  color: var(--uot-text-light);
  font-family: -apple-system, sans-serif;
}
.uot-country-count {
  font-size: 22px;
  font-weight: 800;
  color: var(--uot-accent);
  min-width: 50px;
  text-align: center;
  font-feature-settings: "tnum";
}

.uot-publications-list { display: flex; flex-direction: column; gap: 14px; }

.uot-pub-item {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.uot-pub-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: var(--uot-shadow);
}

.uot-pub-content { min-width: 0; }
.uot-pub-title {
  font-weight: 700;
  color: var(--uot-text);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.uot-pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--uot-text-light);
}

.uot-pub-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.uot-pub-meta svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
  flex-shrink: 0;
  color: var(--uot-primary);
  opacity: 0.7;
}

.uot-pub-citations {
  background: linear-gradient(135deg, var(--uot-primary), #3b82f6);
  color: white;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 18px;
  text-align: center;
  min-width: 70px;
  box-shadow: 0 4px 16px rgba(26, 59, 142, 0.25);
  font-feature-settings: "tnum";
}

.uot-pub-citations small {
  display: block;
  font-size: 9px;
  opacity: 0.85;
  font-weight: 500;
  margin-top: 2px;
}

.uot-secondary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.uot-small-stat {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--uot-border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.uot-small-stat:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-3px);
  box-shadow: var(--uot-shadow);
}

.uot-small-stat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--uot-primary), var(--uot-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(26, 59, 142, 0.2),
              inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
}

.uot-small-stat-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.uot-small-stat-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
  position: relative;
  z-index: 1;
}

.uot-small-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--uot-primary);
  font-feature-settings: "tnum";
}

.uot-small-stat-num small {
  font-size: 13px;
  color: var(--uot-accent);
  font-weight: 700;
  margin-right: 4px;
}

.uot-small-stat-label {
  font-size: 12px;
  color: var(--uot-text-light);
  margin-top: 4px;
  font-weight: 600;
}

.uot-stats-footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  color: var(--uot-text-light);
  font-size: 13px;
}

.uot-last-update {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.7;
  font-family: -apple-system, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.uot-last-update svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.uot-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--uot-text-light);
  grid-column: 1 / -1;
}

.uot-loading-mini {
  text-align: center;
  padding: 30px 16px;
  color: var(--uot-text-light);
  font-size: 14px;
  margin: 0;
}

.uot-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(26, 59, 142, 0.1);
  border-top-color: var(--uot-primary);
  border-radius: 50%;
  animation: uotSpin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes uotSpin {
  to { transform: rotate(360deg); }
}
