/* KPI texture-card family — shared across pages.
   Originally inlined in Components/Shared/KPIs/ColumnTextureCard.razor;
   extracted so the home page (and future pages) can reuse the same look. */

.texture-card-container {
    padding: 0.25rem 0.5rem 0.25rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.texture-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.5rem;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .texture-card-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .texture-card-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
    }
}

.texture-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    border: 2px solid;
    border-radius: 8px;
    background: white;
    padding: 0.75rem 1rem;
    cursor: default;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-height: 90px;
    position: relative;
}

.texture-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.card-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    text-align: left;
    margin-top: 0.25rem;
    line-height: 1.2;
}

/* Optional third line — used by the home page for "All-Time: X". */
.card-sub {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: left;
    margin-top: 0.15rem;
    line-height: 1.2;
}

.card-icon {
    font-size: 2.5rem;
    opacity: 0.35;
    align-self: flex-end;
    margin-top: auto;
    margin-right: -0.25rem;
    margin-bottom: -0.25rem;
}

/* Carriage Return — Danger Red */
.texture-card.carriage-return {
    border-color: #B04A4A;
    background: linear-gradient(to top, rgba(176, 74, 74, 0.08) 0%, white 100%);
}
.texture-card.carriage-return .card-value,
.texture-card.carriage-return .card-icon {
    color: #B04A4A;
}

/* Tab — Orange */
.texture-card.tab {
    border-color: #EF9F53;
    background: linear-gradient(to top, rgba(239, 159, 83, 0.08) 0%, white 100%);
}
.texture-card.tab .card-value,
.texture-card.tab .card-icon {
    color: #EF9F53;
}

/* Punctuation — Blue */
.texture-card.punctuation {
    border-color: #00A0DD;
    background: linear-gradient(to top, rgba(0, 160, 221, 0.08) 0%, white 100%);
}
.texture-card.punctuation .card-value,
.texture-card.punctuation .card-icon {
    color: #00A0DD;
}

/* Combo Words — Plum */
.texture-card.combo-words {
    border-color: #6F1D46;
    background: linear-gradient(to top, rgba(111, 29, 70, 0.08) 0%, white 100%);
}
.texture-card.combo-words .card-value,
.texture-card.combo-words .card-icon {
    color: #6F1D46;
}

/* Containers — Teal */
.texture-card.containers {
    border-color: #7D9C91;
    background: linear-gradient(to top, rgba(125, 156, 145, 0.08) 0%, white 100%);
}
.texture-card.containers .card-value,
.texture-card.containers .card-icon {
    color: #7D9C91;
}

/* Symbols — Gold */
.texture-card.symbols {
    border-color: #C8982C;
    background: linear-gradient(to top, rgba(200, 152, 44, 0.08) 0%, white 100%);
}
.texture-card.symbols .card-value,
.texture-card.symbols .card-icon {
    color: #C8982C;
}
