/* =============================================================================
   Discover Users Page — artinfoland
   ============================================================================= */

/* ── Page wrapper ────────────────────────────────────────────────────────────── */

.disc-page {
    background: #f5f0e8;
    min-height: 70vh;
}

.disc-container { max-width: 1200px; }


/* ── Heading ─────────────────────────────────────────────────────────────────── */

.disc-heading__title {
    font-size: 2rem;
    font-weight: 800;
    color: #0e0c0a;
    margin-bottom: 8px;
}

.disc-heading__sub {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0;
}


/* ── Filters bar ─────────────────────────────────────────────────────────────── */

.disc-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.05);
}


/* ── Role tabs ───────────────────────────────────────────────────────────────── */

.disc-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
    flex: 1 1 auto;
}
.disc-tabs::-webkit-scrollbar { display: none; }

.disc-tab {
    background: none;
    border: 1px solid transparent;
    padding: 7px 18px;
    border-radius: 50rem;
    font-size: 13.5px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
}
.disc-tab:hover {
    background: #ede7da;
    color: #0e0c0a;
}
.disc-tab.active {
    background: #0e0c0a;
    color: #fff;
    border-color: #0e0c0a;
}


/* ── Search ──────────────────────────────────────────────────────────────────── */

.disc-search-wrap {
    position: relative;
    flex: 0 0 220px;
}

.disc-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 13px;
    pointer-events: none;
}

.disc-search-input {
    width: 100%;
    padding: 8px 14px 8px 34px;
    border: 1px solid #e5e0d8;
    border-radius: 50rem;
    font-size: 13.5px;
    background: #f5f0e8;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.disc-search-input:focus {
    border-color: #0e0c0a;
    box-shadow: 0 0 0 3px rgba(14,12,10,.08);
    background: #fff;
}


/* ── Results count ───────────────────────────────────────────────────────────── */

.disc-count {
    font-size: 13px;
    color: #6c757d;
}
.disc-count span {
    font-weight: 700;
    color: #0e0c0a;
}


/* ── Grid ────────────────────────────────────────────────────────────────────── */

.disc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}


/* ── User card ───────────────────────────────────────────────────────────────── */

.disc-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.05);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    box-shadow: 0 4px 12px rgba(0,0,0,.03);
}
.disc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    border-color: rgba(0,0,0,.08);
}

.disc-card__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 14px;
}


/* ── Avatar ──────────────────────────────────────────────────────────────────── */

.disc-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f5f0e8;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.disc-avatar--initials {
    background: #0e0c0a;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ── Name ────────────────────────────────────────────────────────────────────── */

.disc-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #0e0c0a;
    margin-bottom: 8px;
    line-height: 1.3;
}


/* ── Field badge ─────────────────────────────────────────────────────────────── */

.disc-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50rem;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}
.disc-badge--artist    { background: #e8f4fd; color: #0066aa; }
.disc-badge--curator   { background: #fdf4e8; color: #a06010; }
.disc-badge--writer    { background: #edf8f0; color: #1a7a40; }
.disc-badge--organizer { background: #f5ecff; color: #6a28c0; }


/* ── Statement excerpt ───────────────────────────────────────────────────────── */

.disc-card__statement {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 12px;
}


/* ── Discipline tags ─────────────────────────────────────────────────────────── */

.disc-card__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.disc-tag {
    background: #f5f0e8;
    color: #555;
    border-radius: 50rem;
    font-size: 11.5px;
    padding: 3px 10px;
    font-weight: 500;
}


/* ── Location ────────────────────────────────────────────────────────────────── */

.disc-card__location {
    font-size: 12.5px;
    color: #888;
    margin-bottom: 20px;
}
.disc-card__location i {
    color: #d9534f;
    margin-right: 4px;
    opacity: .8;
}


/* ── View Profile button ─────────────────────────────────────────────────────── */

.disc-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #0e0c0a;
    color: #fff;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: opacity .2s;
    margin-top: auto;
}
.disc-btn:hover { opacity: .82; color: #fff; text-decoration: none; }


/* ── Empty state ─────────────────────────────────────────────────────────────── */

.disc-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}
.disc-empty p { margin-top: 12px; font-size: 15px; }


/* ── Load More button ────────────────────────────────────────────────────────── */

.disc-load-more {
    background: none;
    border: 2px solid #0e0c0a;
    color: #0e0c0a;
    padding: 12px 48px;
    border-radius: 50rem;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.disc-load-more:hover {
    background: #0e0c0a;
    color: #fff;
}
.disc-load-more.loading {
    opacity: .6;
    pointer-events: none;
}


/* ── Loading spinner ─────────────────────────────────────────────────────────── */

.disc-spinner {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 32px;
}
.disc-spinner__dot {
    width: 10px;
    height: 10px;
    background: #0e0c0a;
    border-radius: 50%;
    animation: disc-bounce 1.2s infinite ease-in-out both;
}
.disc-spinner__dot:nth-child(1) { animation-delay: -.32s; }
.disc-spinner__dot:nth-child(2) { animation-delay: -.16s; }

@keyframes disc-bounce {
    0%, 80%, 100% { transform: scale(0); opacity: .4; }
    40%           { transform: scale(1); opacity: 1; }
}


/* ── Responsive ──────────────────────────────────────────────────────────────── */

@media (max-width: 576px) {
    .disc-filters { flex-direction: column; align-items: stretch; }
    .disc-search-wrap { flex: 1 1 auto; }
    .disc-heading__title { font-size: 1.5rem; }
    .disc-grid { grid-template-columns: 1fr; }
}
