/**
 * Dashboard Cards - Core styling for all dashboard card components
 * This provides the base card styling that is shared across all dashboard elements
 */

/* Base variables to match mockup design */
:root {
    /* Colors from mockup */
    --primary: #3498db;
    --primary-dark: #2980b9;
    --success: #2ecc71;
    --success-dark: #27ae60;
    --danger: #e74c3c;
    --danger-dark: #c0392b;
    --warning: #f39c12;
    --warning-dark: #e67e22;
    --purple: #9b59b6;
    --purple-dark: #8e44ad;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-muted: #95a5a6;
    --background: #f8f9fa;
    --white: #ffffff;
    --silver: #ecf0f1;
    
    /* Additional variables for consistency */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --border-radius-sm: 6px;
}

/* Base card styling */
.points-balance-card,
.rewards-program-card,
.activity-summary-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.points-balance-card:hover,
.rewards-program-card:hover,
.activity-summary-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

/* Card gradient top effect */
.points-balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

/* Temporarily removed top border from activity summary cards
.activity-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}
*/

/* Card header styling */
.points-balance-card .block-title,
.rewards-program-card .block-title,
.activity-summary-card .block-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

/* Add icons to titles */
.points-balance-card .block-title::before {
    content: "★";
    margin-right: 10px;
    color: var(--primary);
}

.rewards-program-card .block-title::before {
    content: "🏆";
    margin-right: 10px;
}

.activity-summary-card:nth-of-type(3) .block-title::before {
    content: "↑";
    margin-right: 10px;
    color: var(--success);
}

.activity-summary-card:nth-of-type(4) .block-title::before {
    content: "↓";
    margin-right: 10px;
    color: var(--danger);
}

.activity-summary-card:nth-of-type(5) .block-title::before {
    content: "⟳";
    margin-right: 10px;
    color: var(--purple);
}

/* Hide default block HR lines */
.points-balance-card .block-hr,
.rewards-program-card .block-hr,
.activity-summary-card .block-hr {
    display: none;
}

/* Special styling for rewards program card */
.rewards-program-card {
    background-color: var(--primary);
    color: var(--white);
}

.rewards-program-card .block-title {
    color: var(--white);
}

/* Responsive layout for cards */
@media (min-width: 768px) {
    .region-content-top {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .region-content-top .points-balance-card,
    .region-content-top .rewards-program-card {
        flex: 1;
        min-width: calc(50% - 15px);
    }
    
    .region-content-top .activity-summary-card:nth-of-type(3),
    .region-content-top .activity-summary-card:nth-of-type(4),
    .region-content-top .activity-summary-card:nth-of-type(5) {
        flex-basis: 33.333%;
    }
}
