﻿/* ─── Palette ──────────────────────────────────── */
:root {
    --ndg-sand:   #c9a84c;
    --ndg-rust:   #b5451b;
    --ndg-dark:   #1a1204;
    --ndg-mid:    #2d1b00;
    --ndg-light:  #f8f4ef;
    --ndg-border: #e8ddd0;
}

body {
    background-color: var(--ndg-light);
    color: #2c2c2c;
}

/* ─── Hero ─────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    /* CSS gradient fallback + hero photo overlay */
    background:
        linear-gradient(to bottom, rgba(26,18,4,.45) 0%, rgba(45,27,0,.78) 100%),
        url('/assets/images/hero.png') center 35% / cover no-repeat;
    background-color: var(--ndg-mid);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-eyebrow {
    font-size: .8rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--ndg-sand);
    margin-bottom: .5rem;
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-sub {
    color: rgba(255,255,255,.75);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 2rem;
}

/* Search bar */
.hero-search-form {
    max-width: 540px;
    margin: 0 auto 1.25rem;
}
.hero-search-inner {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
    padding: 4px 4px 4px 18px;
}
.hero-search-icon {
    color: #aaa;
    font-size: 1rem;
    margin-right: 8px;
    flex-shrink: 0;
}
.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: #2c2c2c;
    min-width: 0;
}
.hero-search-btn {
    background: var(--ndg-sand);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.hero-search-btn:hover { background: #b08a36; }

/* Stats inside hero */
.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(201,168,76,.3);
    border-radius: 50px;
    padding: 12px 32px;
}
.hero-stat { text-align: center; }
.hero-stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ndg-sand);
    line-height: 1;
}
.hero-stat-label {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.65);
    margin-top: 2px;
}
.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(201,168,76,.35);
}

/* ─── Activity bar ──────────────────────────────── */
.activity-bar {
    background: #fff;
    border-bottom: 1px solid var(--ndg-border);
    position: sticky;
    top: 56px; /* below navbar */
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.activity-strip {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .65rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.activity-strip::-webkit-scrollbar { display: none; }
.activity-pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: .35rem 1rem;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    color: #555;
    background: transparent;
    border: 1.5px solid var(--ndg-border);
    text-decoration: none;
    transition: all .15s;
    flex-shrink: 0;
}
.activity-pill:hover {
    border-color: var(--ndg-sand);
    color: var(--ndg-sand);
}
.activity-pill--active {
    background: var(--ndg-sand);
    border-color: var(--ndg-sand);
    color: #fff !important;
}

/* ─── Profile tiles ─────────────────────────────── */
.profile-tile { display: block; }

.profile-card {
    transition: transform .2s ease, box-shadow .2s ease;
    border-radius: .5rem !important;
    overflow: hidden;
}
.profile-tile:hover .profile-card {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,.14) !important;
}
.profile-card--featured {
    outline: 2px solid var(--ndg-sand);
    outline-offset: 0;
}

/* 4:3 aspect-ratio photo area */
.profile-tile-wrap {
    position: relative;
    overflow: hidden;
    background: var(--ndg-border);
    padding-top: 75%;
}
.profile-tile-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.profile-tile:hover .profile-tile-img {
    transform: scale(1.05);
}

.tile-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1;
}
.tile-type {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
}

/* Bio preview clamp */
.bio-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Small tag pills on tiles */
.tag-pill-sm {
    display: inline-block;
    background: var(--ndg-light);
    color: #666;
    border: 1px solid var(--ndg-border);
    font-size: .7rem;
    padding: 1px 8px;
    border-radius: 20px;
}
.tag-pill-more {
    background: var(--ndg-border);
    color: #888;
}

/* ─── Spotlight / Featured section ─────────────── */
.spotlight-section { background: var(--ndg-light); }

.spotlight-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--ndg-sand);
    display: block;
    transition: transform .22s ease, box-shadow .22s ease;
}
.spotlight-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 52px rgba(0,0,0,.22);
}
.spotlight-bg {
    position: relative;
    padding-top: 58%;
    background: var(--ndg-border) center/cover no-repeat;
}
.spotlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.06) 0%, rgba(26,18,4,.88) 100%);
}
.spotlight-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 18px;
    color: #fff;
    z-index: 1;
}
.spotlight-section-label {
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ndg-sand);
    font-weight: 700;
}

/* ─── Tile avatar (mini profile circle in card body) */
.tile-avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--ndg-sand);
    object-fit: cover;
    flex-shrink: 0;
}

/* ─── CTA section ───────────────────────────────── */
.cta-section {
    background: var(--ndg-dark);
    border-top: 4px solid var(--ndg-sand);
}
.cta-icon {
    font-size: 3rem;
    color: var(--ndg-sand);
    display: block;
}
.cta-sub {
    color: rgba(255,255,255,.6);
    max-width: 480px;
    margin: 0 auto;
}

/* ─── General cards ─────────────────────────────── */
.card {
    border: 1px solid var(--ndg-border) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* ─── Profile avatar (non-tile pages) ───────────── */
.profile-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--ndg-sand);
}

/* ─── Tag pills (public profile pages) ─────────── */
.tag-pill {
    display: inline-block;
    background: var(--ndg-sand);
    color: #fff;
    font-size: .75rem;
    padding: 2px 10px;
    border-radius: 20px;
    margin: 2px;
}

/* ─── Status badges ─────────────────────────────── */
.status-pending  { background: #ffc107; color: #000; }
.status-approved { background: #198754; color: #fff; }
.status-rejected { background: #dc3545; color: #fff; }

/* ─── Navbar ────────────────────────────────────── */
.navbar-brand { letter-spacing: .5px; }

/* ─── Section headings ──────────────────────────── */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    border-left: 4px solid var(--ndg-sand);
    padding-left: 12px;
    margin-bottom: 1.5rem;
}

/* ─── Photo grid (upload pages) ─────────────────── */
.photo-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

/* ─── Pending notice (dashboard) ────────────────── */
.pending-notice {
    border-left: 4px solid #ffc107;
    background: #fff8e1;
    padding: 16px 20px;
    border-radius: 4px;
}
