/* =============================================================================
   Norfolk Chamber – Member Profile Page  v1.0
   Styles for the single-content.php template
   ============================================================================= */

:root {
    --nc-primary:      #003057;
    --nc-primary-dark: #001f3d;
    --nc-gold:         #C9A84C;
    --nc-gold-light:   #fdf6e3;
    --nc-border:       #e5e7eb;
    --nc-radius:       8px;
    --nc-shadow:       0 2px 12px rgba(0, 0, 0, 0.08);
    --nc-text:         #1a1a2e;
    --nc-muted:        #6b7280;
    --nc-bg:           #f8fafc;
    --nc-white:        #ffffff;
    --nc-font-sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Page wrapper ─────────────────────────────────────────────────────────── */
.nc-profile-page {
    font-family: var(--nc-font-sans);
    color: var(--nc-text);
    background: var(--nc-bg);
    min-height: 100vh;
}

/* ── Banner ───────────────────────────────────────────────────────────────── */
.nc-banner {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--nc-primary) 0%, #0a4a7c 100%);
}
.nc-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.nc-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.45) 100%);
}

/* ── Header strip (logo + name, sits below banner) ───────────────────────── */
.nc-profile-header {
    background: var(--nc-white);
    border-bottom: 1px solid var(--nc-border);
    box-shadow: var(--nc-shadow);
}
.nc-profile-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
}
.nc-profile-logo-wrap {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    background: var(--nc-white);
    border: 3px solid var(--nc-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.14);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}
.nc-profile-logo-wrap img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.nc-profile-logo-initial {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    background: var(--nc-primary);
    border: 3px solid var(--nc-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nc-white);
    font-size: 2.5rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}
.nc-profile-title-area {
    flex: 1;
    padding: 20px 0 18px;
    min-width: 0;
}
.nc-profile-title-area h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--nc-primary);
    margin: 0 0 8px;
    line-height: 1.25;
}
.nc-profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.nc-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 10px;
    border-radius: 20px;
    line-height: 1.6;
}
.nc-badge--gold     { background: var(--nc-gold-light); color: #7a5200; border: 1px solid var(--nc-gold); }
.nc-badge--sector   { background: #eef2f7; color: var(--nc-primary); }
.nc-badge--city     { background: #f0fdf4; color: #166534; }
.nc-badge--strategic{ background: #ede9fe; color: #5b21b6; }

/* ── Back link ────────────────────────────────────────────────────────────── */
.nc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    color: var(--nc-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.15s;
    margin-left: auto;
    flex-shrink: 0;
}
.nc-back-link:hover { gap: 10px; color: var(--nc-primary-dark); }

/* ── Main layout ──────────────────────────────────────────────────────────── */
.nc-profile-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px 80px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* ── Main column ──────────────────────────────────────────────────────────── */
.nc-profile-main {}

/* post_content rendered area */
.nc-profile-content {
    background: var(--nc-white);
    border-radius: var(--nc-radius);
    box-shadow: var(--nc-shadow);
    padding: 36px 40px;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    border: 1px solid var(--nc-border);
}
.nc-profile-content h2,
.nc-profile-content h3,
.nc-profile-content h4 {
    color: var(--nc-primary);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.35;
}
.nc-profile-content h2 { font-size: 1.4rem; }
.nc-profile-content h3 { font-size: 1.15rem; }
.nc-profile-content p  { margin: 0 0 1em; }
.nc-profile-content a  { color: var(--nc-primary); text-underline-offset: 2px; }
.nc-profile-content a:hover { color: var(--nc-primary-dark); }
.nc-profile-content ul,
.nc-profile-content ol {
    margin: 0 0 1em 1.5em;
    padding: 0;
}
.nc-profile-content li { margin-bottom: 0.4em; }
.nc-profile-content strong { color: var(--nc-primary); }

/* Images inside post_content — style them as gallery */
.nc-profile-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--nc-radius);
    display: block;
    margin: 24px auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ── YouTube embed ────────────────────────────────────────────────────────── */
.nc-youtube-section {
    margin-top: 28px;
}
.nc-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nc-muted);
    margin: 0 0 14px;
}
.nc-youtube-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--nc-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.nc-youtube-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--nc-radius);
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.nc-profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.nc-sidebar-card {
    background: var(--nc-white);
    border-radius: var(--nc-radius);
    box-shadow: var(--nc-shadow);
    border: 1px solid var(--nc-border);
    overflow: hidden;
}
.nc-sidebar-card-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nc-muted);
    padding: 14px 20px;
    border-bottom: 1px solid var(--nc-border);
    margin: 0;
}

