/**
 * HireTheVeterans — company-detail.css
 * File: assets/css/company-detail.css
 *
 * Styles for company-detail.php (/employer/{slug}).
 * Loaded alongside jobs.css — all job card, job-meta-tag, btn-apply,
 * and job-cards grid classes come from jobs.css. Nothing duplicated here.
 *
 * Layout: full-width stacked — no sidebar.
 */

/* ── Page shell ──────────────────────────────────────────────────────────── */

.cd-main {
    padding: 2rem 0 4rem;
}

.cd-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Back link ───────────────────────────────────────────────────────────── */

.cd-back {
    margin-bottom: 1.25rem;
}

.cd-back-link {
    color: var(--color-blue);
    text-decoration: none;
    font-size: 0.9rem;
}

.cd-back-link:hover {
    text-decoration: underline;
}

/* ── Hero card ───────────────────────────────────────────────────────────── */

.cd-hero-card {
    background: var(--bg-surface, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ── Banner ──────────────────────────────────────────────────────────────── */

.cd-banner {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.cd-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Placeholder shown when no banner uploaded */
.cd-banner-placeholder {
    background: linear-gradient(
        135deg,
        var(--color-navy, #1a3c5e) 0%,
        #243f5c 60%,
        #1e4976 100%
    );
}

/* ── Identity row ────────────────────────────────────────────────────────── */

.cd-identity {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem 1.5rem;
}

/* Logo */
.cd-logo-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 2px solid var(--color-border, #e5e7eb);
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -44px; /* lifts logo over the banner edge */
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    position: relative;
    z-index: 1;
}

.cd-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cd-logo-initials {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-navy, #1a3c5e);
    line-height: 1;
    user-select: none;
}

/* Name + tagline + facts */
.cd-identity-body {
    flex: 1;
    min-width: 0;
}

.cd-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.cd-company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy, #1a3c5e);
    margin: 0;
    line-height: 1.2;
}

.cd-vf-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #fff8e1;
    color: #7a5c00;
    border: 1px solid #ffe082;
    white-space: nowrap;
}

.cd-tagline {
    font-size: 0.95rem;
    color: var(--color-text-muted, #666);
    margin: 0 0 10px;
    line-height: 1.4;
}

.cd-facts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    align-items: center;
}

.cd-fact {
    font-size: 0.85rem;
    color: var(--color-text-muted, #555);
    white-space: nowrap;
}

.cd-fact-link {
    color: var(--color-blue, #1a6bcc);
    text-decoration: none;
}

.cd-fact-link:hover {
    text-decoration: underline;
}

/* Social + count — pushed to the right */
.cd-identity-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.cd-socials {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cd-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s ease;
    color: #fff;
}

.cd-social-link:hover {
    opacity: 0.85;
}

.cd-social-linkedin { background: #0a66c2; }
.cd-social-twitter  { background: #000; }
.cd-social-facebook { background: #1877f2; }

.cd-open-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy, #1a3c5e);
    background: #f0f4f8;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── Responsive — hero card ──────────────────────────────────────────────── */

@media (max-width: 640px) {
    .cd-banner {
        height: 150px;
    }

    .cd-identity {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .cd-logo-wrap {
        width: 64px;
        height: 64px;
        margin-top: -36px;
    }

    .cd-identity-actions {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cd-company-name {
        font-size: 1.25rem;
    }
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.cd-section {
    background: var(--bg-surface, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.cd-section-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy, #1a3c5e);
    margin: 0 0 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-red, #c0392b);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cd-roles-count {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted, #666);
}

/* ── Rich content (TinyMCE output) ──────────────────────────────────────── */

.cd-rich-content {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--color-text, #333);
}

.cd-rich-content p      { margin: 0 0 1em; }
.cd-rich-content ul,
.cd-rich-content ol     { margin: 0 0 1em; padding-left: 1.4em; }
.cd-rich-content li     { margin-bottom: 0.3em; }
.cd-rich-content a      { color: var(--color-blue, #1a6bcc); }
.cd-rich-content strong { font-weight: 600; }

/* ── Veteran commitment section ──────────────────────────────────────────── */

.cd-vet-section {
    border-left: 3px solid #c9a227;
}

.cd-vet-heading {
    color: #5c4a00;
    border-bottom-color: #c9a227;
}

.cd-vet-statement {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--color-text, #333);
    margin-bottom: 1.25rem;
}

.cd-vet-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid #f0e0a0;
}

.cd-vet-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cd-vet-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy, #1a3c5e);
    line-height: 1;
}

.cd-vet-stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted, #666);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── No jobs state ───────────────────────────────────────────────────────── */

.cd-no-jobs {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-text-muted, #666);
}

.cd-no-jobs p {
    margin-bottom: 1rem;
}

/* ── Secondary button ────────────────────────────────────────────────────── */

.btn-cd-secondary {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--color-navy, #1a3c5e);
    color: var(--color-navy, #1a3c5e);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-cd-secondary:hover {
    background: var(--color-navy, #1a3c5e);
    color: #fff;
}
