/* ==========================================
   simulation-tools-extra.css
   Supplementary styles for the simulation tools
   landing page. Everything else comes from style.css.
========================================== */

/* Single row of 5 equal-width cards */
.st-tools-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}





/* For phones (small screens) */
@media (max-width: 739px) {
    .st-tools-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

/* For tilted phones or tablets */
@media (min-width: 740px) and (max-width: 1299px) {
    .st-tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* For standard PC screens (1080p) */
@media (min-width: 1300px) and (max-width: 1799px) {
    .st-tools-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* For 1440p screens */
@media (min-width: 1800px) and (max-width: 2600px) {
    .st-tools-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* For 4k screens */
@media (min-width: 2601px) {
    .st-tools-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}








/* Make the whole card clickable — add cursor and hover lift */
.st-tool-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid #ddd ;
}



.st-card-badges {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.st-badge {
    font-size: 0.68rem;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px;
    display: inline-block;
    cursor: default;
    user-select: none;
    border: 2px solid;
    transition: background 0.15s, color 0.15s;
}

/* === Free Badge — Blue (#164384) === */
.st-badge-free {
    background: #fff;
    color: #164384;
    border-color: #164384;
}
.st-badge-free:hover {
    background: #164384;
    color: #fff;
}

/* === Support Badge — Orange (#E68A00) === */
.st-badge-support {
    background: transparent;
    color: #E68A00;
    border-color: #E68A00;
}
.st-badge-support:hover {
    background: #E68A00;
    color: #fff;
}



/* Locked card — greyed out visually */
.st-tool-locked .family-name,
.st-tool-locked h3 {
    color: #8899BB;
}

.st-icon-greyed {
    opacity: 0.35;
    filter: grayscale(100%);
}

.st-list-greyed li {
    color: #9AABB0 !important;
}

/* Locked button style — overrides card-action-button colours */
.st-locked-btn,
.st-locked-btn:hover {
    background-color: #f0f0f0 !important;
    color: #888 !important;
    border-color: #ccc !important;
    cursor: pointer;
}

.st-tool-locked:hover .st-locked-btn {
    background-color: #1C3448 !important;
    color: #fff !important;
    border-color: #1C3448 !important;
}

/* ---- Simulation Tools Forward Button Icon Swap (FORCE OVERRIDE) ---- */

/* Button layout */
.st-forward-action {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
}

/* Wrapper holds icon space + positioning context */
.st-forward-icon-wrap {
    position: relative !important;
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* Both icons stack exactly on top of each other */
.st-forward-icon-wrap img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;

    object-fit: contain !important;
    transition: opacity 0.18s !important;
    pointer-events: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Default: blue visible, white hidden */
.st-forward-icon-wrap img.st-fwd-icon-blue  { opacity: 1 !important; }
.st-forward-icon-wrap img.st-fwd-icon-white { opacity: 0 !important; }

/* Hover: swap opacity + text color */
.st-forward-action:hover { color: #fff !important; }
.st-forward-action:hover .st-forward-icon-wrap img.st-fwd-icon-blue  { opacity: 0 !important; }
.st-forward-action:hover .st-forward-icon-wrap img.st-fwd-icon-white { opacity: 1 !important; }


/* ==========================================
   Responsive — single column on mobile
========================================== */
@media (max-width: 1100px) {
    .st-tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .st-tools-grid {
        grid-template-columns: 1fr !important;
    }
}