/* ============================================================
   Naturgas Compare — styles
   Matches the elcard design language from elselskab-compare.css
   ============================================================ */

/* ── List wrapper ── */
.ngcomp-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Card ── */
.ngcomp-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: visible;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.ngcomp-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
    border-color: #d1d5db;
}

/* Top/cheapest card gets a green left accent */
.ngcomp-card--top {
    border-color: #16a34a;
    border-left-width: 3px;
}

.ngcomp-card--top:hover {
    box-shadow: 0 4px 24px rgba(22, 163, 74, 0.12);
}

/* ── "Billigst" pill ── */
.ngcomp-pill {
    position: absolute;
    top: -11px;
    left: 20px;
    background: #16a34a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    line-height: 1.4;
    z-index: 1;
}

/* ── Inner flex row ── */
.ngcomp-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
}

/* ── Columns ── */
.ngcomp-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Logo column */
.ngcomp-col-logo {
    flex: 0 0 110px;
    align-items: center;
    gap: 6px;
}

.ngcomp-logo {
    width: 100px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fafafa;
    overflow: hidden;
    padding: 6px;
}

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

.ngcomp-logo--text {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    text-align: center;
}

.ngcomp-review-link {
    font-size: 12px;
    color: #16a34a;
    text-decoration: none;
    text-align: center;
    line-height: 1.3;
    margin-top: 4px;
}

.ngcomp-review-link:hover {
    text-decoration: underline;
}

/* Info column (title + tags) */
.ngcomp-col-info {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
}

.ngcomp-title {
    font-size: 16px;
    font-weight: 700;
    color: #16a34a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ngcomp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.ngcomp-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.ngcomp-tag-label {
    font-weight: 600;
    color: #374151;
}

.ngcomp-tag-value {
    color: #6b7280;
}

/* Price column */
.ngcomp-col-price {
    flex: 0 0 auto;
    align-items: flex-end;
    text-align: right;
    gap: 2px;
    padding: 0 12px;
}

.ngcomp-price-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 2px;
}

.ngcomp-price-value {
    display: flex;
    align-items: baseline;
    gap: 3px;
    justify-content: flex-end;
}

.ngcomp-price-number {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    letter-spacing: -0.02em;
}

.ngcomp-price-unit {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

/* CTA column */
.ngcomp-col-cta {
    flex: 0 0 auto;
    align-items: center;
}

.ngcomp-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    background: #16a34a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.ngcomp-cta:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
    color: #ffffff;
    text-decoration: none;
}

.ngcomp-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.2);
}

.ngcomp-cta-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Disclaimer ── */
.ngcomp-disclaimer {
    margin-top: 14px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ngcomp-inner {
        flex-wrap: wrap;
        padding: 18px 16px;
        gap: 12px;
    }

    .ngcomp-col-logo {
        flex: 0 0 80px;
    }

    .ngcomp-logo {
        width: 80px;
        height: 42px;
    }

    .ngcomp-col-info {
        flex: 1 1 calc(100% - 100px);
    }

    .ngcomp-col-price {
        flex: 1 1 auto;
        align-items: flex-start;
        text-align: left;
        padding: 0;
    }

    .ngcomp-price-value {
        justify-content: flex-start;
    }

    .ngcomp-price-number {
        font-size: 22px;
    }

    .ngcomp-col-cta {
        flex: 1 1 100%;
    }

    .ngcomp-cta {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .ngcomp-title {
        font-size: 15px;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .ngcomp-col-logo {
        flex: 0 0 70px;
    }

    .ngcomp-logo {
        width: 70px;
        height: 38px;
    }

    .ngcomp-col-info {
        flex: 1 1 calc(100% - 90px);
    }

    .ngcomp-tags {
        gap: 4px 10px;
    }

    .ngcomp-tag {
        font-size: 11px;
    }
}
