﻿/*
 * 6Arshid Social Community — Search Results Stylesheet
 */

/* ── CSS vars (light defaults) ────────────────────────────────────────────── */
.arshid6social-search-wrap {
  --sr-bg:          transparent;
  --sr-card:        rgba(0,0,0,.03);
  --sr-card-hover:  rgba(0,0,0,.06);
  --sr-border:      #e2e8f0;
  --sr-text:        #0f172a;
  --sr-muted:       #64748b;
  --sr-input-bg:    #f1f5f9;
  --sr-badge-bg:    #eff6ff;
  --sr-badge-text:  var(--arshid6social-primary, #2563eb);
  --sr-price:       #16a34a;
  --sr-radius:      12px;
  --sr-radius-sm:   8px;
  --sr-radius-full: 999px;
}

/* Dark mode overrides — all mechanisms the theme uses */
[data-a6sc-theme="dark"]       .arshid6social-search-wrap,
[data-a6sc-theme="dim"]        .arshid6social-search-wrap,
[data-arshid6social-dark="true"]    .arshid6social-search-wrap,
body[data-arshid6social-dark="true"] .arshid6social-search-wrap {
  --sr-bg:         transparent;
  --sr-card:       #1e293b;
  --sr-card-hover: #263244;
  --sr-border:     #334155;
  --sr-text:       #f1f5f9;
  --sr-muted:      #94a3b8;
  --sr-input-bg:   #1e293b;
  --sr-badge-bg:   rgba(37,99,235,.25);
  --sr-badge-text: #93c5fd;
  --sr-price:      #4ade80;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-a6sc-theme="light"]) .arshid6social-search-wrap {
    --sr-bg:         transparent;
    --sr-card:       #1e293b;
    --sr-card-hover: #263244;
    --sr-border:     #334155;
    --sr-text:       #f1f5f9;
    --sr-muted:      #94a3b8;
    --sr-input-bg:   #1e293b;
    --sr-badge-bg:   rgba(37,99,235,.25);
    --sr-badge-text: #93c5fd;
    --sr-price:      #4ade80;
  }
}

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.arshid6social-search-wrap {
  font-family: var(--arshid6social-font, system-ui, sans-serif);
  color: var(--sr-text);
  background: var(--sr-bg);
}

/* ── Search form ──────────────────────────────────────────────────────────── */
.arshid6social-search-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sr-border);
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.arshid6social-search-form__input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--sr-border);
  border-radius: var(--sr-radius-full);
  font-size: 15px;
  background: var(--sr-input-bg);
  color: var(--sr-text);
  outline: none;
  transition: border-color .15s, background .15s;
}

.arshid6social-search-form__input::placeholder {
  color: var(--sr-muted);
}

.arshid6social-search-form__input:focus {
  border-color: var(--arshid6social-primary, #2563eb);
  background: var(--sr-card);
}

.arshid6social-search-form__btn {
  padding: 10px 20px;
  background: var(--arshid6social-primary, #2563eb);
  color: #fff;
  border: none;
  border-radius: var(--sr-radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
}

.arshid6social-search-form__btn:hover { opacity: .88; }

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.arshid6social-search-tabs {
  display: flex;
  border-bottom: 1px solid var(--sr-border);
  background: transparent;
  overflow-x: auto;
  scrollbar-width: none;
}

.arshid6social-search-tabs::-webkit-scrollbar { display: none; }

.arshid6social-search-tab {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sr-muted);
  border: none;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.arshid6social-search-tab:hover { color: var(--sr-text); }

.arshid6social-search-tab.is-active {
  color: var(--arshid6social-primary, #2563eb);
  border-bottom-color: var(--arshid6social-primary, #2563eb);
}

.arshid6social-search-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  background: var(--sr-input-bg);
  color: var(--sr-muted);
  border-radius: var(--sr-radius-full);
}

.arshid6social-search-tab.is-active .arshid6social-search-tab__count {
  background: var(--sr-badge-bg);
  color: var(--sr-badge-text);
}

/* ── Results body ─────────────────────────────────────────────────────────── */
.arshid6social-search-body { min-height: 200px; }

/* ── Section header ───────────────────────────────────────────────────────── */
.arshid6social-search-section {
  border-bottom: 1px solid var(--sr-border);
}

.arshid6social-search-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}

.arshid6social-search-section__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sr-muted);
}

.arshid6social-search-section__see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--arshid6social-primary, #2563eb);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--sr-radius-full);
  transition: background .15s;
}

.arshid6social-search-section__see-all:hover {
  background: var(--sr-badge-bg);
}

/* ── Activity item ────────────────────────────────────────────────────────── */
.arshid6social-search-activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sr-border);
  background: var(--sr-card);
  transition: background .15s;
}

.arshid6social-search-activity-item:last-child { border-bottom: none; }

.arshid6social-search-activity-item:hover { background: var(--sr-card-hover); }

.arshid6social-search-activity-item__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--sr-border);
}

.arshid6social-search-activity-item__body { flex: 1; min-width: 0; }

.arshid6social-search-activity-item__author {
  font-size: 14px;
  font-weight: 700;
  color: var(--sr-text);
  text-decoration: none;
}

.arshid6social-search-activity-item__author:hover { text-decoration: underline; }

.arshid6social-search-activity-item__content {
  font-size: 14px;
  color: var(--sr-muted);
  margin-top: 3px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.arshid6social-search-activity-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--sr-muted);
  margin-top: 6px;
}

