/**
 * Investment Statistics Widget Styles
 * Modern, responsive design for desktop and mobile
 *
 * @package InvestmentWP
 * @since 1.0.0
 */

/* Stats Widget Container */
.investmentwp-stats-widget {
    display: grid;
    width: 100%;
    gap: 30px;
}

/* Stat Item - Modern Card Design */
.investmentwp-stats-widget .stat-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 200px;
}

.investmentwp-stats-widget .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0073aa 0%, #00a0d6 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.investmentwp-stats-widget .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 115, 170, 0.15);
}

.investmentwp-stats-widget .stat-item:hover::before {
    transform: scaleX(1);
}

/* Stat Icon */
.investmentwp-stats-widget .stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    color: #0073aa;
    font-size: 48px;
    line-height: 1;
    transition: all 0.3s ease;
}

.investmentwp-stats-widget .stat-icon i,
.investmentwp-stats-widget .stat-icon svg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.investmentwp-stats-widget .stat-item:hover .stat-icon {
    transform: scale(1.1);
    color: #00a0d6;
}

/* Stat Number */
.investmentwp-stats-widget .stat-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #0073aa;
    margin: 10px 0;
    transition: color 0.3s ease;
}

.investmentwp-stats-widget .stat-number span {
    font-size: 0.6em;
    font-weight: 600;
    opacity: 0.8;
}

.investmentwp-stats-widget .stat-item:hover .stat-number {
    color: #00a0d6;
}

/* Stat Label */
.investmentwp-stats-widget .stat-label {
    font-size: 16px;
    font-weight: 500;
    color: #666666;
    line-height: 1.5;
    text-align: center;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.investmentwp-stats-widget .stat-item:hover .stat-label {
    color: #333333;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .investmentwp-stats-widget {
        gap: 25px;
    }
    
    .investmentwp-stats-widget .stat-item {
        padding: 35px 25px;
    }
    
    .investmentwp-stats-widget .stat-icon {
        width: 70px;
        height: 70px;
        font-size: 42px;
        margin-bottom: 18px;
    }
    
    .investmentwp-stats-widget .stat-number {
        font-size: 42px;
    }
    
    .investmentwp-stats-widget .stat-label {
        font-size: 15px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .investmentwp-stats-widget {
        gap: 20px;
    }
    
    .investmentwp-stats-widget .stat-item {
        padding: 30px 20px;
        border-radius: 10px;
    }
    
    .investmentwp-stats-widget .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .investmentwp-stats-widget .stat-number {
        font-size: 36px;
        margin: 8px 0;
    }
    
    .investmentwp-stats-widget .stat-label {
        font-size: 14px;
        margin-top: 3px;
    }
    
    .investmentwp-stats-widget .stat-item:hover {
        transform: translateY(-3px);
    }
}

/* Responsive Grid Columns */
.investmentwp-stats-widget[data-columns-tablet] {
    grid-template-columns: repeat(var(--columns-tablet, 2), 1fr);
}

.investmentwp-stats-widget[data-columns-mobile] {
    grid-template-columns: repeat(var(--columns-mobile, 1), 1fr);
}

@media (max-width: 1024px) {
    .investmentwp-stats-widget[data-columns-tablet] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .investmentwp-stats-widget[data-columns-mobile] {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

/* Alignment Support */
.investmentwp-stats-widget .stat-item[style*="text-align: left"] {
    align-items: flex-start;
}

.investmentwp-stats-widget .stat-item[style*="text-align: right"] {
    align-items: flex-end;
}

.investmentwp-stats-widget .stat-item[style*="text-align: left"] .stat-icon,
.investmentwp-stats-widget .stat-item[style*="text-align: right"] .stat-icon {
    margin-left: 0;
    margin-right: 0;
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    .investmentwp-stats-widget .stat-item {
        background: #1a1a1a;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .investmentwp-stats-widget .stat-label {
        color: #cccccc;
    }
    
    .investmentwp-stats-widget .stat-item:hover .stat-label {
        color: #ffffff;
    }
}

