/**
 * Elementor Profiles Widget Styles
 * 
 * @package Kevents
 * @version 1.0.198
 */

/* ===== PROFILES LIST WIDGET ===== */
.kevents-profiles-list {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* Grid Layout */
.kevents-profiles-list.kevents-profiles-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.kevents-profiles-list.kevents-profiles-grid.columns-1 {
    grid-template-columns: 1fr;
}

.kevents-profiles-list.kevents-profiles-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.kevents-profiles-list.kevents-profiles-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.kevents-profiles-list.kevents-profiles-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* List Layout */
.kevents-profiles-list.kevents-profiles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kevents-profiles-list.kevents-profiles-list .kevents-profile-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.kevents-profiles-list.kevents-profiles-list .kevents-profile-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Cards Layout */
.kevents-profiles-list.kevents-profiles-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.kevents-profiles-list.kevents-profiles-cards .kevents-profile-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.kevents-profiles-list.kevents-profiles-cards .kevents-profile-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Profile Item */
.kevents-profile-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.kevents-profile-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Profile Image */
.kevents-profile-item .profile-image {
    position: relative;
    overflow: hidden;
}

.kevents-profile-item .profile-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kevents-profile-item:hover .profile-image img {
    transform: scale(1.05);
}

/* List layout specific image */
.kevents-profiles-list.kevents-profiles-list .kevents-profile-item .profile-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.kevents-profiles-list.kevents-profiles-list .kevents-profile-item .profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Content */
.kevents-profile-item .profile-content {
    padding: 20px;
}

.kevents-profiles-list.kevents-profiles-list .kevents-profile-item .profile-content {
    padding: 0;
    flex: 1;
}

/* Profile Name */
.kevents-profile-item .profile-name {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.kevents-profile-item .profile-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kevents-profile-item .profile-name a:hover {
    color: #EA3323;
}

/* Profile Job Title */
.kevents-profile-item .profile-job-title {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile About */
.kevents-profile-item .profile-about {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Social Links */
.kevents-profile-item .profile-social-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.kevents-profile-item .profile-social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.kevents-profile-item .profile-social-links .social-link:hover {
    background: #EA3323;
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .kevents-profiles-list.kevents-profiles-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .kevents-profiles-list.kevents-profiles-grid.columns-2,
    .kevents-profiles-list.kevents-profiles-grid.columns-3,
    .kevents-profiles-list.kevents-profiles-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .kevents-profiles-list.kevents-profiles-list .kevents-profile-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .kevents-profiles-list.kevents-profiles-list .kevents-profile-item .profile-image {
        width: 60px;
        height: 60px;
    }
    
    .kevents-profile-item .profile-content {
        padding: 15px;
    }
    
    .kevents-profile-item .profile-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .kevents-profiles-list {
        gap: 10px;
    }
    
    .kevents-profile-item .profile-content {
        padding: 12px;
    }
    
    .kevents-profile-item .profile-name {
        font-size: 15px;
    }
    
    .kevents-profile-item .profile-job-title {
        font-size: 12px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .kevents-profile-item {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .kevents-profile-item .profile-name a {
        color: #fff;
    }
    
    .kevents-profile-item .profile-job-title,
    .kevents-profile-item .profile-about {
        color: #ccc;
    }
    
    .kevents-profile-item .profile-social-links .social-link {
        background: #444;
        color: #fff;
    }
    
    .kevents-profiles-list.kevents-profiles-list .kevents-profile-item {
        background: #2a2a2a;
        border-color: #444;
    }
}
