/* ==========================================================================
   Template 2 — Research Collaborators (networks.php) Styles
   ========================================================================== */

:root {
    --navy-darkest: #03142a;
    --navy-darker:  #041a38;
    --navy-dark:    #06234b;
    --teal-bright:  #00d2d3;
    --gold-soft:    #fbbf24;
    --white:        #ffffff;
    --bg-page:      #f0f4f8;
    --card-bg:      #ffffff;
    --card-border:  #e2e8f0;
    --text-dark:    #0f294a;
    --text-muted:   #64748b;
    --text-body:    #334155;
    --teal-primary: #0d9488;
    --radius-card:  14px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: clip; }

body {
    font-family: 'Poppins', 'Outfit', sans-serif;
    background: var(--bg-page);
    color: var(--text-body);
}

.container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.net-hero-banner {
    position: relative;
    min-height: 230px;
    background-color: var(--navy-dark);
    background-image:
        linear-gradient(to right, rgba(3, 20, 42, 0.94) 0%, rgba(6, 35, 75, 0.82) 48%, rgba(6, 35, 75, 0.25) 100%),
        url('../images/networks_banner.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 45px 0 55px;
    overflow: hidden;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1);
}

.net-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.net-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.net-breadcrumb a {
    color: var(--teal-bright);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.net-breadcrumb a:hover { text-decoration: underline; }
.net-breadcrumb span   { color: rgba(255,255,255,0.7); }

.net-hero-title {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.net-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Stat Pills */
.net-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.net-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,210,211,0.15);
    border: 1px solid rgba(0,210,211,0.3);
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 13.5px;
    color: var(--white);
    font-weight: 500;
    backdrop-filter: blur(6px);
    white-space: nowrap;
}

.net-stat-pill i    { color: var(--gold-soft); font-size: 15px; }
.net-stat-pill strong { color: var(--teal-bright); font-weight: 700; }

/* ==========================================================================
   MAIN / TOPBAR / SEARCH
   ========================================================================== */
.net-main {
    padding: 48px 0 80px;
}

.net-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.net-topbar-info h2 {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 4px;
}

.net-topbar-info p { font-size: 0.92rem; color: var(--text-muted); }

/* Search */
.net-search-box {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.net-search-box .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.net-search-input {
    width: 100%;
    height: 46px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0 42px 0 46px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-family: inherit;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.net-search-input:focus {
    outline: none;
    border-color: var(--teal-primary);
    box-shadow: 0 0 0 4px rgba(13,148,136,0.12);
}

.net-search-input::placeholder { color: #94a3b8; }

.net-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.05rem;
    cursor: pointer;
    display: none;
    padding: 4px;
    border-radius: 50%;
    line-height: 1;
    transition: color 0.2s;
}

.net-search-clear:hover { color: #475569; }
.net-search-clear.visible { display: block; }

/* ==========================================================================
   GRID
   ========================================================================== */
.net-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* ==========================================================================
   CARD
   ========================================================================== */
.net-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 24px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: fadeUp 0.35s ease both;
}

.net-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    border-color: #bfdbfe;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Avatar */
.net-avatar-wrap {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    position: relative;
}

.net-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    background: #f1f5f9;
    display: block;
}

.net-avatar-fallback {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
}

/* Info */
.net-info { flex: 1; min-width: 0; }

.net-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a4fa0;
    line-height: 1.35;
    margin-bottom: 3px;
}

.net-spec {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 12px;
    line-height: 1.4;
}

.net-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 6px;
    font-size: 0.83rem;
    color: #475569;
    line-height: 1.45;
}

.net-meta-row:last-child { margin-bottom: 0; }

.net-meta-icon {
    color: #0d9488;
    font-size: 0.8rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Empty / No results */
.net-empty,
.net-no-results {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 70px 20px;
    color: #94a3b8;
    gap: 12px;
    grid-column: 1 / -1;
}

.net-empty      { display: flex; }
.net-no-results.visible { display: flex; }

.net-empty i,
.net-no-results i { font-size: 44px; opacity: 0.3; }

.net-no-results h3 { font-size: 1.1rem; color: #475569; font-weight: 600; }
.net-no-results p  { font-size: 0.9rem; }

.net-no-results button {
    background: none;
    border: none;
    color: var(--teal-primary);
    font-weight: 600;
    cursor: pointer;
    font-size: inherit;
    text-decoration: underline;
    padding: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .net-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .net-hero-title  { font-size: 2rem; }
    .net-hero-banner {
        background-image:
            linear-gradient(to bottom, rgba(3,20,42,0.97) 0%, rgba(4,26,56,0.93) 100%),
            url('../images/networks_banner.jpg');
    }

    .net-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .net-search-box { max-width: 100%; }
}

@media (max-width: 600px) {
    .net-grid { grid-template-columns: 1fr; }

    .net-hero-title  { font-size: 1.7rem; }

    .net-stat-pill {
        font-size: 12.5px;
        padding: 6px 14px;
    }

    .net-card {
        padding: 18px 16px;
        gap: 14px;
    }

    .net-avatar,
    .net-avatar-fallback { width: 60px; height: 60px; }
    .net-avatar-wrap      { width: 60px; height: 60px; }
    .net-avatar-fallback  { font-size: 1.3rem; }

    .net-main { padding: 32px 0 56px; }
}
