/* ================================================================
   Computer Care – Cyber Shield Widget  v1.0.0
   ================================================================ */

:root {
    --cc-navy:       #1d193c;
    --cc-purple:     #6b4b95;
    --cc-darkpurple: #341e54;
    --cc-blue:       #00577b;
    --cc-teal:       #009391;
    --cc-green:      #89bd23;
    --cc-orange:     #f3963c;
    --cc-red:        #c0392b;
    --cc-white:      #ffffff;
    --cc-offwhite:   #e8e6f0;
    --cc-muted:      #a09cb8;
}

/* Shell */
.cc-shield-shell {
    background: #12102a;
    border-radius: 16px;
    padding: 22px 20px 24px;
    font-family: sans-serif;
    color: var(--cc-white);
    max-width: 1100px;
    margin: 0 auto;
}

/* Layout */
.cc-shield-top-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---- Scenario picker ----------------------------------------- */
.cc-shield-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 210px;
}

.cc-shield-panel-label {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--cc-muted);
    letter-spacing: 1.1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cc-shield-pain-btn {
    background: #1d193c;
    border: 1.5px solid #3a3560;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    text-align: left;
    transition: all .2s;
    width: 100%;
}
.cc-shield-pain-btn:hover           { border-color: var(--cc-orange); background: #261e45; }
.cc-shield-pain-btn.cc-active       { border-color: var(--cc-orange); background: #2e1e10; }
.cc-shield-pain-btn.cc-severe       { border-left: 3px solid var(--cc-red); }
.cc-shield-pain-btn.cc-severe.cc-active { background: #2e1010; border-color: var(--cc-red); }

.cc-pain-icon  { font-size: 13px; display: block; margin-bottom: 2px; }
.cc-pain-name  { font-size: 11.5px; font-weight: 600; color: var(--cc-offwhite); display: block; line-height: 1.3; }
.cc-pain-cost  { font-size: 10px; color: var(--cc-orange); font-weight: 700; display: block; margin-top: 3px; }
.cc-pain-cost.cc-severe-cost { color: #e05050; }

/* ---- SVG shield ---------------------------------------------- */
.cc-shield-svg { flex-shrink: 0; }

/* ---- Cost panel ---------------------------------------------- */
.cc-shield-right {
    flex: 1;
    min-width: 240px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
}

.cc-impact-card {
    border-radius: 12px;
    border: 2px solid #3a3560;
    overflow: hidden;
    transition: border-color .35s;
    height: 100%;
    background: #1d193c;
}

.cc-impact-empty {
    padding: 20px 14px;
    font-size: 12px;
    color: var(--cc-muted);
    font-style: italic;
    line-height: 1.6;
}

.cc-cost-banner {
    padding: 13px 14px 11px;
    border-bottom: 1px solid #3a3560;
}

.cc-scenario-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--cc-orange);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 5px;
    display: block;
}
.cc-scenario-tag.cc-severe { color: #e05050; }

.cc-cost-headline {
    font-size: 13px;
    font-weight: 700;
    color: var(--cc-white);
    line-height: 1.4;
    margin-bottom: 10px;
}

.cc-cost-figures { display: flex; flex-direction: column; gap: 5px; }

.cc-cost-figure {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 10px;
    background: #12102a;
    border-radius: 8px;
    border: 1px solid #3a3560;
}
.cc-cost-figure.cc-severe { border-color: #7a2020; }

.cc-fig-amount {
    font-size: 18px;
    font-weight: 800;
    color: var(--cc-orange);
    white-space: nowrap;
    line-height: 1.1;
    min-width: 68px;
}
.cc-fig-amount.cc-severe { color: #e05050; }

.cc-fig-label {
    font-size: 10.5px;
    color: var(--cc-muted);
    line-height: 1.45;
}

.cc-impact-narrative { padding: 11px 14px; }

.cc-narr-heading {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--cc-muted);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 5px;
}

.cc-impact-narrative p {
    font-size: 11.5px;
    color: #c4c0d8;
    line-height: 1.6;
    margin: 0;
}

/* ---- Protection section -------------------------------------- */
.cc-protection-section {
    margin-top: 12px;
    border-radius: 12px;
    border: 2px solid #3a3560;
    overflow: hidden;
    transition: border-color .4s;
    background: #1d193c;
}

.cc-protection-header {
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #3a3560;
}

.cc-prot-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    background: #12102a;
}

.cc-prot-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--cc-muted);
}

.cc-prot-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--cc-white);
    line-height: 1.35;
    margin-top: 2px;
}

