/* Modern Card Widget Styles */
.ma-modern-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ma-modern-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image Styles */
.ma-card-image {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.ma-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ma-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Content Styles */
.ma-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.ma-card-heading {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: #333;
    transition: color 0.3s ease;
}

.ma-card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
    flex: 1;
}

/* Style 1 - Classic */
.ma-card-style-1 {
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ma-card-style-1 .ma-card-image {
    border-radius: 15px 15px 0 0;
}

.ma-card-style-1 .ma-card-image img {
    border-radius: 15px 15px 0 0;
}

/* Style 2 - Modern */
.ma-card-style-2 {
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.ma-card-style-2 .ma-card-heading {
    color: white;
}

.ma-card-style-2 .ma-card-description {
    color: rgba(255, 255, 255, 0.9);
}

.ma-card-style-2 .ma-card-image {
    border-radius: 20px 20px 0 0;
}

.ma-card-style-2 .ma-card-image img {
    border-radius: 20px 20px 0 0;
}

/* Style 3 - Minimal */
.ma-card-style-3 {
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.ma-card-style-3 .ma-card-image {
    border-radius: 8px 8px 0 0;
}

.ma-card-style-3 .ma-card-image img {
    border-radius: 8px 8px 0 0;
}

.ma-card-style-3 .ma-card-heading {
    font-weight: 500;
    font-size: 1.25rem;
}

/* Hover Animations */
.ma-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.ma-hover-scale:hover {
    transform: scale(1.03);
}

.ma-hover-tilt:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
}

/* Image Hover Effects */
.ma-image-zoom:hover .ma-card-image img {
    transform: scale(1.1);
}

.ma-image-zoom-out:hover .ma-card-image img {
    transform: scale(0.95);
}

.ma-image-slide:hover .ma-card-image img {
    transform: translateX(10px);
}

.ma-modern-card:hover .ma-card-overlay {
    opacity: 1;
}

.ma-modern-card:hover .ma-card-heading {
    color: #667eea;
}

.ma-card-style-2:hover .ma-card-heading {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ma-card-content {
        padding: 15px;
    }
    
    .ma-card-heading {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    
    .ma-card-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .ma-card-content {
        padding: 12px;
    }
    
    .ma-card-heading {
        font-size: 1.1rem;
    }
    
    .ma-card-description {
        font-size: 0.85rem;
    }
}

/* Loading Animation */
.ma-modern-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Performance Optimizations */
.ma-modern-card * {
    box-sizing: border-box;
}

.ma-card-image {
    will-change: transform;
}

.ma-card-image img {
    will-change: transform;
}