/* === Light Mode Variables (site-light) === */
body.site-light {
  --ek-bg: #ffffff;
  --ek-fg: #1b1b1b;
  --ek-muted: #6b7280;
  --ek-accent: #0a9396;
  --ek-card: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  --ek-border: rgba(0,0,0,.08);
  --ek-shadow: 0 8px 24px rgba(0,0,0,.06);
  --ek-badge-bg: #eef2ff;
  --ek-badge-fg: #1e40af;
}

/* === Dark Mode Variables (site-dark) === */
body.site-dark {
  --ek-bg: transparent;
  --ek-fg: #f1f5f9;
  --ek-muted: #9ca3af;
  --ek-accent: #7cd2d6;
  --ek-card: transparent;
  --ek-border: rgba(255,255,255,0.1);
  --ek-shadow: none;
  --ek-badge-bg: rgba(255,255,255,0.1);
  --ek-badge-fg: #f3f4f6;
}

/* === Shared Styles === */
.ektsad-card {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  direction: rtl;
  text-align: right;
  background: var(--ek-card);
  color: var(--ek-fg);
  border: 1px solid var(--ek-border);
  border-radius: 14px;
  box-shadow: var(--ek-shadow);
  padding: 14px 16px;
  max-width: 320px;
  width: 100%;
  transition: all 0.3s ease-in-out;
}

.ektsad-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ek-accent);
  margin-bottom: 10px;
}

.ektsad-list { display: grid; gap: 8px; }

.ektsad-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--ek-border);
  padding-bottom: 6px;
}
.ektsad-row:last-child { border-bottom: 0; padding-bottom: 0; }

.ektsad-row__left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ektsad-row__right {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.ektsad-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--ek-muted);
  font-size: 12px;
}

/* === Button === */
.ektsad-btn {
  background: transparent;
  border: 1px solid var(--ek-border);
  color: var(--ek-fg);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: .2s ease;
}
.ektsad-btn:hover {
  border-color: var(--ek-accent);
  color: var(--ek-accent);
}

/* === Badge === */
.ektsad-badge {
  display: inline-block;
  min-width: 36px;
  text-align: center;
  background: var(--ek-badge-bg);
  color: var(--ek-badge-fg);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

/* === Flags / Icons === */
.ektsad-flag, .ektsad-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  background-size: cover;
  background-repeat: no-repeat;
}

/* === Mobile Minimal Mode === */
@media (max-width: 600px) {
  .ektsad-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 10px 12px !important;
    max-width: 100% !important;
    font-size: 13px !important;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
  }

  .ektsad-card__title {
    font-size: 14px !important;
    margin-bottom: 6px !important;
  }

  .ektsad-row__right {
    font-size: 13px !important;
  }

  .ektsad-row__left {
    gap: 4px !important;
  }

  .ektsad-meta {
    font-size: 11px !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ektsad-btn {
    display: none !important;
  }

  .ektsad-badge {
    min-width: 28px !important;
    font-size: 11px !important;
    padding: 1px 4px !important;
  }
}