.cc-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
}

.cc-svc-card {
    padding: 12px 14px;
    border-right: 1px solid #2a2650;
    transition: background .2s;
    background: #1d193c;
}
.cc-svc-card:last-child { border-right: none; }
.cc-svc-card:hover      { background: #261e45; }

.cc-svc-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.cc-svc-name {
    font-size: 12.5px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.cc-svc-desc {
    font-size: 11px;
    color: var(--cc-muted);
    line-height: 1.5;
}

.cc-placeholder-prot {
    padding: 16px;
    font-size: 12px;
    color: var(--cc-muted);
    font-style: italic;
    text-align: center;
}

/* ---- Animations ---------------------------------------------- */
@keyframes cc-pulse-cross {
    0%, 100% { opacity: 1;   }
    50%       { opacity: .5; }
}

@keyframes cc-pulse-glow {
    0%, 100% { opacity: .65; }
    50%       { opacity: 1;  }
}

/* ================================================================
   RESPONSIVE — Tablet  (≤ 900px)
   Stack cost panel below the shield; scenarios stay left
   ================================================================ */
@media (max-width: 900px) {

    .cc-shield-top-row {
        display: grid;
        grid-template-columns: 210px 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
        align-items: start;
    }

    /* Scenarios: column 1, spans both rows */
    .cc-shield-left {
        grid-column: 1;
        grid-row: 1 / 3;
        flex: none;
        width: 210px;
    }

    /* Shield: column 2, row 1 — centred */
    .cc-shield-svg {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    /* Cost panel: column 2, row 2 — full width of that column */
    .cc-shield-right {
        grid-column: 2;
        grid-row: 2;
        max-width: 100%;
        min-width: 0;
    }

    /* Service cards: 2 columns on tablet */
    .cc-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cc-svc-card:nth-child(2n) { border-right: none; }
    .cc-svc-card:nth-child(n+3) {
        border-top: 1px solid #2a2650;
    }
}

/* ================================================================
   RESPONSIVE — Mobile  (≤ 600px)
   Everything stacks in a single column
   ================================================================ */
@media (max-width: 600px) {

    .cc-shield-shell {
        padding: 14px 12px 18px;
        border-radius: 12px;
    }

    /* Single-column stack: buttons → shield → cost */
    .cc-shield-top-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .cc-shield-left {
        width: 100%;
        flex: none;
    }

    /* Scenario buttons: larger tap targets on mobile */
    .cc-shield-pain-btn {
        padding: 10px 12px;
    }
    .cc-pain-name { font-size: 12.5px; }
    .cc-pain-cost { font-size: 11px; }

    /* Scale SVG down to fit narrow screens */
    .cc-shield-svg {
        width: 200px !important;
        height: 200px !important;
        align-self: center;
    }

    /* Cost panel: full width */
    .cc-shield-right {
        max-width: 100%;
        min-width: 0;
    }

    /* Cost figures: stack amount above label on very small screens */
    .cc-cost-figure {
        flex-direction: column;
        gap: 4px;
    }
    .cc-fig-amount {
        font-size: 22px;
        min-width: unset;
    }
    .cc-fig-label { font-size: 11.5px; }

    /* Headline slightly smaller */
    .cc-cost-headline { font-size: 13px; }

    /* Service cards: single column on mobile */
    .cc-services-grid {
        grid-template-columns: 1fr;
    }

    .cc-svc-card {
        border-right: none !important;
        border-bottom: 1px solid #2a2650;
    }
    .cc-svc-card:last-child { border-bottom: none; }

    /* Protection header: allow title to wrap */
    .cc-prot-title { font-size: 13px; }

    /* Reduce panel label size slightly */
    .cc-shield-panel-label { font-size: 10px; letter-spacing: .8px; }
}

/* ================================================================
   RESPONSIVE — Small mobile  (≤ 380px)
   Tighten further for the smallest handsets
   ================================================================ */
@media (max-width: 380px) {

    .cc-shield-svg {
        width: 170px !important;
        height: 170px !important;
    }

    .cc-fig-amount { font-size: 19px; }

    .cc-cost-headline { font-size: 12.5px; }
}