/* ── Contact card ─────────────────────────────────────────────────────────── */
.nc-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nc-contact-list li {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.875rem;
    align-items: flex-start;
}
.nc-contact-list li:last-child { border-bottom: none; }
.nc-contact-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #eef2f7;
    color: var(--nc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}
.nc-contact-text {
    flex: 1;
    min-width: 0;
}
.nc-contact-label {
    display: block;
    font-size: 0.68rem;
    color: var(--nc-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.nc-contact-value {
    display: block;
    font-weight: 500;
    color: #333;
    word-break: break-word;
}
.nc-contact-value a {
    color: var(--nc-primary);
    text-decoration: none;
}
.nc-contact-value a:hover { text-decoration: underline; }

/* ── Website button ───────────────────────────────────────────────────────── */
.nc-website-btn-wrap {
    padding: 16px 20px;
}
.nc-website-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: var(--nc-primary);
    color: var(--nc-white) !important;
    border-radius: var(--nc-radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    box-sizing: border-box;
}
.nc-website-btn:hover {
    background: var(--nc-primary-dark);
    transform: translateY(-1px);
}

/* ── Social card ──────────────────────────────────────────────────────────── */
.nc-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 20px;
}
.nc-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--nc-bg);
    border: 1px solid var(--nc-border);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    transition: border-color 0.15s, color 0.15s;
}
.nc-social-btn:hover { border-color: var(--nc-primary); color: var(--nc-primary); }

/* ── Related news card ────────────────────────────────────────────────────── */
.nc-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nc-news-item {
    border-bottom: 1px solid #f5f5f5;
}
.nc-news-item:last-child { border-bottom: none; }
.nc-news-link {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    align-items: flex-start;
}
.nc-news-link:hover { background: var(--nc-bg); }
.nc-news-thumb {
    width: 68px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--nc-border);
}
.nc-news-thumb-placeholder {
    width: 68px;
    height: 52px;
    border-radius: 6px;
    background: #eef2f7;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 1.1rem;
}
.nc-news-text {}
.nc-news-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nc-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.nc-news-date {
    font-size: 0.75rem;
    color: var(--nc-muted);
}

/* ── Gold patron card ─────────────────────────────────────────────────────── */
.nc-gold-card {
    background: var(--nc-gold-light);
    border-color: var(--nc-gold);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: #7a5200;
    font-weight: 500;
}
.nc-gold-star {
    font-size: 1.3rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .nc-profile-body {
        grid-template-columns: 1fr;
        padding: 24px 20px 60px;
        gap: 28px;
    }
    /* Sidebar moves above content on mobile — swap order */
    .nc-profile-sidebar { order: -1; }
    .nc-banner { height: 200px; }
    .nc-profile-header-inner { padding: 0 20px; gap: 16px; }
    .nc-profile-title-area h1 { font-size: 1.35rem; }
    .nc-profile-logo-wrap,
    .nc-profile-logo-initial { width: 80px; height: 80px; margin-top: -28px; }
    .nc-profile-logo-initial { font-size: 1.8rem; }
    .nc-profile-content { padding: 24px 20px; }
}
@media (max-width: 600px) {
    .nc-profile-body { padding: 16px 16px 48px; }
    .nc-banner { height: 150px; }
    .nc-back-link span { display: none; }
    .nc-profile-title-area h1 { font-size: 1.15rem; }
}