.arshid6social-search-activity-item__link {
  font-size: 12px;
  font-weight: 600;
  color: var(--arshid6social-primary, #2563eb);
  text-decoration: none;
  padding: 3px 10px;
  border-radius: var(--sr-radius-full);
  border: 1px solid var(--sr-border);
  transition: background .15s, border-color .15s, color .15s;
}

.arshid6social-search-activity-item__link:hover {
  background: var(--sr-badge-bg);
  border-color: var(--arshid6social-primary, #2563eb);
}

/* ── Member item ──────────────────────────────────────────────────────────── */
.arshid6social-search-member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sr-border);
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}

.arshid6social-search-member-item:last-child { border-bottom: none; }
.arshid6social-search-member-item:hover { background: var(--sr-card-hover); }

.arshid6social-search-member-item__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--sr-border);
}

.arshid6social-search-member-item__info { flex: 1; min-width: 0; }

.arshid6social-search-member-item__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--sr-text);
  display: flex;
  align-items: center;
  gap: 5px;
}

.arshid6social-search-member-item__bio {
  font-size: 13px;
  color: var(--sr-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.arshid6social-search-member-item__badge {
  font-size: 12px;
  color: var(--sr-badge-text);
  background: var(--sr-badge-bg);
  padding: 1px 6px;
  border-radius: var(--sr-radius-full);
}

/* ── Group item ───────────────────────────────────────────────────────────── */
.arshid6social-search-group-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sr-border);
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}

.arshid6social-search-group-item:last-child { border-bottom: none; }
.arshid6social-search-group-item:hover { background: var(--sr-card-hover); }

.arshid6social-search-group-item__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--sr-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--sr-card);
  border: 1px solid var(--sr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  overflow: hidden;
}

.arshid6social-search-group-item__avatar img { width: 100%; height: 100%; object-fit: cover; }

.arshid6social-search-group-item__info { flex: 1; min-width: 0; }

.arshid6social-search-group-item__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--sr-text);
}

.arshid6social-search-group-item__meta {
  font-size: 13px;
  color: var(--sr-muted);
  margin-top: 2px;
}

/* ── Marketplace item ─────────────────────────────────────────────────────── */
.arshid6social-search-listing-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sr-border);
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}

.arshid6social-search-listing-item:last-child { border-bottom: none; }
.arshid6social-search-listing-item:hover { background: var(--sr-card-hover); }

.arshid6social-search-listing-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--sr-radius-sm);
  background: var(--sr-card);
  border: 1px solid var(--sr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.arshid6social-search-listing-item__info { flex: 1; min-width: 0; }

.arshid6social-search-listing-item__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--sr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arshid6social-search-listing-item__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--sr-price);
  margin-top: 2px;
}

.arshid6social-search-listing-item__meta {
  font-size: 12px;
  color: var(--sr-muted);
  margin-top: 2px;
}

/* ── Empty / error ────────────────────────────────────────────────────────── */
.arshid6social-search-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--sr-muted);
}

.arshid6social-search-empty__icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: .55;
}

.arshid6social-search-empty__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--sr-text);
  margin-bottom: 6px;
}

.arshid6social-search-empty__text {
  font-size: 14px;
  line-height: 1.5;
}

/* ── Skeleton ─────────────────────────────────────────────────────────────── */
.arshid6social-search-skeleton { padding: 12px 16px; }

.arshid6social-search-skeleton__row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
}

.arshid6social-search-skeleton__circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sr-border);
  flex-shrink: 0;
  animation: sr-shimmer 1.4s ease-in-out infinite;
}

.arshid6social-search-skeleton__lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arshid6social-search-skeleton__line {
  height: 12px;
  border-radius: 6px;
  background: var(--sr-border);
  animation: sr-shimmer 1.4s ease-in-out infinite;
}

.arshid6social-search-skeleton__line--short  { width: 40%; }
.arshid6social-search-skeleton__line--medium { width: 70%; }

@keyframes sr-shimmer {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

/* ── Pagination ───────────────────────────────────────────────────────────── */
.arshid6social-search-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  border-top: 1px solid var(--sr-border);
  flex-wrap: wrap;
}

.arshid6social-search-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid var(--sr-border);
  border-radius: var(--sr-radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--sr-text);
  background: var(--sr-card);
  cursor: pointer;
  transition: all .15s;
}

.arshid6social-search-page-btn:hover:not(:disabled) {
  border-color: var(--arshid6social-primary, #2563eb);
  color: var(--arshid6social-primary, #2563eb);
  background: var(--sr-badge-bg);
}

.arshid6social-search-page-btn.is-active {
  background: var(--arshid6social-primary, #2563eb);
  border-color: var(--arshid6social-primary, #2563eb);
  color: #fff;
}

.arshid6social-search-page-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

/* ── Load more ────────────────────────────────────────────────────────────── */
.arshid6social-search-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-top: 1px solid var(--sr-border);
}

.arshid6social-search-load-more__btn {
  padding: 10px 28px;
  border: 1.5px solid var(--arshid6social-primary, #2563eb);
  border-radius: var(--sr-radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--arshid6social-primary, #2563eb);
  background: transparent;
  cursor: pointer;
  transition: all .15s;
}

.arshid6social-search-load-more__btn:hover {
  background: var(--arshid6social-primary, #2563eb);
  color: #fff;
}

.arshid6social-search-load-more__btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
