/* =======================================================================
   EV Charging Cost Comparison – App-specific styles
   Relies on global reset, variables, components, and typography.
   Only patterns unique to this app live here.
   ======================================================================= */


/* ===================================================================== */
/*  FUEL OVERVIEW CARDS                                                   */
/* ===================================================================== */

.ev-overview-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    position: relative;
}

.ev-overview-card.is-cheapest {
    border-color: var(--kw-green);
    background: var(--kw-green-tint);
}

.ev-overview-card.is-cheapest::after {
    content: "Cheapest";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--kw-green);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.75em;
    font-weight: 600;
}

.ev-overview-icon { font-size: 2em; }

.ev-overview-cost {
    font-size: 1.6em;
    font-weight: 700;
}

.ev-saving {
    color: var(--kw-green);
    font-weight: 600;
}


/* ===================================================================== */
/*  RESULT CARDS                                                          */
/* ===================================================================== */

.ev-result-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.ev-provider-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: var(--white);
    padding: var(--space-xs);
    border: 1px solid var(--grey-border);
    flex-shrink: 0;
}

.ev-cost-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.ev-cost-item {
    text-align: center;
    padding: var(--space-sm);
    background: var(--grey-light);
    border-radius: var(--radius-sm);
}

.ev-cost-value {
    font-size: 1.3em;
    font-weight: 700;
}

.ev-cost-label {
    font-size: 0.85em;
    color: var(--grey);
    margin-top: var(--space-xs);
}

.ev-cost-item--highlight { background: var(--kw-amber-tint); }

/* "Best deal" badge */
.ev-result-best {
    border: 2px solid var(--kw-green);
    position: relative;
}

.ev-result-best::before {
    content: "\1F3C6  Lowest Rate";
    position: absolute;
    top: -12px;
    right: var(--space-md);
    background: var(--kw-green);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-lg);
    font-size: 0.8em;
    font-weight: 600;
}


/* ===================================================================== */
/*  RESPONSIVE                                                            */
/* ===================================================================== */

@media (max-width: 768px) {
    .ev-cost-grid { grid-template-columns: repeat(2, 1fr); }
}
