/**
 * Recent Users Widget Styling
 * Modern, responsive layout with circle avatars
 */

/* Widget container */
.gc-recent-users-widget {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gc-recent-users-widget:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Widget header */
.gc-recent-users-widget .gc-widget-header {
    display: flex;
    align-items: center;
    background: #3498db;
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 14px 18px;
    border-radius: 8px 8px 0 0;
    position: relative;
    overflow: hidden;
}

.gc-recent-users-widget .gc-widget-header i {
    color: #fff;
    margin-right: 10px;
    font-size: 18px;
}

.gc-recent-users-widget .gc-widget-header:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-25deg) translateX(70%);
}

.gc-recent-users-widget .gc-widget-title {
    color: #fff;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Widget content */
.gc-recent-users-widget .gc-widget-content {
    padding: 15px;
}

/* Grid of user avatars */
.gc-recent-users-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Individual avatar item */
.gc-recent-user-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.gc-recent-user-item:hover {
    background: rgba(52, 152, 219, 0.05);
    transform: translateY(-2px);
}

/* Avatar styling */
.gc-recent-user-avatar {
    flex-shrink: 0;
    position: relative;
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.gc-recent-user-avatar a {
    display: block;
    width: 100%;
    height: 100%;
}

.gc-recent-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #f1f1f1;
}

.gc-recent-user-avatar img:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
    border-color: #3498db;
}

/* Online status indicator */
.gc-recent-user-status {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* User info section */
.gc-recent-user-info {
    flex-grow: 1;
    overflow: hidden;
}

.gc-recent-user-name {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-recent-user-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gc-recent-user-name a:hover {
    color: #3498db;
}

.gc-recent-user-date {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* No results message */
.gc-no-results {
    padding: 15px;
    text-align: center;
    color: #777;
    font-style: italic;
}

/* Compact users mode */
.gc-compact-users {
    margin-bottom: 25px;
}

.gc-compact-users .gc-widget-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.gc-compact-users .gc-widget-header i {
    font-size: 16px;
    color: #3498db;
    margin-right: 8px;
}

.gc-compact-users .gc-widget-header h2 {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

.gc-compact-users-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.gc-compact-user-item {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid #f1f1f1;
}

.gc-compact-user-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: #3498db;
    z-index: 2;
}

.gc-compact-user-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gc-compact-users-more {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    color: #3498db;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.gc-compact-users-more:hover {
    background: #3498db;
    color: #fff;
    transform: scale(1.1);
}

.gc-empty-message {
    padding: 10px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .gc-recent-users-widget .gc-widget-header {
        padding: 12px 15px;
    }
    
    .gc-recent-users-widget .gc-widget-title {
        font-size: 14px;
    }
    
    .gc-recent-users-widget .gc-widget-content {
        padding: 10px;
    }
    
    .gc-recent-users-list {
        gap: 8px;
    }
    
    .gc-recent-user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .gc-recent-user-avatar img {
        border-width: 2px;
    }
    
    .gc-recent-user-name {
        font-size: 13px;
    }
    
    .gc-recent-user-date {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .gc-recent-users-list {
        gap: 6px;
    }
    
    .gc-recent-user-avatar {
        width: 35px;
        height: 35px;
    }
}