/* 
 * Shared Card Component Styles
 * Reusable card styles across all pages
 */

/* Base Card Styles */
.card-base {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Metric Cards - Used in sustainability pages */
.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-green);
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-icon {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.metric-change {
    font-size: 0.9rem;
    font-weight: 600;
}

.metric-change.positive {
    color: var(--success-green);
}

.metric-change.negative {
    color: #dc3545;
}

/* Metrics Card - Used in sustainability.ejs */
.metrics-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 139, 87, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metrics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Benefit Cards - Used in driver pages */
.benefit-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.benefit-card:hover {
    border-color: var(--border-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 16px;
    font-size: 2rem;
    color: var(--primary-color);
}

/* Benefits Grid Layout */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    margin-bottom: 2rem;
}

.testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Story Cards - Used in impact page */
.story-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 139, 87, 0.1);
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(46, 139, 87, 0.1);
}

/* Value Cards - Used in why-drive-with-us */
.value-card {
    text-align: left;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Initiative Cards */
.initiative-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-green);
}

/* Comparison Cards */
.comparison-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

/* Certification Badge Cards */
.certification-badge {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--primary-green);
    margin: 1rem 0;
}

/* Responsive Card Adjustments */
@media (max-width: 768px) {
    .metric-value {
        font-size: 1.5rem;
    }
    
    .metric-card,
    .metrics-card,
    .benefit-card,
    .story-card,
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}