/* ========================================
   USER CARDS - ULTRA MODERN DESIGN
   ======================================== */

.user-card-modern {
    position: relative;
    background: linear-gradient(135deg, rgba(36, 91, 163, 0.08), rgba(30, 36, 51, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 28px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.user-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(36, 91, 163, 0.4);
    border-color: rgba(36, 91, 163, 0.5);
}

.user-card-modern:hover .user-card-glow {
    opacity: 1;
    animation: gradientMove 2s ease infinite;
}

.user-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0052A3, #DE2731, #0052A3);
    background-size: 200% 100%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.user-card-header-modern {
    display: flex;
    gap: 28px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(36, 91, 163, 0.12), rgba(30, 36, 51, 0.8));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-modern {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.user-card-modern:hover .user-avatar-modern {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.user-avatar-modern span {
    font-size: 36px;
    font-weight: 900;
    color: white;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.user-main-info-modern {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.user-main-info-modern h3 {
    margin: 0 0 10px 0;
    font-size: 26px;
    color: #FFFFFF;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-username-modern {
    margin: 0 0 14px 0;
    color: #A0AEC0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.user-username-modern i {
    color: #4A90E2;
}

.user-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-modern i {
    font-size: 14px;
}

.badge-primary {
    background: linear-gradient(135deg, #4A90E2, #2c7bc7);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.badge-danger {
    background: linear-gradient(135deg, #DE2731, #b91e26);
    color: white;
    box-shadow: 0 4px 12px rgba(222, 39, 49, 0.4);
}

.badge-info {
    background: linear-gradient(135deg, #48BB78, #38a169);
    color: white;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.badge-modern:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.user-card-body-modern {
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.user-info-section {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-info-section:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(6px);
    border-color: rgba(36, 91, 163, 0.3);
}

.info-icon-modern {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-info-section:hover .info-icon-modern {
    transform: scale(1.12) rotate(5deg);
}

.info-icon-modern i {
    font-size: 22px;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.info-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.info-value {
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 600;
    line-height: 1.4;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-value.clickable-info {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.info-value.clickable-info:hover {
    color: #4A90E2;
    text-decoration: underline;
}

.info-value.clickable-info:active {
    transform: scale(0.98);
}

.info-value strong {
    color: #4A90E2;
    font-weight: 700;
}

/* User Actions */
.user-actions-modern {
    display: flex;
    gap: 12px;
    padding: 20px 32px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn-edit {
    background: linear-gradient(135deg, #4A90E2, #2c7bc7);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.action-btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.5);
}

.action-btn-delete {
    background: linear-gradient(135deg, #DE2731, #b91e26);
    color: white;
    box-shadow: 0 4px 12px rgba(222, 39, 49, 0.3);
}

.action-btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(222, 39, 49, 0.5);
}

.action-btn:active {
    transform: translateY(0);
}

/* Age Badge */
.age-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(74, 144, 226, 0.15);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 20px;
    color: #4A90E2;
    font-size: 13px;
    font-weight: 700;
}

/* Passport Badge */
.passport-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(48, 187, 120, 0.15);
    border: 1px solid rgba(48, 187, 120, 0.3);
    border-radius: 20px;
    color: #48BB78;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .user-card-body-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .user-card-header-modern {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px;
    }
    
    .user-main-info-modern {
        align-items: center;
    }
    
    .user-badges {
        justify-content: center;
    }
    
    .user-card-body-modern {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .user-actions-modern {
        flex-direction: column;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .user-avatar-modern {
        width: 70px;
        height: 70px;
    }
    
    .user-avatar-modern span {
        font-size: 28px;
    }
    
    .user-main-info-modern h3 {
        font-size: 22px;
    }
}
