/*
 * EloCore – Frontend styles
 * Design tilpasses senere – dette er et strukturelt udgangspunkt.
 */

/* ── Wrapper ─────────────────────────────────────────────────────── */

.elsc-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
    box-sizing: border-box;
}

/* ── Breadcrumb ──────────────────────────────────────────────────── */

.elsc-breadcrumb {
    font-size: .85rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.elsc-breadcrumb a {
    color: inherit;
    text-decoration: underline;
}

/* ── Hero (hub) ──────────────────────────────────────────────────── */

.elsc-hero {
    margin-bottom: 2.5rem;
}

.elsc-hero__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.elsc-hub__intro {
    max-width: 680px;
    line-height: 1.6;
    color: #444;
}

/* ── Company grid (hub) ──────────────────────────────────────────── */

.elsc-companies__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.elsc-company-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .15s, transform .15s;
}

.elsc-company-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.elsc-company-card__inner {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
    box-sizing: border-box;
}

.elsc-company-card__logo {
    height: 56px;
    display: flex;
    align-items: center;
}

.elsc-company-card__logo-img {
    max-height: 56px;
    max-width: 120px;
    object-fit: contain;
}

.elsc-company-card__logo-placeholder {
    font-size: 2rem;
}

.elsc-company-card__name {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.elsc-company-card__desc {
    font-size: .875rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.elsc-company-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .5rem;
}

.elsc-company-card__cta {
    font-size: .8rem;
    font-weight: 600;
    color: #2563eb;
}

/* ── Badge ───────────────────────────────────────────────────────── */

.elsc-badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    padding: .2em .65em;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}

.elsc-badge--green {
    background: #d1fae5;
    color: #065f46;
}

/* ── Company hero (single) ───────────────────────────────────────── */

.elsc-company-hero {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.elsc-company-hero__logo {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elsc-company-hero__logo-img {
    max-width: 140px;
    max-height: 70px;
    object-fit: contain;
}

.elsc-company-hero__logo-placeholder {
    font-size: 3rem;
}

.elsc-company-hero__info {
    flex: 1;
}

.elsc-company-hero__name {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}

.elsc-company-hero__desc {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ── Section heading ─────────────────────────────────────────────── */

.elsc-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* ── Deals list ──────────────────────────────────────────────────── */

.elsc-deals {
    margin-bottom: 3rem;
}

.elsc-deals__list {
    display: grid;
    gap: 1.25rem;
}

.elsc-deal-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
}

.elsc-deal-card__header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.elsc-deal-card__name {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.elsc-deal-card__details {
    margin: 0 0 1rem;
}

.elsc-deal-card__row {
    display: flex;
    gap: 1rem;
    font-size: .9rem;
    padding: .35rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.elsc-deal-card__row:last-child {
    border-bottom: none;
}

.elsc-deal-card__row dt {
    font-weight: 600;
    color: #374151;
    min-width: 140px;
    flex-shrink: 0;
}

.elsc-deal-card__row dd {
    margin: 0;
    color: #555;
}

.elsc-deal-card__comment {
    font-size: .875rem;
    color: #64748b;
    font-style: italic;
    margin-bottom: 1rem;
}

/* ── Tier table ──────────────────────────────────────────────────── */

.elsc-tier-table {
    border-collapse: collapse;
    font-size: .85rem;
    width: auto;
}

.elsc-tier-table th,
.elsc-tier-table td {
    padding: .2rem .75rem .2rem 0;
    text-align: left;
    border: none;
}

.elsc-tier-table th {
    font-weight: 600;
    color: #374151;
}

/* ── Review section ──────────────────────────────────────────────── */

.elsc-review {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.elsc-review__body {
    line-height: 1.7;
    color: #374151;
}

.elsc-review__body p:last-child {
    margin-bottom: 0;
}

/* ── Button ──────────────────────────────────────────────────────── */

.elsc-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1.1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: .875rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity .15s;
}

.elsc-btn:hover {
    opacity: .85;
}

.elsc-btn--primary {
    background: #2563eb;
    color: #fff;
}

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

.elsc-empty {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 2rem 0;
}

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

@media (max-width: 640px) {
    .elsc-company-hero {
        flex-direction: column;
        gap: 1rem;
    }

    .elsc-company-hero__logo {
        width: 100%;
        justify-content: flex-start;
    }

    .elsc-deal-card__row {
        flex-direction: column;
        gap: .15rem;
    }

    .elsc-deal-card__row dt {
        min-width: unset;
    }
}
