/**
 * /assets/css/site.css
 * -----------------------------------------------------------------------------
 * Global styling only (shared by index + profile + others)
 * -----------------------------------------------------------------------------
 */

:root{
  --radius-lg: 14px;
  --radius-md: 12px;
  --border: #e8e8e8;
  --muted: #666;
}

/* Small SEO header blocks */
.seo-text h1 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.card { overflow: hidden; }

/* Navbar online pill */
.online-pill {
  padding: 6px 10px;
  border: 1px solid #e7e7e7;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: #222;
}

/* Optional: per-page count text */
.models-count {
  font-size: 13px;
  color: var(--muted);
}

/* Flags (flagcdn) */
.flag-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flag-icon {
  display: inline-block;
  vertical-align: middle;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  background: #f2f2f2;
}

/* Mini grids (shared by profile widgets: related + region blocks) */
.mini-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) { .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .mini-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Mini card v2 (shared) */
.mini-card2 {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
  color: inherit;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.mini-card2:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.mini-thumb { position: relative; background: #f3f3f3; }
.mini-thumb img { width: 100%; height: 140px; object-fit: cover; display: block; }
.mini-badge { position: absolute; top: 8px; left: 8px; }
.mini-meta { padding: 8px 10px 10px; }
.mini-name {
  font-weight: 600;
  font-size: 13px;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-line {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Top Countries (includes/top-countries.php) — 6 columns like screenshot
   ========================================================================== */

.top-countries-card .card-body { padding-bottom: 14px; }

.top-countries-head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.top-countries-title{
  margin:0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.top-countries-globe{ font-size: 1.2rem; }

/* Exactly the “long list in columns” style */
.top-countries-columns{
  column-gap: 36px;

  /* mobile defaults */
  column-count: 2;
  margin-top: 8px;
}

/* sm */
@media (min-width: 576px){
  .top-countries-columns{ column-count: 3; }
}
/* md */
@media (min-width: 768px){
  .top-countries-columns{ column-count: 4; }
}
/* lg+ => MUST be 6 columns (your requirement) */
@media (min-width: 992px){
  .top-countries-columns{ column-count: 6; }
}

/* Each country entry */
.top-country-link{
  break-inside: avoid;
  -webkit-column-break-inside: avoid;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  width: 100%;
  padding: 6px 8px;
  border-radius: 10px;

  text-decoration: none;
  color: #0b5ed7;
}

.top-country-link:hover{
  background: rgba(0,0,0,.03);
  text-decoration: underline;
}

.top-country-link.is-current{
  background: rgba(13,110,253,.08);
  box-shadow: inset 0 0 0 1px rgba(13,110,253,.15);
  text-decoration: none;
}

.top-country-flag{
  display:inline-flex;
  align-items:center;
  flex: 0 0 auto;
}

.top-country-name{
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.top-country-count{
  color:#666;
  font-weight: 600;
  margin-left: 2px;
}

/* Tip strip */
.top-countries-tip{
  margin-top: 12px;
  border: 1px dashed #e2e2e2;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fafafa;
  font-size: 13px;
  color: #444;
}

.top-countries-tip a{ text-decoration: none; font-weight: 700; }
.top-countries-tip a:hover{ text-decoration: underline; }
