/* Dynamic Metrics Styles */

.metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: -40px;
    /* Pull up to overlap/connect with hero */
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
    padding: 0 5%;
    width: 100%;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    /* Glass feel */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
    /* Purple tint */
}

.metric-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #94a3b8;
    /* Slate 400 */
    font-size: 0.95rem;
    font-weight: 500;
}

.metric-header i {
    margin-right: 10px;
    color: #a855f7;
    /* Purple 500 */
    font-size: 1.1rem;
}

.metric-value-large {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.metric-subtext {
    font-size: 0.9rem;
    color: #10b981;
    /* Emerald 500 (Success color) */
    display: flex;
    align-items: center;
    font-weight: 500;
}

.metric-subtext i {
    margin-right: 5px;
    font-size: 0.8rem;
}

.metric-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #64748b;
    /* Slate 500 */
}

/* Specific Card Tweaks */
.metric-card.primary-metric .metric-value-large {
    background: linear-gradient(135deg, #a855f7 0%, #d8b4fe 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .metrics-container {
        grid-template-columns: 1fr;
    }

    .metric-value-large {
        font-size: 1.8rem;
    }
}